Debian Codegraph @

external/flac/flac_metadata_object.c

raw symbols SCIP
1 /* libFLAC - Free Lossless Audio Codec library
2 * Copyright (C) 2001-2009 Josh Coalson
3 * Copyright (C) 2011-2025 Xiph.Org Foundation
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * - Neither the name of the Xiph.org Foundation nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33 //ppgb #ifdef HAVE_CONFIG_H
34 #include "flac_config.h"cxx . . $ `<file>/external/flac/flac_config.h`/
35 //ppgb #endif
36
37 #include <stdlib.h>
38 #include <string.h>
39
40 #include "flac_private_metadata.h"cxx . . $ `<file>/external/flac/flac_private_metadata.h`/
41 #include "flac_private_memory.h"cxx . . $ `<file>/external/flac/flac_private_memory.h`/
42 #include "flac_private_stream_encoder_framing.h"cxx . . $ `<file>/external/flac/flac_private_stream_encoder_framing.h`/
43
44 #include "flac_FLAC_assert.h"cxx . . $ `<file>/external/flac/flac_FLAC_assert.h`/
45 #include "flac_FLAC_stream_decoder.h"cxx . . $ `<file>/external/flac/flac_FLAC_stream_decoder.h`/
46 #include "flac_share_alloc.h"cxx . . $ `<file>/external/flac/flac_share_alloc.h`/
47 #include "flac_share_compat.h"cxx . . $ `<file>/external/flac/flac_share_compat.h`/
48
49 /* Alias the first (in share/alloc.h) to the second (in src/libFLAC/memory.c). */
50 #define safe_malloc_mul_2op_cxx . . $ `external/flac/flac_metadata_object.c:50:9`! safe_malloc_mul_2op_p
51
52
53 /****************************************************************************
54 *
55 * Local routines
56 *
57 ***************************************************************************/
58
59 /* copy bytes:
60 * from = NULL && bytes = 0
61 * to <- NULL
62 * from != NULL && bytes > 0
63 * to <- copy of from
64 * else ASSERT
65 * malloc error leaves 'to' unchanged
66 */
67 static FLAC__boolcxx . . $ FLAC__bool# copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(FLAC__bytecxx . . $ FLAC__byte# **to, const FLAC__bytecxx . . $ FLAC__byte# *from, uint32_tcxx . . $ uint32_t# bytes)
68 {
69 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(to != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
70 if (bytes > 0 && from != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
71 FLAC__bytecxx . . $ FLAC__byte# *x;
72 if ((x = safe_malloc_cxx . . $ safe_malloc_(bfcfa4d6b7f7ef64).(bytes)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
73 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
74 memcpycxx . . $ memcpy(cc817cb175f282d).(x, from, bytes);
75 *to = x;
76 }
77 else {
78 *to = 0;
79 }
80 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
81 }
82
83 #if 0 /* UNUSED */
84 /* like copy_bytes_(), but free()s the original '*to' if the copy succeeds and the original '*to' is non-NULL */
85 static FLAC__bool free_copy_bytes_(FLAC__byte **to, const FLAC__byte *from, uint32_t bytes)
86 {
87 FLAC__byte *copy;
88 FLAC__ASSERT(to != NULL);
89 if (copy_bytes_(&copy, from, bytes)) {
90 free(*to);
91 *to = copy;
92 return true;
93 }
94 else
95 return false;
96 }
97 #endif
98
99 /* reallocate entry to 1 byte larger and add a terminating NUL */
100 /* realloc() failure leaves entry unchanged */
101 static FLAC__boolcxx . . $ FLAC__bool# ensure_null_terminated_cxx . . $ ensure_null_terminated_(55586ade4975dd1a).(FLAC__bytecxx . . $ FLAC__byte# **entry, uint32_tcxx . . $ uint32_t# length)
102 {
103 FLAC__bytecxx . . $ FLAC__byte# *x = safe_realloc_nofree_add_2op_cxx . . $ safe_realloc_nofree_add_2op_(dfa4a9ebc9436eff).(*entry, length, /*+*/1);
104 if (x != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
105 x[length] = '\0';
106 *entry = x;
107 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
108 }
109 else
110 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
111 }
112
113 /* copies the NUL-terminated C-string 'from' to '*to', leaving '*to'
114 * unchanged if malloc fails, free()ing the original '*to' if it
115 * succeeds and the original '*to' was not NULL
116 */
117 static FLAC__boolcxx . . $ FLAC__bool# copy_cstring_cxx . . $ copy_cstring_(cc1a8f44225c7fe0).(char **to, const char *from)
118 {
119 char *copy = strdupcxx . . $ strdup(a8b8e32347182212).(from);
120 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(to != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
121 if (copy) {
122 freecxx . . $ free(5d22bdacc48458e8).(*to);
123 *to = copy;
124 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
125 }
126 else
127 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
128 }
129
130 static FLAC__boolcxx . . $ FLAC__bool# copy_vcentry_cxx . . $ copy_vcentry_(b3cbf7b852b0b5a7).(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *to, const FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *from)
131 {
132 to->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = from->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.;
133 if (from->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. == 0) {
134 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(from->length == 0);
135 if ((to->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = safe_malloc_cxx . . $ safe_malloc_(bfcfa4d6b7f7ef64).(1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
136 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
137 to->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[0] = '\0';
138 }
139 else {
140 FLAC__bytecxx . . $ FLAC__byte# *x;
141 if ((x = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(from->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length., /*+*/1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
142 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
143 memcpycxx . . $ memcpy(cc817cb175f282d).(x, from->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., from->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.);
144 x[from->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.] = '\0';
145 to->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = x;
146 }
147 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
148 }
149
150 static FLAC__boolcxx . . $ FLAC__bool# copy_track_cxx . . $ copy_track_(1b6cd17d4bf782b2).(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *to, const FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *from)
151 {
152 memcpycxx . . $ memcpy(cc817cb175f282d).(to, from, sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#));
153 if (from->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. == 0) {
154 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(from->num_indices == 0);
155 }
156 else {
157 FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# *x;
158 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(from->num_indices > 0);
159 if ((x = safe_malloc_mul_2op_pcxx . . $ safe_malloc_mul_2op_p(63a7bf2941bfcd7a).(from->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices., /*times*/sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#))) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
160 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
161 memcpycxx . . $ memcpy(cc817cb175f282d).(x, from->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices., from->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. * sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#));
162 to->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = x;
163 }
164 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
165 }
166
167 static void seektable_calculate_length_cxx . . $ seektable_calculate_length_(584ecc423fe01cfd).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
168 {
169 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
170 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
171
172 object->lengthcxx . . $ FLAC__StreamMetadata#length. = object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. * FLAC__STREAM_METADATA_SEEKPOINT_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:598:9`!;
173 }
174
175 static FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint# *seekpoint_array_new_cxx . . $ seekpoint_array_new_(226976d6ba22769).(uint32_tcxx . . $ uint32_t# num_points)
176 {
177 FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint# *object_array;
178
179 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(num_points > 0);
180
181 object_array = safe_malloc_mul_2op_pcxx . . $ safe_malloc_mul_2op_p(63a7bf2941bfcd7a).(num_points, /*times*/sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#));
182
183 if (object_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
184 uint32_tcxx . . $ uint32_t# i;
185 for (i = 0; i < num_points; i++) {
186 object_array[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDERcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER.;
187 object_array[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
188 object_array[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
189 }
190 }
191
192 return object_array;
193 }
194
195 static void vorbiscomment_calculate_length_cxx . . $ vorbiscomment_calculate_length_(584ecc423fe01cfd).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
196 {
197 uint32_tcxx . . $ uint32_t# i;
198
199 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
200
201 object->lengthcxx . . $ FLAC__StreamMetadata#length. = (FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN.) / 8;
202 object->lengthcxx . . $ FLAC__StreamMetadata#length. += object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.;
203 object->lengthcxx . . $ FLAC__StreamMetadata#length. += (FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LENcxx . . $ FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN.) / 8;
204 for (i = 0; i < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++) {
205 object->lengthcxx . . $ FLAC__StreamMetadata#length. += (FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN. / 8);
206 object->lengthcxx . . $ FLAC__StreamMetadata#length. += object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.;
207 }
208 }
209
210 static FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *vorbiscomment_entry_array_new_cxx . . $ vorbiscomment_entry_array_new_(115d24579b1bc326).(uint32_tcxx . . $ uint32_t# num_comments)
211 {
212 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(num_comments > 0);
213
214 return safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(num_comments, sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#));
215 }
216
217 static void vorbiscomment_entry_array_delete_cxx . . $ vorbiscomment_entry_array_delete_(dc2f2eb43cc1000a).(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *object_array, uint32_tcxx . . $ uint32_t# num_comments)
218 {
219 uint32_tcxx . . $ uint32_t# i;
220
221 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
222
223 for (i = 0; i < num_comments; i++)
224 freecxx . . $ free(5d22bdacc48458e8).(object_array[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
225
226 freecxx . . $ free(5d22bdacc48458e8).(object_array);
227 }
228
229 static FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *vorbiscomment_entry_array_copy_cxx . . $ vorbiscomment_entry_array_copy_(de5c11667a19946b).(const FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *object_array, uint32_tcxx . . $ uint32_t# num_comments)
230 {
231 FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *return_array;
232
233 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
234 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(num_comments > 0);
235
236 return_array = vorbiscomment_entry_array_new_cxx . . $ vorbiscomment_entry_array_new_(115d24579b1bc326).(num_comments);
237
238 if (return_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
239 uint32_tcxx . . $ uint32_t# i;
240
241 for (i = 0; i < num_comments; i++) {
242 if (!copy_vcentry_cxx . . $ copy_vcentry_(b3cbf7b852b0b5a7).(return_array+i, object_array+i)) {
243 vorbiscomment_entry_array_delete_cxx . . $ vorbiscomment_entry_array_delete_(dc2f2eb43cc1000a).(return_array, num_comments);
244 return 0;
245 }
246 }
247 }
248
249 return return_array;
250 }
251
252 static FLAC__boolcxx . . $ FLAC__bool# vorbiscomment_set_entry_cxx . . $ vorbiscomment_set_entry_(9b8a3638dfe59816).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *dest, const FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *src, FLAC__boolcxx . . $ FLAC__bool# copy)
253 {
254 FLAC__bytecxx . . $ FLAC__byte# *save;
255
256 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
257 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(dest != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
258 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(src != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
259 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
260 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!((src->entry != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && src->length > 0) || (src->entry == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && src->length == 0));
261
262 save = dest->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.;
263
264 if (src->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
265 if (copy) {
266 /* do the copy first so that if we fail we leave the dest object untouched */
267 if (!copy_vcentry_cxx . . $ copy_vcentry_(b3cbf7b852b0b5a7).(dest, src))
268 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
269 }
270 else {
271 /* we have to make sure that the string we're taking over is null-terminated */
272
273 /*
274 * Stripping the const from src->entry is OK since we're taking
275 * ownership of the pointer. This is a hack around a deficiency
276 * in the API where the same function is used for 'copy' and
277 * 'own', but the source entry is a const pointer. If we were
278 * precise, the 'own' flavor would be a separate function with a
279 * non-const source pointer. But it's not, so we hack away.
280 */
281 if (!ensure_null_terminated_cxx . . $ ensure_null_terminated_(55586ade4975dd1a).((FLAC__bytecxx . . $ FLAC__byte#**)(&src->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.), src->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
282 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
283 *dest = *src;
284 }
285 }
286 else {
287 /* the src is null */
288 *dest = *src;
289 }
290
291 freecxx . . $ free(5d22bdacc48458e8).(save);
292
293 vorbiscomment_calculate_length_cxx . . $ vorbiscomment_calculate_length_(584ecc423fe01cfd).(object);
294 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
295 }
296
297 static int vorbiscomment_find_entry_from_cxx . . $ vorbiscomment_find_entry_from_(89b6c085f1278de3).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# offset, const char *field_name, uint32_tcxx . . $ uint32_t# field_name_length)
298 {
299 uint32_tcxx . . $ uint32_t# i;
300
301 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
302 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
303 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(field_name != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
304
305 for (i = offset; i < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++) {
306 if (FLAC__metadata_object_vorbiscomment_entry_matchescxx . . $ FLAC__metadata_object_vorbiscomment_entry_matches(739c4c81e2b3849c).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i], field_name, field_name_length))
307 return (int)i;
308 }
309
310 return -1;
311 }
312
313 static void cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
314 {
315 uint32_tcxx . . $ uint32_t# i;
316
317 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
318
319 object->lengthcxx . . $ FLAC__StreamMetadata#length. = (
320 FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN. +
321 FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LEN. +
322 FLAC__STREAM_METADATA_CUESHEET_IS_CD_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_IS_CD_LEN. +
323 FLAC__STREAM_METADATA_CUESHEET_RESERVED_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_RESERVED_LEN. +
324 FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LEN.
325 ) / 8;
326
327 object->lengthcxx . . $ FLAC__StreamMetadata#length. += object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. * (
328 FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN. +
329 FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LEN. +
330 FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN. +
331 FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LEN. +
332 FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LEN. +
333 FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LEN. +
334 FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LEN.
335 ) / 8;
336
337 for (i = 0; i < object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.; i++) {
338 object->lengthcxx . . $ FLAC__StreamMetadata#length. += object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. * (
339 FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN. +
340 FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN. +
341 FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LEN.
342 ) / 8;
343 }
344 }
345
346 static FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# *cuesheet_track_index_array_new_cxx . . $ cuesheet_track_index_array_new_(5abd40bff1a40219).(uint32_tcxx . . $ uint32_t# num_indices)
347 {
348 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(num_indices > 0);
349
350 return safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(num_indices, sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#));
351 }
352
353 static FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *cuesheet_track_array_new_cxx . . $ cuesheet_track_array_new_(7698b31ba036db6f).(uint32_tcxx . . $ uint32_t# num_tracks)
354 {
355 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(num_tracks > 0);
356
357 return safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(num_tracks, sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#));
358 }
359
360 static void cuesheet_track_array_delete_cxx . . $ cuesheet_track_array_delete_(c04b423f24646003).(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *object_array, uint32_tcxx . . $ uint32_t# num_tracks)
361 {
362 uint32_tcxx . . $ uint32_t# i;
363
364 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && num_tracks > 0);
365
366 for (i = 0; i < num_tracks; i++) {
367 if (object_array[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. != 0) {
368 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object_array[i].num_indices > 0);
369 freecxx . . $ free(5d22bdacc48458e8).(object_array[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.);
370 }
371 }
372
373 freecxx . . $ free(5d22bdacc48458e8).(object_array);
374 }
375
376 static FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *cuesheet_track_array_copy_cxx . . $ cuesheet_track_array_copy_(c7073f1682349473).(const FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *object_array, uint32_tcxx . . $ uint32_t# num_tracks)
377 {
378 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *return_array;
379
380 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
381 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(num_tracks > 0);
382
383 return_array = cuesheet_track_array_new_cxx . . $ cuesheet_track_array_new_(7698b31ba036db6f).(num_tracks);
384
385 if (return_array != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
386 uint32_tcxx . . $ uint32_t# i;
387
388 for (i = 0; i < num_tracks; i++) {
389 if (!copy_track_cxx . . $ copy_track_(1b6cd17d4bf782b2).(return_array+i, object_array+i)) {
390 cuesheet_track_array_delete_cxx . . $ cuesheet_track_array_delete_(c04b423f24646003).(return_array, num_tracks);
391 return 0;
392 }
393 }
394 }
395
396 return return_array;
397 }
398
399 static FLAC__boolcxx . . $ FLAC__bool# cuesheet_set_track_cxx . . $ cuesheet_set_track_(cccd1ed41ceb0cb1).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *dest, const FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *src, FLAC__boolcxx . . $ FLAC__bool# copy)
400 {
401 FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# *save;
402
403 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
404 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(dest != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
405 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(src != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
406 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
407 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!((src->indices != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && src->num_indices > 0) || (src->indices == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && src->num_indices == 0));
408
409 save = dest->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.;
410
411 /* do the copy first so that if we fail we leave the object untouched */
412 if (copy) {
413 if (!copy_track_cxx . . $ copy_track_(1b6cd17d4bf782b2).(dest, src))
414 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
415 }
416 else {
417 *dest = *src;
418 }
419
420 freecxx . . $ free(5d22bdacc48458e8).(save);
421
422 cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(object);
423 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
424 }
425
426
427 /****************************************************************************
428 *
429 * Metadata object routines
430 *
431 ***************************************************************************/
432
433 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *FLAC__metadata_object_newcxx . . $ FLAC__metadata_object_new(7b74e093a0c25cb4).(FLAC__MetadataTypecxx . . $ FLAC__MetadataType# type)
434 {
435 FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object;
436
437 if (type > FLAC__MAX_METADATA_TYPEcxx . . $ FLAC__MAX_METADATA_TYPE.)
438 return 0;
439
440 object = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata#));
441 if (object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
442 object->is_lastcxx . . $ FLAC__StreamMetadata#is_last. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
443 object->typecxx . . $ FLAC__StreamMetadata#type. = type;
444 switch(type) {
445 case FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.:
446 object->lengthcxx . . $ FLAC__StreamMetadata#length. = FLAC__STREAM_METADATA_STREAMINFO_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:557:9`!;
447 break;
448 case FLAC__METADATA_TYPE_PADDINGcxx . . $ FLAC__METADATA_TYPE_PADDING.:
449 /* calloc() took care of this for us:
450 object->length = 0;
451 */
452 break;
453 case FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.:
454 object->lengthcxx . . $ FLAC__StreamMetadata#length. = FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN. / 8;
455 /* calloc() took care of this for us:
456 object->data.application.data = 0;
457 */
458 break;
459 case FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.:
460 /* calloc() took care of this for us:
461 object->length = 0;
462 object->data.seek_table.num_points = 0;
463 object->data.seek_table.points = 0;
464 */
465 break;
466 case FLAC__METADATA_TYPE_VORBIS_COMMENTcxx . . $ FLAC__METADATA_TYPE_VORBIS_COMMENT.:
467 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = (uint32_tcxx . . $ uint32_t#)strlencxx . . $ strlen(751346f8406fd082).(FLAC__VENDOR_STRINGcxx . . $ FLAC__VENDOR_STRING.);
468 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(&object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., (const FLAC__bytecxx . . $ FLAC__byte#*)FLAC__VENDOR_STRINGcxx . . $ FLAC__VENDOR_STRING., object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.+1)) {
469 freecxx . . $ free(5d22bdacc48458e8).(object);
470 return 0;
471 }
472 vorbiscomment_calculate_length_cxx . . $ vorbiscomment_calculate_length_(584ecc423fe01cfd).(object);
473 break;
474 case FLAC__METADATA_TYPE_CUESHEETcxx . . $ FLAC__METADATA_TYPE_CUESHEET.:
475 cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(object);
476 break;
477 case FLAC__METADATA_TYPE_PICTUREcxx . . $ FLAC__METADATA_TYPE_PICTURE.:
478 object->lengthcxx . . $ FLAC__StreamMetadata#length. = (
479 FLAC__STREAM_METADATA_PICTURE_TYPE_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_TYPE_LEN. +
480 FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN. + /* empty mime_type string */
481 FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LEN. + /* empty description string */
482 FLAC__STREAM_METADATA_PICTURE_WIDTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_WIDTH_LEN. +
483 FLAC__STREAM_METADATA_PICTURE_HEIGHT_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_HEIGHT_LEN. +
484 FLAC__STREAM_METADATA_PICTURE_DEPTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_DEPTH_LEN. +
485 FLAC__STREAM_METADATA_PICTURE_COLORS_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_COLORS_LEN. +
486 FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LEN. +
487 0 /* no data */
488 ) / 8;
489 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..typecxx . . $ $anonymous_type_81a4853959168ec7_32#type. = FLAC__STREAM_METADATA_PICTURE_TYPE_OTHERcxx . . $ FLAC__STREAM_METADATA_PICTURE_TYPE_OTHER.;
490 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. = 0;
491 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. = 0;
492 /* calloc() took care of this for us:
493 object->data.picture.width = 0;
494 object->data.picture.height = 0;
495 object->data.picture.depth = 0;
496 object->data.picture.colors = 0;
497 object->data.picture.data_length = 0;
498 object->data.picture.data = 0;
499 */
500 /* now initialize mime_type and description with empty strings to make things easier on the client */
501 if (!copy_cstring_cxx . . $ copy_cstring_(cc1a8f44225c7fe0).(&object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type., "")) {
502 freecxx . . $ free(5d22bdacc48458e8).(object);
503 return 0;
504 }
505 if (!copy_cstring_cxx . . $ copy_cstring_(cc1a8f44225c7fe0).((char**)(&object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.), "")) {
506 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.);
507 freecxx . . $ free(5d22bdacc48458e8).(object);
508 return 0;
509 }
510 break;
511 default:
512 /* calloc() took care of this for us:
513 object->length = 0;
514 object->data.unknown.data = 0;
515 */
516 break;
517 }
518 }
519
520 return object;
521 }
522
523 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *FLAC__metadata_object_clonecxx . . $ FLAC__metadata_object_clone(3ba84a9741e92d18).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
524 {
525 FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *to;
526
527 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
528
529 if ((to = FLAC__metadata_object_newcxx . . $ FLAC__metadata_object_new(7b74e093a0c25cb4).(object->typecxx . . $ FLAC__StreamMetadata#type.)) != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
530 to->is_lastcxx . . $ FLAC__StreamMetadata#is_last. = object->is_lastcxx . . $ FLAC__StreamMetadata#is_last.;
531 to->typecxx . . $ FLAC__StreamMetadata#type. = object->typecxx . . $ FLAC__StreamMetadata#type.;
532 to->lengthcxx . . $ FLAC__StreamMetadata#length. = object->lengthcxx . . $ FLAC__StreamMetadata#length.;
533 switch(to->typecxx . . $ FLAC__StreamMetadata#type.) {
534 case FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.:
535 memcpycxx . . $ memcpy(cc817cb175f282d).(&to->datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info., &object->datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info., sizeof(FLAC__StreamMetadata_StreamInfocxx . . $ FLAC__StreamMetadata_StreamInfo#));
536 break;
537 case FLAC__METADATA_TYPE_PADDINGcxx . . $ FLAC__METADATA_TYPE_PADDING.:
538 break;
539 case FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.:
540 if (to->lengthcxx . . $ FLAC__StreamMetadata#length. < FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN. / 8) { /* underflow check */
541 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
542 return 0;
543 }
544 memcpycxx . . $ memcpy(cc817cb175f282d).(&to->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..idcxx . . $ $anonymous_type_81a4853959168ec7_23#id., &object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..idcxx . . $ $anonymous_type_81a4853959168ec7_23#id., FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN. / 8);
545 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(&to->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data., object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data., object->lengthcxx . . $ FLAC__StreamMetadata#length. - FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN. / 8)) {
546 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
547 return 0;
548 }
549 break;
550 case FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.:
551 to->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. = object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.;
552 if (to->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. > UINT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:118:10`! / sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#)) { /* overflow check */
553 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
554 return 0;
555 }
556 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).((FLAC__bytecxx . . $ FLAC__byte#**)&to->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points., (FLAC__bytecxx . . $ FLAC__byte#*)object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points., object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. * sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#))) {
557 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
558 return 0;
559 }
560 break;
561 case FLAC__METADATA_TYPE_VORBIS_COMMENTcxx . . $ FLAC__METADATA_TYPE_VORBIS_COMMENT.:
562 if (to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
563 freecxx . . $ free(5d22bdacc48458e8).(to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
564 to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = 0;
565 }
566 if (!copy_vcentry_cxx . . $ copy_vcentry_(b3cbf7b852b0b5a7).(&to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string., &object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string.)) {
567 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
568 return 0;
569 }
570 if (object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. == 0) {
571 to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = 0;
572 }
573 else {
574 to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = vorbiscomment_entry_array_copy_cxx . . $ vorbiscomment_entry_array_copy_(de5c11667a19946b).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments., object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.);
575 if (to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
576 to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = 0;
577 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
578 return 0;
579 }
580 }
581 to->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.;
582 break;
583 case FLAC__METADATA_TYPE_CUESHEETcxx . . $ FLAC__METADATA_TYPE_CUESHEET.:
584 memcpycxx . . $ memcpy(cc817cb175f282d).(&to->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet., &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet., sizeof(FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet#));
585 if (object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. == 0) {
586 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.cue_sheet.tracks == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
587 }
588 else {
589 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.cue_sheet.tracks != 0);
590 to->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. = cuesheet_track_array_copy_cxx . . $ cuesheet_track_array_copy_(c7073f1682349473).(object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks., object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.);
591 if (to->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
592 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
593 return 0;
594 }
595 }
596 break;
597 case FLAC__METADATA_TYPE_PICTUREcxx . . $ FLAC__METADATA_TYPE_PICTURE.:
598 to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..typecxx . . $ $anonymous_type_81a4853959168ec7_32#type. = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..typecxx . . $ $anonymous_type_81a4853959168ec7_32#type.;
599 if (!copy_cstring_cxx . . $ copy_cstring_(cc1a8f44225c7fe0).(&to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type., object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.)) {
600 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
601 return 0;
602 }
603 if (!copy_cstring_cxx . . $ copy_cstring_(cc1a8f44225c7fe0).((char**)(&to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.), (const char*)object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.)) {
604 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
605 return 0;
606 }
607 to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..widthcxx . . $ $anonymous_type_81a4853959168ec7_32#width. = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..widthcxx . . $ $anonymous_type_81a4853959168ec7_32#width.;
608 to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..heightcxx . . $ $anonymous_type_81a4853959168ec7_32#height. = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..heightcxx . . $ $anonymous_type_81a4853959168ec7_32#height.;
609 to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..depthcxx . . $ $anonymous_type_81a4853959168ec7_32#depth. = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..depthcxx . . $ $anonymous_type_81a4853959168ec7_32#depth.;
610 to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..colorscxx . . $ $anonymous_type_81a4853959168ec7_32#colors. = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..colorscxx . . $ $anonymous_type_81a4853959168ec7_32#colors.;
611 to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length. = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.;
612 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).((&to->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data.), object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data., object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.)) {
613 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
614 return 0;
615 }
616 break;
617 default:
618 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(&to->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data., object->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data., object->lengthcxx . . $ FLAC__StreamMetadata#length.)) {
619 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(to);
620 return 0;
621 }
622 break;
623 }
624 }
625
626 return to;
627 }
628
629 void FLAC__metadata_object_delete_datacxx . . $ FLAC__metadata_object_delete_data(584ecc423fe01cfd).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
630 {
631 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
632
633 switch(object->typecxx . . $ FLAC__StreamMetadata#type.) {
634 case FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.:
635 case FLAC__METADATA_TYPE_PADDINGcxx . . $ FLAC__METADATA_TYPE_PADDING.:
636 break;
637 case FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.:
638 if (object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
639 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data.);
640 object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
641 }
642 break;
643 case FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.:
644 if (object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
645 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.);
646 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
647 }
648 break;
649 case FLAC__METADATA_TYPE_VORBIS_COMMENTcxx . . $ FLAC__METADATA_TYPE_VORBIS_COMMENT.:
650 if (object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
651 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
652 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = 0;
653 }
654 if (object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
655 vorbiscomment_entry_array_delete_cxx . . $ vorbiscomment_entry_array_delete_(dc2f2eb43cc1000a).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments., object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.);
656 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
657 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = 0;
658 }
659 break;
660 case FLAC__METADATA_TYPE_CUESHEETcxx . . $ FLAC__METADATA_TYPE_CUESHEET.:
661 if (object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
662 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.cue_sheet.num_tracks > 0);
663 cuesheet_track_array_delete_cxx . . $ cuesheet_track_array_delete_(c04b423f24646003).(object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks., object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.);
664 object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
665 object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. = 0;
666 }
667 break;
668 case FLAC__METADATA_TYPE_PICTUREcxx . . $ FLAC__METADATA_TYPE_PICTURE.:
669 if (object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
670 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.);
671 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
672 }
673 if (object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
674 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.);
675 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
676 }
677 if (object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
678 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data.);
679 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
680 }
681 break;
682 default:
683 if (object->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
684 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data.);
685 object->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. = NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!;
686 }
687 break;
688 }
689 }
690
691 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! void FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
692 {
693 FLAC__metadata_object_delete_datacxx . . $ FLAC__metadata_object_delete_data(584ecc423fe01cfd).(object);
694 freecxx . . $ free(5d22bdacc48458e8).(object);
695 }
696
697 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_streaminfo_cxx . . $ compare_block_data_streaminfo_(8665fc01d3db495a).(const FLAC__StreamMetadata_StreamInfocxx . . $ FLAC__StreamMetadata_StreamInfo# *block1, const FLAC__StreamMetadata_StreamInfocxx . . $ FLAC__StreamMetadata_StreamInfo# *block2)
698 {
699 if (block1->min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize. != block2->min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize.)
700 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
701 if (block1->max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize. != block2->max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize.)
702 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
703 if (block1->min_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_framesize. != block2->min_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_framesize.)
704 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
705 if (block1->max_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_framesize. != block2->max_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_framesize.)
706 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
707 if (block1->sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_21#sample_rate. != block2->sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_21#sample_rate.)
708 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
709 if (block1->channelscxx . . $ $anonymous_type_81a4853959168ec7_21#channels. != block2->channelscxx . . $ $anonymous_type_81a4853959168ec7_21#channels.)
710 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
711 if (block1->bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_21#bits_per_sample. != block2->bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_21#bits_per_sample.)
712 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
713 if (block1->total_samplescxx . . $ $anonymous_type_81a4853959168ec7_21#total_samples. != block2->total_samplescxx . . $ $anonymous_type_81a4853959168ec7_21#total_samples.)
714 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
715 if (memcmpcxx . . $ memcmp(36f949851efa3055).(block1->md5sumcxx . . $ $anonymous_type_81a4853959168ec7_21#md5sum., block2->md5sumcxx . . $ $anonymous_type_81a4853959168ec7_21#md5sum., 16) != 0)
716 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
717 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
718 }
719
720 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_application_cxx . . $ compare_block_data_application_(85b2f0fab2f96db5).(const FLAC__StreamMetadata_Applicationcxx . . $ FLAC__StreamMetadata_Application# *block1, const FLAC__StreamMetadata_Applicationcxx . . $ FLAC__StreamMetadata_Application# *block2, uint32_tcxx . . $ uint32_t# block_length)
721 {
722 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block1 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
723 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block2 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
724 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block_length >= sizeof(block1->id));
725
726 if (memcmpcxx . . $ memcmp(36f949851efa3055).(block1->idcxx . . $ $anonymous_type_81a4853959168ec7_23#id., block2->idcxx . . $ $anonymous_type_81a4853959168ec7_23#id., sizeof(block1->idcxx . . $ $anonymous_type_81a4853959168ec7_23#id.)) != 0)
727 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
728 if (block1->datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
729 return memcmpcxx . . $ memcmp(36f949851efa3055).(block1->datacxx . . $ $anonymous_type_81a4853959168ec7_23#data., block2->datacxx . . $ $anonymous_type_81a4853959168ec7_23#data., block_length - sizeof(block1->idcxx . . $ $anonymous_type_81a4853959168ec7_23#id.)) == 0;
730 else
731 return block1->datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. == block2->datacxx . . $ $anonymous_type_81a4853959168ec7_23#data.;
732 }
733
734 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_seektable_cxx . . $ compare_block_data_seektable_(fa6b7f81d82f98f7).(const FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *block1, const FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *block2)
735 {
736 uint32_tcxx . . $ uint32_t# i;
737
738 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block1 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
739 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block2 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
740
741 if (block1->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. != block2->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.)
742 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
743
744 if (block1->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
745 for (i = 0; i < block1->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.; i++) {
746 if (block1->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. != block2->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number.)
747 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
748 if (block1->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. != block2->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset.)
749 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
750 if (block1->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. != block2->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples.)
751 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
752 }
753 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
754 }
755 else
756 return block1->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. == block2->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.;
757 }
758
759 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_vorbiscomment_cxx . . $ compare_block_data_vorbiscomment_(748ceb89db467d9b).(const FLAC__StreamMetadata_VorbisCommentcxx . . $ FLAC__StreamMetadata_VorbisComment# *block1, const FLAC__StreamMetadata_VorbisCommentcxx . . $ FLAC__StreamMetadata_VorbisComment# *block2)
760 {
761 uint32_tcxx . . $ uint32_t# i;
762
763 if (block1->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. != block2->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.)
764 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
765
766 if (block1->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
767 if (memcmpcxx . . $ memcmp(36f949851efa3055).(block1->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., block2->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., block1->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.) != 0)
768 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
769 }
770 else if (block1->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != block2->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.)
771 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
772
773 if (block1->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. != block2->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.)
774 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
775
776 for (i = 0; i < block1->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++) {
777 if (block1->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
778 if (memcmpcxx . . $ memcmp(36f949851efa3055).(block1->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., block2->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., block1->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.) != 0)
779 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
780 }
781 else if (block1->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != block2->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.)
782 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
783 }
784 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
785 }
786
787 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_cuesheet_cxx . . $ compare_block_data_cuesheet_(ab1cdc6b26e00a43).(const FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *block1, const FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *block2)
788 {
789 uint32_tcxx . . $ uint32_t# i, j;
790
791 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(block1->media_catalog_numbercxx . . $ $anonymous_type_81a4853959168ec7_30#media_catalog_number., block2->media_catalog_numbercxx . . $ $anonymous_type_81a4853959168ec7_30#media_catalog_number.) != 0)
792 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
793
794 if (block1->lead_incxx . . $ $anonymous_type_81a4853959168ec7_30#lead_in. != block2->lead_incxx . . $ $anonymous_type_81a4853959168ec7_30#lead_in.)
795 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
796
797 if (block1->is_cdcxx . . $ $anonymous_type_81a4853959168ec7_30#is_cd. != block2->is_cdcxx . . $ $anonymous_type_81a4853959168ec7_30#is_cd.)
798 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
799
800 if (block1->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. != block2->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.)
801 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
802
803 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
804 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block1->num_tracks > 0);
805 for (i = 0; i < block1->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.; i++) {
806 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].offsetcxx . . $ $anonymous_type_81a4853959168ec7_29#offset. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].offsetcxx . . $ $anonymous_type_81a4853959168ec7_29#offset.)
807 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
808 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].numbercxx . . $ $anonymous_type_81a4853959168ec7_29#number. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].numbercxx . . $ $anonymous_type_81a4853959168ec7_29#number.)
809 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
810 if (memcmpcxx . . $ memcmp(36f949851efa3055).(block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].isrccxx . . $ $anonymous_type_81a4853959168ec7_29#isrc., block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].isrccxx . . $ $anonymous_type_81a4853959168ec7_29#isrc., sizeof(block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].isrccxx . . $ $anonymous_type_81a4853959168ec7_29#isrc.)) != 0)
811 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
812 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].typecxx . . $ $anonymous_type_81a4853959168ec7_29#type. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].typecxx . . $ $anonymous_type_81a4853959168ec7_29#type.)
813 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
814 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].pre_emphasiscxx . . $ $anonymous_type_81a4853959168ec7_29#pre_emphasis. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].pre_emphasiscxx . . $ $anonymous_type_81a4853959168ec7_29#pre_emphasis.)
815 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
816 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.)
817 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
818 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
819 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block1->tracks[i].num_indices > 0);
820 for (j = 0; j < block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.; j++) {
821 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[j].offsetcxx . . $ $anonymous_type_81a4853959168ec7_28#offset. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[j].offsetcxx . . $ $anonymous_type_81a4853959168ec7_28#offset.)
822 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
823 if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[j].numbercxx . . $ $anonymous_type_81a4853959168ec7_28#number. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[j].numbercxx . . $ $anonymous_type_81a4853959168ec7_28#number.)
824 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
825 }
826 }
827 else if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.)
828 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
829 }
830 }
831 else if (block1->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. != block2->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.)
832 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
833 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
834 }
835
836 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_picture_cxx . . $ compare_block_data_picture_(8405662aa4e3149c).(const FLAC__StreamMetadata_Picturecxx . . $ FLAC__StreamMetadata_Picture# *block1, const FLAC__StreamMetadata_Picturecxx . . $ FLAC__StreamMetadata_Picture# *block2)
837 {
838 if (block1->typecxx . . $ $anonymous_type_81a4853959168ec7_32#type. != block2->typecxx . . $ $anonymous_type_81a4853959168ec7_32#type.)
839 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
840 if (block1->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. != block2->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. && (block1->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. == 0 || block2->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. == 0 || strcmpcxx . . $ strcmp(5ae29d726ae57f88).(block1->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type., block2->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.)))
841 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
842 if (block1->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. != block2->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. && (block1->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. == 0 || block2->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. == 0 || strcmpcxx . . $ strcmp(5ae29d726ae57f88).((const char *)block1->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description., (const char *)block2->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.)))
843 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
844 if (block1->widthcxx . . $ $anonymous_type_81a4853959168ec7_32#width. != block2->widthcxx . . $ $anonymous_type_81a4853959168ec7_32#width.)
845 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
846 if (block1->heightcxx . . $ $anonymous_type_81a4853959168ec7_32#height. != block2->heightcxx . . $ $anonymous_type_81a4853959168ec7_32#height.)
847 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
848 if (block1->depthcxx . . $ $anonymous_type_81a4853959168ec7_32#depth. != block2->depthcxx . . $ $anonymous_type_81a4853959168ec7_32#depth.)
849 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
850 if (block1->colorscxx . . $ $anonymous_type_81a4853959168ec7_32#colors. != block2->colorscxx . . $ $anonymous_type_81a4853959168ec7_32#colors.)
851 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
852 if (block1->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length. != block2->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.)
853 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
854 if (block1->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. != block2->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. && (block1->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! || block2->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! || memcmpcxx . . $ memcmp(36f949851efa3055).(block1->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data., block2->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data., block1->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.)))
855 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
856 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
857 }
858
859 static FLAC__boolcxx . . $ FLAC__bool# compare_block_data_unknown_cxx . . $ compare_block_data_unknown_(3190e41694659e55).(const FLAC__StreamMetadata_Unknowncxx . . $ FLAC__StreamMetadata_Unknown# *block1, const FLAC__StreamMetadata_Unknowncxx . . $ FLAC__StreamMetadata_Unknown# *block2, uint32_tcxx . . $ uint32_t# block_length)
860 {
861 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block1 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
862 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block2 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
863
864 if (block1->datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && block2->datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
865 return memcmpcxx . . $ memcmp(36f949851efa3055).(block1->datacxx . . $ $anonymous_type_81a4853959168ec7_33#data., block2->datacxx . . $ $anonymous_type_81a4853959168ec7_33#data., block_length) == 0;
866 else
867 return block1->datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. == block2->datacxx . . $ $anonymous_type_81a4853959168ec7_33#data.;
868 }
869
870 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_is_equalcxx . . $ FLAC__metadata_object_is_equal(3530e1674a2f891c).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *block1, const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *block2)
871 {
872 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block1 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
873 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(block2 != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
874
875 if (block1->typecxx . . $ FLAC__StreamMetadata#type. != block2->typecxx . . $ FLAC__StreamMetadata#type.) {
876 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
877 }
878 if (block1->is_lastcxx . . $ FLAC__StreamMetadata#is_last. != block2->is_lastcxx . . $ FLAC__StreamMetadata#is_last.) {
879 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
880 }
881 if (block1->lengthcxx . . $ FLAC__StreamMetadata#length. != block2->lengthcxx . . $ FLAC__StreamMetadata#length.) {
882 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
883 }
884 switch(block1->typecxx . . $ FLAC__StreamMetadata#type.) {
885 case FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.:
886 return compare_block_data_streaminfo_cxx . . $ compare_block_data_streaminfo_(8665fc01d3db495a).(&block1->datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info., &block2->datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info.);
887 case FLAC__METADATA_TYPE_PADDINGcxx . . $ FLAC__METADATA_TYPE_PADDING.:
888 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* we don't compare the padding guts */
889 case FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.:
890 return compare_block_data_application_cxx . . $ compare_block_data_application_(85b2f0fab2f96db5).(&block1->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application., &block2->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application., block1->lengthcxx . . $ FLAC__StreamMetadata#length.);
891 case FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.:
892 return compare_block_data_seektable_cxx . . $ compare_block_data_seektable_(fa6b7f81d82f98f7).(&block1->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table., &block2->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.);
893 case FLAC__METADATA_TYPE_VORBIS_COMMENTcxx . . $ FLAC__METADATA_TYPE_VORBIS_COMMENT.:
894 return compare_block_data_vorbiscomment_cxx . . $ compare_block_data_vorbiscomment_(748ceb89db467d9b).(&block1->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment., &block2->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment.);
895 case FLAC__METADATA_TYPE_CUESHEETcxx . . $ FLAC__METADATA_TYPE_CUESHEET.:
896 return compare_block_data_cuesheet_cxx . . $ compare_block_data_cuesheet_(ab1cdc6b26e00a43).(&block1->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet., &block2->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet.);
897 case FLAC__METADATA_TYPE_PICTUREcxx . . $ FLAC__METADATA_TYPE_PICTURE.:
898 return compare_block_data_picture_cxx . . $ compare_block_data_picture_(8405662aa4e3149c).(&block1->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture., &block2->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture.);
899 default:
900 return compare_block_data_unknown_cxx . . $ compare_block_data_unknown_(3190e41694659e55).(&block1->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown., &block2->datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown., block1->lengthcxx . . $ FLAC__StreamMetadata#length.);
901 }
902 }
903
904 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_application_set_datacxx . . $ FLAC__metadata_object_application_set_data(a76fc753005250a4).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__bytecxx . . $ FLAC__byte# *data, uint32_tcxx . . $ uint32_t# length, FLAC__boolcxx . . $ FLAC__bool# copy)
905 {
906 FLAC__bytecxx . . $ FLAC__byte# *save;
907
908 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
909 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_APPLICATION);
910 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!((data != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && length > 0) || (data == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && length == 0 && copy == falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!));
911
912 save = object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data.;
913
914 /* do the copy first so that if we fail we leave the object untouched */
915 if (copy) {
916 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(&object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data., data, length))
917 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
918 }
919 else {
920 object->datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. = data;
921 }
922
923 freecxx . . $ free(5d22bdacc48458e8).(save);
924
925 object->lengthcxx . . $ FLAC__StreamMetadata#length. = FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN. / 8 + length;
926 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
927 }
928
929 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# new_num_points)
930 {
931 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
932 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
933
934 if((FLAC__uint64cxx . . $ FLAC__uint64#)(new_num_points) * FLAC__STREAM_METADATA_SEEKPOINT_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:598:9`! >= (1u << FLAC__STREAM_METADATA_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_LENGTH_LEN.))
935 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
936
937 if (object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. == 0) {
938 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.seek_table.num_points == 0);
939 if (new_num_points == 0)
940 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
941 else if ((object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = seekpoint_array_new_cxx . . $ seekpoint_array_new_(226976d6ba22769).(new_num_points)) == 0)
942 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
943 }
944 else {
945 const size_t old_size = object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. * sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#);
946 const size_t new_size = new_num_points * sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#);
947
948 /* overflow check */
949 if (new_num_points > UINT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:118:10`! / sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#))
950 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
951
952 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.seek_table.num_points > 0);
953
954 if (new_size == 0) {
955 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.);
956 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = 0;
957 }
958 else {
959 /* Leave object->data.seek_table.points untouched if realloc fails */
960 FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint# *tmpptr;
961 if ((tmpptr = realloccxx . . $ realloc(417ab160f6baadc6).(object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points., new_size)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
962 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
963 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = tmpptr;
964 }
965
966 /* if growing, set new elements to placeholders */
967 if (new_size > old_size) {
968 uint32_tcxx . . $ uint32_t# i;
969 for (i = object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.; i < new_num_points; i++) {
970 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDERcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER.;
971 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
972 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
973 }
974 }
975 }
976
977 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. = new_num_points;
978
979 seektable_calculate_length_cxx . . $ seektable_calculate_length_(584ecc423fe01cfd).(object);
980 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
981 }
982
983 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! void FLAC__metadata_object_seektable_set_pointcxx . . $ FLAC__metadata_object_seektable_set_point(eed7a22462eb5622).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# point_num, FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint# point)
984 {
985 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
986 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
987 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(point_num < object->data.seek_table.num_points);
988
989 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[point_num] = point;
990 }
991
992 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_insert_pointcxx . . $ FLAC__metadata_object_seektable_insert_point(2be5d98760fecd25).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# point_num, FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint# point)
993 {
994 int i;
995
996 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
997 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
998 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(point_num <= object->data.seek_table.num_points);
999
1000 if (!FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.+1))
1001 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1002
1003 /* move all points >= point_num forward one space */
1004 for (i = (int)object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.-1; i > (int)point_num; i--)
1005 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i] = object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i-1];
1006
1007 FLAC__metadata_object_seektable_set_pointcxx . . $ FLAC__metadata_object_seektable_set_point(eed7a22462eb5622).(object, point_num, point);
1008 seektable_calculate_length_cxx . . $ seektable_calculate_length_(584ecc423fe01cfd).(object);
1009 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1010 }
1011
1012 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_delete_pointcxx . . $ FLAC__metadata_object_seektable_delete_point(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# point_num)
1013 {
1014 uint32_tcxx . . $ uint32_t# i;
1015
1016 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1017 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1018 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(point_num < object->data.seek_table.num_points);
1019
1020 /* move all points > point_num backward one space */
1021 for (i = point_num; i < object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.-1; i++)
1022 object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i] = object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i+1];
1023
1024 return FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.-1);
1025 }
1026
1027 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_is_legalcxx . . $ FLAC__metadata_object_seektable_is_legal(d1c06fb76b4ca822).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
1028 {
1029 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1030 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1031
1032 return FLAC__format_seektable_is_legalcxx . . $ FLAC__format_seektable_is_legal(ca02f2f558d02df2).(&object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.);
1033 }
1034
1035 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_template_append_placeholderscxx . . $ FLAC__metadata_object_seektable_template_append_placeholders(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# num)
1036 {
1037 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1038 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1039
1040 if (num > 0)
1041 /* WATCHOUT: we rely on the fact that growing the array adds PLACEHOLDERS at the end */
1042 return FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. + num);
1043 else
1044 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1045 }
1046
1047 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_template_append_pointcxx . . $ FLAC__metadata_object_seektable_template_append_point(f2dca4871937f95).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__uint64cxx . . $ FLAC__uint64# sample_number)
1048 {
1049 FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *seek_table;
1050
1051 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1052 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1053
1054 seek_table = &object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.;
1055
1056 if (!FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. + 1))
1057 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1058
1059 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. - 1].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = sample_number;
1060 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. - 1].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
1061 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. - 1].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
1062
1063 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1064 }
1065
1066 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_template_append_pointscxx . . $ FLAC__metadata_object_seektable_template_append_points(35cce9be294e8ffd).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__uint64cxx . . $ FLAC__uint64# sample_numbers[], uint32_tcxx . . $ uint32_t# num)
1067 {
1068 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1069 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1070 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(sample_numbers != 0 || num == 0);
1071
1072 if (num > 0) {
1073 FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *seek_table = &object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.;
1074 uint32_tcxx . . $ uint32_t# i, j;
1075
1076 i = seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.;
1077
1078 if (!FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. + num))
1079 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1080
1081 for (j = 0; j < num; i++, j++) {
1082 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = sample_numbers[j];
1083 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
1084 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
1085 }
1086 }
1087
1088 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1089 }
1090
1091 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_template_append_spaced_pointscxx . . $ FLAC__metadata_object_seektable_template_append_spaced_points(811006d7145750a6).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# num, FLAC__uint64cxx . . $ FLAC__uint64# total_samples)
1092 {
1093 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1094 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1095
1096 if (num > 0 && total_samples > 0) {
1097 FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *seek_table = &object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.;
1098 uint32_tcxx . . $ uint32_t# i, j;
1099
1100 i = seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.;
1101
1102 if (!FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. + num))
1103 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1104
1105 if(total_samples < UINT64_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:119:10`! / num) {
1106 /* No risk of overflow */
1107 for (j = 0; j < num; i++, j++) {
1108 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = total_samples * (FLAC__uint64cxx . . $ FLAC__uint64#)j / (FLAC__uint64cxx . . $ FLAC__uint64#)num;
1109 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
1110 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
1111 }
1112 }
1113 else {
1114 /* Less precise, but can handle total_samples near UINT64_MAX */
1115 for (j = 0; j < num; i++, j++) {
1116 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = total_samples / (FLAC__uint64cxx . . $ FLAC__uint64#)num * (FLAC__uint64cxx . . $ FLAC__uint64#)j;
1117 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
1118 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
1119 }
1120 }
1121 }
1122
1123 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1124 }
1125
1126 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_template_append_spaced_points_by_samplescxx . . $ FLAC__metadata_object_seektable_template_append_spaced_points_by_samples(811006d7145750a6).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# samples, FLAC__uint64cxx . . $ FLAC__uint64# total_samples)
1127 {
1128 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1129 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1130
1131 if (samples > 0 && total_samples > 0) {
1132 FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *seek_table = &object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.;
1133 uint32_tcxx . . $ uint32_t# i, j;
1134 FLAC__uint64cxx . . $ FLAC__uint64# num, sample;
1135
1136 num = 1 + total_samples / samples; /* 1+ for the first sample at 0 */
1137 /* now account for the fact that we don't place a seekpoint at "total_samples" since samples are number from 0: */
1138 if (total_samples % samples == 0)
1139 num--;
1140
1141 /* Put a strict upper bound on the number of allowed seek points. */
1142 if (num > 32768) {
1143 /* Set the bound and recalculate samples accordingly. */
1144 num = 32768;
1145 samples = (uint32_tcxx . . $ uint32_t#)(total_samples / num);
1146 }
1147
1148 i = seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.;
1149
1150 if (!FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. + (uint32_tcxx . . $ uint32_t#)num))
1151 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1152
1153 sample = 0;
1154 for (j = 0; j < num; i++, j++, sample += samples) {
1155 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = sample;
1156 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = 0;
1157 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = 0;
1158 }
1159 }
1160
1161 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1162 }
1163
1164 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_seektable_template_sortcxx . . $ FLAC__metadata_object_seektable_template_sort(153ee1d07640c2bf).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__boolcxx . . $ FLAC__bool# compact)
1165 {
1166 uint32_tcxx . . $ uint32_t# unique;
1167
1168 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1169 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_SEEKTABLE);
1170
1171 unique = FLAC__format_seektable_sortcxx . . $ FLAC__format_seektable_sort(b229e0ef3819113c).(&object->datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table.);
1172
1173 return !compact || FLAC__metadata_object_seektable_resize_pointscxx . . $ FLAC__metadata_object_seektable_resize_points(f7bfb03764ad0b4a).(object, unique);
1174 }
1175
1176 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_set_vendor_stringcxx . . $ FLAC__metadata_object_vorbiscomment_set_vendor_string(c72c3d2bc94d8fd6).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, FLAC__boolcxx . . $ FLAC__bool# copy)
1177 {
1178 if (!FLAC__format_vorbiscomment_entry_value_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_value_is_legal(f360f2bcf3cfccb1).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
1179 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1180 return vorbiscomment_set_entry_cxx . . $ vorbiscomment_set_entry_(9b8a3638dfe59816).(object, &object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string., &entry, copy);
1181 }
1182
1183 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_resize_commentscxx . . $ FLAC__metadata_object_vorbiscomment_resize_comments(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# new_num_comments)
1184 {
1185 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1186 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
1187
1188 if (object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1189 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.vorbis_comment.num_comments == 0);
1190 if (new_num_comments == 0)
1191 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1192 else {
1193 uint32_tcxx . . $ uint32_t# i;
1194 if ((object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = vorbiscomment_entry_array_new_cxx . . $ vorbiscomment_entry_array_new_(115d24579b1bc326).(new_num_comments)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1195 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1196 for (i = 0; i < new_num_comments; i++) {
1197 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = 0;
1198 if ((object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = safe_malloc_cxx . . $ safe_malloc_(bfcfa4d6b7f7ef64).(1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1199 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i+1;
1200 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1201 }
1202 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[0] = '\0';
1203 }
1204 }
1205 }
1206 else {
1207 const size_t old_size = object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. * sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#);
1208 const size_t new_size = new_num_comments * sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#);
1209
1210 /* overflow check */
1211 if (new_num_comments > UINT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:118:10`! / sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#))
1212 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1213
1214 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.vorbis_comment.num_comments > 0);
1215
1216 /* if shrinking, free the truncated entries */
1217 if (new_num_comments < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.) {
1218 uint32_tcxx . . $ uint32_t# i;
1219 for (i = new_num_comments; i < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++)
1220 if (object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1221 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
1222 }
1223
1224 if (new_size == 0) {
1225 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.);
1226 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = 0;
1227 }
1228 else {
1229 /* Leave object->data.vorbis_comment.comments untouched if realloc fails */
1230 FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *tmpptr;
1231 if ((tmpptr = realloccxx . . $ realloc(417ab160f6baadc6).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments., new_size)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1232 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1233 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = tmpptr;
1234 }
1235
1236 /* if growing, zero all the length/pointers of new elements */
1237 if (new_size > old_size) {
1238 uint32_tcxx . . $ uint32_t# i;
1239 for (i = object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i < new_num_comments; i++) {
1240 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = 0;
1241 if ((object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = safe_malloc_cxx . . $ safe_malloc_(bfcfa4d6b7f7ef64).(1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1242 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i+1;
1243 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1244 }
1245 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[0] = '\0';
1246 }
1247 }
1248 }
1249
1250 object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = new_num_comments;
1251
1252 vorbiscomment_calculate_length_cxx . . $ vorbiscomment_calculate_length_(584ecc423fe01cfd).(object);
1253 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1254 }
1255
1256 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_set_commentcxx . . $ FLAC__metadata_object_vorbiscomment_set_comment(607301687f71ebc2).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# comment_num, FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, FLAC__boolcxx . . $ FLAC__bool# copy)
1257 {
1258 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1259 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(comment_num < object->data.vorbis_comment.num_comments);
1260
1261 if (!FLAC__format_vorbiscomment_entry_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_is_legal(f360f2bcf3cfccb1).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
1262 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1263 return vorbiscomment_set_entry_cxx . . $ vorbiscomment_set_entry_(9b8a3638dfe59816).(object, &object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num], &entry, copy);
1264 }
1265
1266 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_insert_commentcxx . . $ FLAC__metadata_object_vorbiscomment_insert_comment(607301687f71ebc2).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# comment_num, FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, FLAC__boolcxx . . $ FLAC__bool# copy)
1267 {
1268 FLAC__StreamMetadata_VorbisCommentcxx . . $ FLAC__StreamMetadata_VorbisComment# *vc;
1269 FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# temp;
1270
1271 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1272 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
1273 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(comment_num <= object->data.vorbis_comment.num_comments);
1274
1275 if (!FLAC__format_vorbiscomment_entry_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_is_legal(f360f2bcf3cfccb1).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
1276 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1277
1278 vc = &object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment.;
1279
1280 if (!FLAC__metadata_object_vorbiscomment_resize_commentscxx . . $ FLAC__metadata_object_vorbiscomment_resize_comments(f7bfb03764ad0b4a).(object, vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.+1))
1281 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1282
1283 /* move all comments >= comment_num forward one space */
1284 /* reuse newly added empty comment */
1285 temp = vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.-1];
1286 memmovecxx . . $ memmove(cc817cb175f282d).(&vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num+1], &vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num], sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#)*(vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.-1-comment_num));
1287 vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num] = temp;
1288
1289 return FLAC__metadata_object_vorbiscomment_set_commentcxx . . $ FLAC__metadata_object_vorbiscomment_set_comment(607301687f71ebc2).(object, comment_num, entry, copy);
1290 }
1291
1292 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_append_commentcxx . . $ FLAC__metadata_object_vorbiscomment_append_comment(c72c3d2bc94d8fd6).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, FLAC__boolcxx . . $ FLAC__bool# copy)
1293 {
1294 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1295 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
1296 return FLAC__metadata_object_vorbiscomment_insert_commentcxx . . $ FLAC__metadata_object_vorbiscomment_insert_comment(607301687f71ebc2).(object, object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments., entry, copy);
1297 }
1298
1299 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_replace_commentcxx . . $ FLAC__metadata_object_vorbiscomment_replace_comment(a3a079eb7a0c3f00).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, FLAC__boolcxx . . $ FLAC__bool# all, FLAC__boolcxx . . $ FLAC__bool# copy)
1300 {
1301 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(entry.entry != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1302
1303 if (!FLAC__format_vorbiscomment_entry_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_is_legal(f360f2bcf3cfccb1).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
1304 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1305
1306 {
1307 int i;
1308 size_t field_name_length;
1309 const FLAC__bytecxx . . $ FLAC__byte# *eq = (FLAC__bytecxx . . $ FLAC__byte#*)memchrcxx . . $ memchr(3976b00ca259a364).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., '=', entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.);
1310
1311 if (eq == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1312 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* double protection */
1313
1314 field_name_length = eq-entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.;
1315
1316 i = vorbiscomment_find_entry_from_cxx . . $ vorbiscomment_find_entry_from_(89b6c085f1278de3).(object, 0, (const char *)entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., field_name_length);
1317 if (i >= 0) {
1318 uint32_tcxx . . $ uint32_t# indx = (uint32_tcxx . . $ uint32_t#)i;
1319 if (!FLAC__metadata_object_vorbiscomment_set_commentcxx . . $ FLAC__metadata_object_vorbiscomment_set_comment(607301687f71ebc2).(object, indx, entry, copy))
1320 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1321 entry = object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[indx];
1322 indx++; /* skip over replaced comment */
1323 if (all && indx < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.) {
1324 i = vorbiscomment_find_entry_from_cxx . . $ vorbiscomment_find_entry_from_(89b6c085f1278de3).(object, indx, (const char *)entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., field_name_length);
1325 while (i >= 0) {
1326 indx = (uint32_tcxx . . $ uint32_t#)i;
1327 if (!FLAC__metadata_object_vorbiscomment_delete_commentcxx . . $ FLAC__metadata_object_vorbiscomment_delete_comment(f7bfb03764ad0b4a).(object, indx))
1328 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1329 if (indx < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.)
1330 i = vorbiscomment_find_entry_from_cxx . . $ vorbiscomment_find_entry_from_(89b6c085f1278de3).(object, indx, (const char *)entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., field_name_length);
1331 else
1332 i = -1;
1333 }
1334 }
1335 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1336 }
1337 else
1338 return FLAC__metadata_object_vorbiscomment_append_commentcxx . . $ FLAC__metadata_object_vorbiscomment_append_comment(c72c3d2bc94d8fd6).(object, entry, copy);
1339 }
1340 }
1341
1342 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_delete_commentcxx . . $ FLAC__metadata_object_vorbiscomment_delete_comment(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# comment_num)
1343 {
1344 FLAC__StreamMetadata_VorbisCommentcxx . . $ FLAC__StreamMetadata_VorbisComment# *vc;
1345
1346 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1347 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
1348 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(comment_num < object->data.vorbis_comment.num_comments);
1349
1350 vc = &object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment.;
1351
1352 /* free the comment at comment_num */
1353 freecxx . . $ free(5d22bdacc48458e8).(vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
1354
1355 /* move all comments > comment_num backward one space */
1356 memmovecxx . . $ memmove(cc817cb175f282d).(&vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num], &vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[comment_num+1], sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#)*(vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.-comment_num-1));
1357 vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.-1].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = 0;
1358 vc->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.-1].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = 0;
1359
1360 return FLAC__metadata_object_vorbiscomment_resize_commentscxx . . $ FLAC__metadata_object_vorbiscomment_resize_comments(f7bfb03764ad0b4a).(object, vc->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.-1);
1361 }
1362
1363 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_entry_from_name_value_paircxx . . $ FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(40f4f0de6091597).(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# *entry, const char *field_name, const char *field_value)
1364 {
1365 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(entry != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1366 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(field_name != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1367 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(field_value != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1368
1369 if (!FLAC__format_vorbiscomment_entry_name_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_name_is_legal(5c4306d8553b3696).(field_name))
1370 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1371 if (!FLAC__format_vorbiscomment_entry_value_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_value_is_legal(f360f2bcf3cfccb1).((const FLAC__bytecxx . . $ FLAC__byte# *)field_value, (uint32_tcxx . . $ uint32_t#)(-1)))
1372 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1373
1374 {
1375 const size_t nn = strlencxx . . $ strlen(751346f8406fd082).(field_name);
1376 const size_t nv = strlencxx . . $ strlen(751346f8406fd082).(field_value);
1377 entry->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = nn + 1 /*=*/ + nv;
1378 if ((entry->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = safe_malloc_add_4op_cxx . . $ safe_malloc_add_4op_(f7df765e38f0dafb).(nn, /*+*/1, /*+*/nv, /*+*/1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1379 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1380 memcpycxx . . $ memcpy(cc817cb175f282d).(entry->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., field_name, nn);
1381 entry->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[nn] = '=';
1382 memcpycxx . . $ memcpy(cc817cb175f282d).(entry->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.+nn+1, field_value, nv);
1383 entry->entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[entry->lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.] = '\0';
1384 }
1385
1386 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1387 }
1388
1389 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_entry_to_name_value_paircxx . . $ FLAC__metadata_object_vorbiscomment_entry_to_name_value_pair(cc7a537fc0f9844c).(const FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, char **field_name, char **field_value)
1390 {
1391 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(entry.entry != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1392 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(field_name != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1393 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(field_value != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1394
1395 if (!FLAC__format_vorbiscomment_entry_is_legalcxx . . $ FLAC__format_vorbiscomment_entry_is_legal(f360f2bcf3cfccb1).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
1396 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1397
1398 {
1399 const FLAC__bytecxx . . $ FLAC__byte# *eq = (FLAC__bytecxx . . $ FLAC__byte#*)memchrcxx . . $ memchr(3976b00ca259a364).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., '=', entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.);
1400 const size_t nn = eq-entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.;
1401 const size_t nv = entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.-nn-1; /* -1 for the '=' */
1402
1403 if (eq == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1404 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* double protection */
1405 if ((*field_name = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(nn, /*+*/1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1406 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1407 if ((*field_value = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(nv, /*+*/1)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1408 freecxx . . $ free(5d22bdacc48458e8).(*field_name);
1409 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1410 }
1411 memcpycxx . . $ memcpy(cc817cb175f282d).(*field_name, entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., nn);
1412 memcpycxx . . $ memcpy(cc817cb175f282d).(*field_value, entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.+nn+1, nv);
1413 (*field_name)[nn] = '\0';
1414 (*field_value)[nv] = '\0';
1415 }
1416
1417 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1418 }
1419
1420 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_vorbiscomment_entry_matchescxx . . $ FLAC__metadata_object_vorbiscomment_entry_matches(739c4c81e2b3849c).(const FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry# entry, const char *field_name, uint32_tcxx . . $ uint32_t# field_name_length)
1421 {
1422 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(entry.entry != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1423 {
1424 const FLAC__bytecxx . . $ FLAC__byte# *eq = (FLAC__bytecxx . . $ FLAC__byte#*)memchrcxx . . $ memchr(3976b00ca259a364).(entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., '=', entry.lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.);
1425 return (eq != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && (uint32_tcxx . . $ uint32_t#)(eq-entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.) == field_name_length && FLAC__STRNCASECMPcxx . . $ `external/flac/flac_share_compat.h:112:9`!(field_name, (const char *)entry.entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., field_name_length) == 0);
1426 }
1427 }
1428
1429 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! int FLAC__metadata_object_vorbiscomment_find_entry_fromcxx . . $ FLAC__metadata_object_vorbiscomment_find_entry_from(2b891601a40281b4).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# offset, const char *field_name)
1430 {
1431 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(field_name != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1432
1433 return vorbiscomment_find_entry_from_cxx . . $ vorbiscomment_find_entry_from_(89b6c085f1278de3).(object, offset, field_name, strlencxx . . $ strlen(751346f8406fd082).(field_name));
1434 }
1435
1436 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! int FLAC__metadata_object_vorbiscomment_remove_entry_matchingcxx . . $ FLAC__metadata_object_vorbiscomment_remove_entry_matching(e92bb0b427471b57).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, const char *field_name)
1437 {
1438 const uint32_tcxx . . $ uint32_t# field_name_length = strlencxx . . $ strlen(751346f8406fd082).(field_name);
1439 uint32_tcxx . . $ uint32_t# i;
1440
1441 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1442 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
1443
1444 for (i = 0; i < object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++) {
1445 if (FLAC__metadata_object_vorbiscomment_entry_matchescxx . . $ FLAC__metadata_object_vorbiscomment_entry_matches(739c4c81e2b3849c).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i], field_name, field_name_length)) {
1446 if (!FLAC__metadata_object_vorbiscomment_delete_commentcxx . . $ FLAC__metadata_object_vorbiscomment_delete_comment(f7bfb03764ad0b4a).(object, i))
1447 return -1;
1448 else
1449 return 1;
1450 }
1451 }
1452
1453 return 0;
1454 }
1455
1456 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! int FLAC__metadata_object_vorbiscomment_remove_entries_matchingcxx . . $ FLAC__metadata_object_vorbiscomment_remove_entries_matching(e92bb0b427471b57).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, const char *field_name)
1457 {
1458 FLAC__boolcxx . . $ FLAC__bool# ok = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1459 uint32_tcxx . . $ uint32_t# matching = 0;
1460 const uint32_tcxx . . $ uint32_t# field_name_length = strlencxx . . $ strlen(751346f8406fd082).(field_name);
1461 int i;
1462
1463 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1464 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
1465
1466 /* must delete from end to start otherwise it will interfere with our iteration */
1467 for (i = (int)object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. - 1; ok && i >= 0; i--) {
1468 if (FLAC__metadata_object_vorbiscomment_entry_matchescxx . . $ FLAC__metadata_object_vorbiscomment_entry_matches(739c4c81e2b3849c).(object->datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i], field_name, field_name_length)) {
1469 matching++;
1470 ok &= FLAC__metadata_object_vorbiscomment_delete_commentcxx . . $ FLAC__metadata_object_vorbiscomment_delete_comment(f7bfb03764ad0b4a).(object, (uint32_tcxx . . $ uint32_t#)i);
1471 }
1472 }
1473
1474 return ok? (int)matching : -1;
1475 }
1476
1477 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *FLAC__metadata_object_cuesheet_track_newcxx . . $ FLAC__metadata_object_cuesheet_track_new(a41b03d73b407c4c).(void)
1478 {
1479 return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#));
1480 }
1481
1482 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *FLAC__metadata_object_cuesheet_track_clonecxx . . $ FLAC__metadata_object_cuesheet_track_clone(6bf0039f126d654d).(const FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *object)
1483 {
1484 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *to;
1485
1486 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1487
1488 if ((to = FLAC__metadata_object_cuesheet_track_newcxx . . $ FLAC__metadata_object_cuesheet_track_new(a41b03d73b407c4c).()) != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1489 if (!copy_track_cxx . . $ copy_track_(1b6cd17d4bf782b2).(to, object)) {
1490 FLAC__metadata_object_cuesheet_track_deletecxx . . $ FLAC__metadata_object_cuesheet_track_delete(3d774c9ed8e2863).(to);
1491 return 0;
1492 }
1493 }
1494
1495 return to;
1496 }
1497
1498 void FLAC__metadata_object_cuesheet_track_delete_datacxx . . $ FLAC__metadata_object_cuesheet_track_delete_data(3d774c9ed8e2863).(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *object)
1499 {
1500 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1501
1502 if (object->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1503 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->num_indices > 0);
1504 freecxx . . $ free(5d22bdacc48458e8).(object->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.);
1505 }
1506 }
1507
1508 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! void FLAC__metadata_object_cuesheet_track_deletecxx . . $ FLAC__metadata_object_cuesheet_track_delete(3d774c9ed8e2863).(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *object)
1509 {
1510 FLAC__metadata_object_cuesheet_track_delete_datacxx . . $ FLAC__metadata_object_cuesheet_track_delete_data(3d774c9ed8e2863).(object);
1511 freecxx . . $ free(5d22bdacc48458e8).(object);
1512 }
1513
1514 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_track_resize_indicescxx . . $ FLAC__metadata_object_cuesheet_track_resize_indices(d7df5edfc3ff7901).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num, uint32_tcxx . . $ uint32_t# new_num_indices)
1515 {
1516 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *track;
1517 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1518 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1519 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track_num < object->data.cue_sheet.num_tracks);
1520
1521 track = &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num];
1522
1523 if (track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1524 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track->num_indices == 0);
1525 if (new_num_indices == 0)
1526 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1527 else if ((track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = cuesheet_track_index_array_new_cxx . . $ cuesheet_track_index_array_new_(5abd40bff1a40219).(new_num_indices)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1528 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1529 }
1530 else {
1531 const size_t old_size = track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. * sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#);
1532 const size_t new_size = new_num_indices * sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#);
1533
1534 /* overflow check */
1535 if (new_num_indices > UINT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:118:10`! / sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#))
1536 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1537
1538 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track->num_indices > 0);
1539
1540 if (new_size == 0) {
1541 freecxx . . $ free(5d22bdacc48458e8).(track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.);
1542 track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = 0;
1543 }
1544 else {
1545 /* Leave track->indices untouched if realloc fails */
1546 FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# *tmpptr;
1547 if ((tmpptr = realloccxx . . $ realloc(417ab160f6baadc6).(track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices., new_size)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1548 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1549 track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = tmpptr;
1550 }
1551
1552 /* if growing, zero all the lengths/pointers of new elements */
1553 if (new_size > old_size)
1554 memsetcxx . . $ memset(d1de1e4fb215f1c6).(track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. + track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices., 0, new_size - old_size);
1555 }
1556
1557 track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. = new_num_indices;
1558
1559 cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(object);
1560 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1561 }
1562
1563 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_track_insert_indexcxx . . $ FLAC__metadata_object_cuesheet_track_insert_index(a8aad99886dee8e5).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num, uint32_tcxx . . $ uint32_t# index_num, FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# indx)
1564 {
1565 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *track;
1566
1567 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1568 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1569 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track_num < object->data.cue_sheet.num_tracks);
1570 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(index_num <= object->data.cue_sheet.tracks[track_num].num_indices);
1571
1572 track = &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num];
1573
1574 if (!FLAC__metadata_object_cuesheet_track_resize_indicescxx . . $ FLAC__metadata_object_cuesheet_track_resize_indices(d7df5edfc3ff7901).(object, track_num, track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.+1))
1575 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1576
1577 /* move all indices >= index_num forward one space */
1578 memmovecxx . . $ memmove(cc817cb175f282d).(&track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[index_num+1], &track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[index_num], sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#)*(track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.-1-index_num));
1579
1580 track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[index_num] = indx;
1581 cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(object);
1582 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1583 }
1584
1585 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_track_insert_blank_indexcxx . . $ FLAC__metadata_object_cuesheet_track_insert_blank_index(d7df5edfc3ff7901).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num, uint32_tcxx . . $ uint32_t# index_num)
1586 {
1587 FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# indx;
1588 memsetcxx . . $ memset(d1de1e4fb215f1c6).(&indx, 0, sizeof(indx));
1589 return FLAC__metadata_object_cuesheet_track_insert_indexcxx . . $ FLAC__metadata_object_cuesheet_track_insert_index(a8aad99886dee8e5).(object, track_num, index_num, indx);
1590 }
1591
1592 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_track_delete_indexcxx . . $ FLAC__metadata_object_cuesheet_track_delete_index(d7df5edfc3ff7901).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num, uint32_tcxx . . $ uint32_t# index_num)
1593 {
1594 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *track;
1595
1596 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1597 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1598 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track_num < object->data.cue_sheet.num_tracks);
1599 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(index_num < object->data.cue_sheet.tracks[track_num].num_indices);
1600
1601 track = &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num];
1602
1603 /* move all indices > index_num backward one space */
1604 memmovecxx . . $ memmove(cc817cb175f282d).(&track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[index_num], &track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[index_num+1], sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#)*(track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.-index_num-1));
1605
1606 FLAC__metadata_object_cuesheet_track_resize_indicescxx . . $ FLAC__metadata_object_cuesheet_track_resize_indices(d7df5edfc3ff7901).(object, track_num, track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.-1);
1607 cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(object);
1608 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1609 }
1610
1611 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_resize_trackscxx . . $ FLAC__metadata_object_cuesheet_resize_tracks(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# new_num_tracks)
1612 {
1613 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1614 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1615
1616 if (object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!) {
1617 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.cue_sheet.num_tracks == 0);
1618 if (new_num_tracks == 0)
1619 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1620 else if ((object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. = cuesheet_track_array_new_cxx . . $ cuesheet_track_array_new_(7698b31ba036db6f).(new_num_tracks)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1621 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1622 }
1623 else {
1624 const size_t old_size = object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. * sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#);
1625 const size_t new_size = new_num_tracks * sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#);
1626
1627 /* overflow check */
1628 if (new_num_tracks > UINT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:118:10`! / sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#))
1629 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1630
1631 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->data.cue_sheet.num_tracks > 0);
1632
1633 /* if shrinking, free the truncated entries */
1634 if (new_num_tracks < object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.) {
1635 uint32_tcxx . . $ uint32_t# i;
1636 for (i = new_num_tracks; i < object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.; i++)
1637 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.);
1638 }
1639
1640 if (new_size == 0) {
1641 freecxx . . $ free(5d22bdacc48458e8).(object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.);
1642 object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. = 0;
1643 }
1644 else {
1645 /* Leave object->data.cue_sheet.tracks untouched if realloc fails */
1646 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *tmpptr;
1647 if ((tmpptr = realloccxx . . $ realloc(417ab160f6baadc6).(object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks., new_size)) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1648 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1649 object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. = tmpptr;
1650 }
1651
1652 /* if growing, zero all the lengths/pointers of new elements */
1653 if (new_size > old_size)
1654 memsetcxx . . $ memset(d1de1e4fb215f1c6).(object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. + object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks., 0, new_size - old_size);
1655 }
1656
1657 object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. = new_num_tracks;
1658
1659 cuesheet_calculate_length_cxx . . $ cuesheet_calculate_length_(584ecc423fe01cfd).(object);
1660 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1661 }
1662
1663 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_set_trackcxx . . $ FLAC__metadata_object_cuesheet_set_track(e64637a93588f574).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num, FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *track, FLAC__boolcxx . . $ FLAC__bool# copy)
1664 {
1665 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1666 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track_num < object->data.cue_sheet.num_tracks);
1667
1668 return cuesheet_set_track_cxx . . $ cuesheet_set_track_(cccd1ed41ceb0cb1).(object, object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. + track_num, track, copy);
1669 }
1670
1671 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_insert_trackcxx . . $ FLAC__metadata_object_cuesheet_insert_track(e64637a93588f574).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num, FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *track, FLAC__boolcxx . . $ FLAC__bool# copy)
1672 {
1673 FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *cs;
1674
1675 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1676 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1677 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track_num <= object->data.cue_sheet.num_tracks);
1678
1679 cs = &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet.;
1680
1681 if (!FLAC__metadata_object_cuesheet_resize_trackscxx . . $ FLAC__metadata_object_cuesheet_resize_tracks(f7bfb03764ad0b4a).(object, cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.+1))
1682 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1683
1684 /* move all tracks >= track_num forward one space */
1685 memmovecxx . . $ memmove(cc817cb175f282d).(&cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num+1], &cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num], sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#)*(cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1-track_num));
1686 cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. = 0;
1687 cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = 0;
1688
1689 return FLAC__metadata_object_cuesheet_set_trackcxx . . $ FLAC__metadata_object_cuesheet_set_track(e64637a93588f574).(object, track_num, track, copy);
1690 }
1691
1692 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_insert_blank_trackcxx . . $ FLAC__metadata_object_cuesheet_insert_blank_track(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num)
1693 {
1694 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# track;
1695 memsetcxx . . $ memset(d1de1e4fb215f1c6).(&track, 0, sizeof(track));
1696 return FLAC__metadata_object_cuesheet_insert_trackcxx . . $ FLAC__metadata_object_cuesheet_insert_track(e64637a93588f574).(object, track_num, &track, /*copy=*/falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
1697 }
1698
1699 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_delete_trackcxx . . $ FLAC__metadata_object_cuesheet_delete_track(f7bfb03764ad0b4a).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, uint32_tcxx . . $ uint32_t# track_num)
1700 {
1701 FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *cs;
1702
1703 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1704 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1705 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(track_num < object->data.cue_sheet.num_tracks);
1706
1707 cs = &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet.;
1708
1709 /* free the track at track_num */
1710 freecxx . . $ free(5d22bdacc48458e8).(cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.);
1711
1712 /* move all tracks > track_num backward one space */
1713 memmovecxx . . $ memmove(cc817cb175f282d).(&cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num], &cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track_num+1], sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#)*(cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-track_num-1));
1714 cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. = 0;
1715 cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = 0;
1716
1717 return FLAC__metadata_object_cuesheet_resize_trackscxx . . $ FLAC__metadata_object_cuesheet_resize_tracks(f7bfb03764ad0b4a).(object, cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1);
1718 }
1719
1720 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_cuesheet_is_legalcxx . . $ FLAC__metadata_object_cuesheet_is_legal(695b95d9de784b5b).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__boolcxx . . $ FLAC__bool# check_cd_da_subset, const char **violation)
1721 {
1722 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1723 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1724
1725 return FLAC__format_cuesheet_is_legalcxx . . $ FLAC__format_cuesheet_is_legal(4b541508aa94af68).(&object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet., check_cd_da_subset, violation);
1726 }
1727
1728 static FLAC__uint64cxx . . $ FLAC__uint64# get_index_01_offset_cxx . . $ get_index_01_offset_(84cdfeef8e3d5f0d).(const FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *cs, uint32_tcxx . . $ uint32_t# track)
1729 {
1730 if (track >= (cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1) || cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. < 1)
1731 return 0;
1732 else if (cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[0].numbercxx . . $ $anonymous_type_81a4853959168ec7_28#number. == 1)
1733 return cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[0].offsetcxx . . $ $anonymous_type_81a4853959168ec7_28#offset. + cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].offsetcxx . . $ $anonymous_type_81a4853959168ec7_29#offset. + cs->lead_incxx . . $ $anonymous_type_81a4853959168ec7_30#lead_in.;
1734 else if (cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. < 2)
1735 return 0;
1736 else if (cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[1].numbercxx . . $ $anonymous_type_81a4853959168ec7_28#number. == 1)
1737 return cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[1].offsetcxx . . $ $anonymous_type_81a4853959168ec7_28#offset. + cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[track].offsetcxx . . $ $anonymous_type_81a4853959168ec7_29#offset. + cs->lead_incxx . . $ $anonymous_type_81a4853959168ec7_30#lead_in.;
1738 else
1739 return 0;
1740 }
1741
1742 static FLAC__uint32cxx . . $ FLAC__uint32# cddb_add_digits_cxx . . $ cddb_add_digits_(2141b656ce2cc063).(FLAC__uint32cxx . . $ FLAC__uint32# x)
1743 {
1744 FLAC__uint32cxx . . $ FLAC__uint32# n = 0;
1745 while (x) {
1746 n += (x%10);
1747 x /= 10;
1748 }
1749 return n;
1750 }
1751
1752 /*@@@@add to tests*/
1753 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__uint32cxx . . $ FLAC__uint32# FLAC__metadata_object_cuesheet_calculate_cddb_idcxx . . $ FLAC__metadata_object_cuesheet_calculate_cddb_id(ce02ec9750efdf0c).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
1754 {
1755 const FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *cs;
1756
1757 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1758 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_CUESHEET);
1759
1760 cs = &object->datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet.;
1761
1762 if (cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. < 2) /* need at least one real track and the lead-out track */
1763 return 0;
1764
1765 {
1766 FLAC__uint32cxx . . $ FLAC__uint32# i, length, sum = 0;
1767 for (i = 0; i < (cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1); i++) /* -1 to avoid counting the lead-out */
1768 sum += cddb_add_digits_cxx . . $ cddb_add_digits_(2141b656ce2cc063).((FLAC__uint32cxx . . $ FLAC__uint32#)(get_index_01_offset_cxx . . $ get_index_01_offset_(84cdfeef8e3d5f0d).(cs, i) / 44100));
1769 length = (FLAC__uint32cxx . . $ FLAC__uint32#)((cs->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1].offsetcxx . . $ $anonymous_type_81a4853959168ec7_29#offset.+cs->lead_incxx . . $ $anonymous_type_81a4853959168ec7_30#lead_in.) / 44100) - (FLAC__uint32cxx . . $ FLAC__uint32#)(get_index_01_offset_cxx . . $ get_index_01_offset_(84cdfeef8e3d5f0d).(cs, 0) / 44100);
1770
1771 return (sum % 0xFF) << 24 | length << 8 | (FLAC__uint32cxx . . $ FLAC__uint32#)(cs->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.-1);
1772 }
1773 }
1774
1775 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_picture_set_mime_typecxx . . $ FLAC__metadata_object_picture_set_mime_type(2baa5910759398f9).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, char *mime_type, FLAC__boolcxx . . $ FLAC__bool# copy)
1776 {
1777 char *old;
1778 size_t old_length, new_length;
1779
1780 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1781 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_PICTURE);
1782 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(mime_type != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1783
1784 old = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.;
1785 old_length = old? strlencxx . . $ strlen(751346f8406fd082).(old) : 0;
1786 new_length = strlencxx . . $ strlen(751346f8406fd082).(mime_type);
1787
1788 /* do the copy first so that if we fail we leave the object untouched */
1789 if (copy) {
1790 if (new_length >= SIZE_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:216:11`!) /* overflow check */
1791 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1792 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).((FLAC__bytecxx . . $ FLAC__byte#**)(&object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.), (FLAC__bytecxx . . $ FLAC__byte#*)mime_type, new_length+1))
1793 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1794 }
1795 else {
1796 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. = mime_type;
1797 }
1798
1799 freecxx . . $ free(5d22bdacc48458e8).(old);
1800
1801 object->lengthcxx . . $ FLAC__StreamMetadata#length. -= old_length;
1802 object->lengthcxx . . $ FLAC__StreamMetadata#length. += new_length;
1803 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1804 }
1805
1806 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_picture_set_descriptioncxx . . $ FLAC__metadata_object_picture_set_description(6f527133db9d2537).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__bytecxx . . $ FLAC__byte# *description, FLAC__boolcxx . . $ FLAC__bool# copy)
1807 {
1808 FLAC__bytecxx . . $ FLAC__byte# *old;
1809 size_t old_length, new_length;
1810
1811 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1812 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_PICTURE);
1813 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(description != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1814
1815 old = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.;
1816 old_length = old? strlencxx . . $ strlen(751346f8406fd082).((const char *)old) : 0;
1817 new_length = strlencxx . . $ strlen(751346f8406fd082).((const char *)description);
1818
1819 /* do the copy first so that if we fail we leave the object untouched */
1820 if (copy) {
1821 if (new_length >= SIZE_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:216:11`!) /* overflow check */
1822 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1823 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(&object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description., description, new_length+1))
1824 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1825 }
1826 else {
1827 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. = description;
1828 }
1829
1830 freecxx . . $ free(5d22bdacc48458e8).(old);
1831
1832 object->lengthcxx . . $ FLAC__StreamMetadata#length. -= old_length;
1833 object->lengthcxx . . $ FLAC__StreamMetadata#length. += new_length;
1834 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1835 }
1836
1837 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_picture_set_datacxx . . $ FLAC__metadata_object_picture_set_data(a76fc753005250a4).(FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, FLAC__bytecxx . . $ FLAC__byte# *data, FLAC__uint32cxx . . $ FLAC__uint32# length, FLAC__boolcxx . . $ FLAC__bool# copy)
1838 {
1839 FLAC__bytecxx . . $ FLAC__byte# *old;
1840
1841 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1842 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_PICTURE);
1843 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!((data != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && length > 0) || (data == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`! && length == 0 && copy == falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!));
1844
1845 old = object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data.;
1846
1847 /* do the copy first so that if we fail we leave the object untouched */
1848 if (copy) {
1849 if (!copy_bytes_cxx . . $ copy_bytes_(364e9f4ea1d2fea4).(&object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data., data, length))
1850 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1851 }
1852 else {
1853 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. = data;
1854 }
1855
1856 freecxx . . $ free(5d22bdacc48458e8).(old);
1857
1858 object->lengthcxx . . $ FLAC__StreamMetadata#length. -= object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.;
1859 object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length. = length;
1860 object->lengthcxx . . $ FLAC__StreamMetadata#length. += length;
1861 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1862 }
1863
1864 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__metadata_object_picture_is_legalcxx . . $ FLAC__metadata_object_picture_is_legal(7a3b554b1667f8ed).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object, const char **violation)
1865 {
1866 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1867 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object->type == FLAC__METADATA_TYPE_PICTURE);
1868
1869 return FLAC__format_picture_is_legalcxx . . $ FLAC__format_picture_is_legal(8a4c3ff4c9d65d88).(&object->datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture., violation);
1870 }
1871
1872 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__bytecxx . . $ FLAC__byte# * FLAC__metadata_object_get_rawcxx . . $ FLAC__metadata_object_get_raw(d14a2d99503a8e79).(const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *object)
1873 {
1874 FLAC__BitWritercxx . . $ FLAC__BitWriter# *bw;
1875 const FLAC__bytecxx . . $ FLAC__byte# * buffer;
1876 FLAC__bytecxx . . $ FLAC__byte# * output;
1877 size_t bytes;
1878
1879 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(object != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
1880
1881 if((bw = FLAC__bitwriter_newcxx . . $ FLAC__bitwriter_new(33f3f35c0ce6697a).()) == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!)
1882 return 0;
1883 if(!FLAC__bitwriter_initcxx . . $ FLAC__bitwriter_init(e78cf1f479cd0e1c).(bw)) {
1884 FLAC__bitwriter_deletecxx . . $ FLAC__bitwriter_delete(3d16a9ed52dcdfb4).(bw);
1885 return 0;
1886 }
1887 if(!FLAC__add_metadata_blockcxx . . $ FLAC__add_metadata_block(7b16f683b257b9d2).(object, bw, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!)) {
1888 FLAC__bitwriter_deletecxx . . $ FLAC__bitwriter_delete(3d16a9ed52dcdfb4).(bw);
1889 return 0;
1890 }
1891
1892 if(!FLAC__bitwriter_get_buffercxx . . $ FLAC__bitwriter_get_buffer(3184c6b917e6cfb9).(bw, &buffer, &bytes)) {
1893 FLAC__bitwriter_deletecxx . . $ FLAC__bitwriter_delete(3d16a9ed52dcdfb4).(bw);
1894 return 0;
1895 }
1896
1897 /* Extra check whether length of bitwriter agrees with length of metadata block */
1898 if(bytes != (object->lengthcxx . . $ FLAC__StreamMetadata#length.+FLAC__STREAM_METADATA_HEADER_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:872:9`!)) {
1899 FLAC__bitwriter_deletecxx . . $ FLAC__bitwriter_delete(3d16a9ed52dcdfb4).(bw);
1900 return 0;
1901 }
1902
1903 output = safe_malloc_cxx . . $ safe_malloc_(bfcfa4d6b7f7ef64).(bytes);
1904 if(output == 0) {
1905 FLAC__bitwriter_deletecxx . . $ FLAC__bitwriter_delete(3d16a9ed52dcdfb4).(bw);
1906 return 0;
1907 }
1908
1909 memcpycxx . . $ memcpy(cc817cb175f282d).(output,buffer,bytes);
1910 FLAC__bitwriter_deletecxx . . $ FLAC__bitwriter_delete(3d16a9ed52dcdfb4).(bw);
1911 return output;
1912 }
1913
1914 /* The following callbacks are for FLAC__metadata_object_set_raw */
1915
1916 static FLAC__StreamDecoderReadStatuscxx . . $ FLAC__StreamDecoderReadStatus# read_callback_cxx . . $ read_callback_(96f630744ee4379c).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__bytecxx . . $ FLAC__byte# *buffer, size_t *bytes, void *client_data);
1917 static FLAC__StreamDecoderWriteStatuscxx . . $ FLAC__StreamDecoderWriteStatus# write_callback_cxx . . $ write_callback_(8375096e9a6e9bab).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__Framecxx . . $ FLAC__Frame# *frame, const FLAC__int32cxx . . $ FLAC__int32# * const buffer[], void *client_data);
1918 static void metadata_callback_cxx . . $ metadata_callback_(6339de7fa1cf73d0).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *metadata, void *client_data);
1919 static void error_callback_cxx . . $ error_callback_(56d9ba04c86f7e6d).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamDecoderErrorStatuscxx . . $ FLAC__StreamDecoderErrorStatus# status, void *client_data);
1920
1921 typedef structcxx . . $ $anonymous_type_ea57602775dbaf60_0# {
1922 FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object.;
1923 FLAC__boolcxx . . $ FLAC__bool# got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error.;
1924 FLAC__bytecxx . . $ FLAC__byte# *buffercxx . . $ $anonymous_type_ea57602775dbaf60_0#buffer.;
1925 FLAC__int32cxx . . $ FLAC__int32# lengthcxx . . $ $anonymous_type_ea57602775dbaf60_0#length.;
1926 FLAC__int32cxx . . $ FLAC__int32# tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell.;
1927 } set_raw_client_datacxx . . $ set_raw_client_data#;
1928
1929 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# * FLAC__metadata_object_set_rawcxx . . $ FLAC__metadata_object_set_raw(6d4d7c244d4f78dd).(FLAC__bytecxx . . $ FLAC__byte# *buffer, FLAC__uint32cxx . . $ FLAC__uint32# length)
1930 {
1931 set_raw_client_datacxx . . $ set_raw_client_data# cd;
1932 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# * decoder;
1933
1934 cd.buffercxx . . $ $anonymous_type_ea57602775dbaf60_0#buffer. = buffer;
1935 cd.lengthcxx . . $ $anonymous_type_ea57602775dbaf60_0#length. = length;
1936 cd.got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1937 cd.objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object. = 0;
1938 cd.tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell. = -4;
1939
1940 decoder = FLAC__stream_decoder_newcxx . . $ FLAC__stream_decoder_new(7336f55c5f66a48b).();
1941
1942 if(0 == decoder)
1943 return 0;
1944
1945 FLAC__stream_decoder_set_md5_checkingcxx . . $ FLAC__stream_decoder_set_md5_checking(179b1a96f8cf0980).(decoder, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
1946 FLAC__stream_decoder_set_metadata_respond_allcxx . . $ FLAC__stream_decoder_set_metadata_respond_all(d92048749c4f1284).(decoder);
1947
1948 if(FLAC__stream_decoder_init_streamcxx . . $ FLAC__stream_decoder_init_stream(fc0e47a783f86a6a).(decoder, read_callback_cxx . . $ read_callback_(96f630744ee4379c)., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!, write_callback_cxx . . $ write_callback_(8375096e9a6e9bab)., metadata_callback_cxx . . $ metadata_callback_(6339de7fa1cf73d0)., error_callback_cxx . . $ error_callback_(56d9ba04c86f7e6d)., &cd) != FLAC__STREAM_DECODER_INIT_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_OK. || cd.got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error.) {
1949 (void)FLAC__stream_decoder_finishcxx . . $ FLAC__stream_decoder_finish(d92048749c4f1284).(decoder);
1950 FLAC__stream_decoder_deletecxx . . $ FLAC__stream_decoder_delete(1ffd9838c68f2516).(decoder);
1951 return 0;
1952 }
1953
1954 if((!FLAC__stream_decoder_process_until_end_of_metadatacxx . . $ FLAC__stream_decoder_process_until_end_of_metadata(d92048749c4f1284).(decoder) && FLAC__stream_decoder_get_statecxx . . $ FLAC__stream_decoder_get_state(679df3872b59f0a2).(decoder) != FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.) || cd.got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error.) {
1955 (void)FLAC__stream_decoder_finishcxx . . $ FLAC__stream_decoder_finish(d92048749c4f1284).(decoder);
1956 FLAC__stream_decoder_deletecxx . . $ FLAC__stream_decoder_delete(1ffd9838c68f2516).(decoder);
1957 if(0 != cd.objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object.)
1958 FLAC__metadata_object_deletecxx . . $ FLAC__metadata_object_delete(584ecc423fe01cfd).(cd.objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object.);
1959 return 0;
1960 }
1961
1962 (void)FLAC__stream_decoder_finishcxx . . $ FLAC__stream_decoder_finish(d92048749c4f1284).(decoder);
1963 FLAC__stream_decoder_deletecxx . . $ FLAC__stream_decoder_delete(1ffd9838c68f2516).(decoder);
1964
1965 return cd.objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object.;
1966
1967 }
1968
1969 FLAC__StreamDecoderReadStatuscxx . . $ FLAC__StreamDecoderReadStatus# read_callback_cxx . . $ read_callback_(96f630744ee4379c).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__bytecxx . . $ FLAC__byte# *buffer, size_t *bytes, void *client_data)
1970 {
1971 set_raw_client_datacxx . . $ set_raw_client_data# *cd = (set_raw_client_datacxx . . $ set_raw_client_data# *)client_data;
1972 (void)decoder;
1973
1974 if(cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell. == -4) {
1975 if(*bytes < 4)
1976 return FLAC__STREAM_DECODER_READ_STATUS_ABORTcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_ABORT.;
1977 buffer[0] = 'f';
1978 buffer[1] = 'L';
1979 buffer[2] = 'a';
1980 buffer[3] = 'C';
1981 *bytes = 4;
1982 cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell. = 0;
1983 return FLAC__STREAM_DECODER_READ_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_CONTINUE.;
1984 }
1985 else if(cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell. < 0)
1986 return FLAC__STREAM_DECODER_READ_STATUS_ABORTcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_ABORT.;
1987 else if(cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell. == cd->lengthcxx . . $ $anonymous_type_ea57602775dbaf60_0#length.) {
1988 *bytes = 0;
1989 return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM.;
1990 }
1991 else {
1992 if((FLAC__int32cxx . . $ FLAC__int32#)(*bytes) > (cd->lengthcxx . . $ $anonymous_type_ea57602775dbaf60_0#length. - cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell.))
1993 *bytes = cd->lengthcxx . . $ $anonymous_type_ea57602775dbaf60_0#length. - cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell.;
1994 memcpycxx . . $ memcpy(cc817cb175f282d).(buffer, cd->buffercxx . . $ $anonymous_type_ea57602775dbaf60_0#buffer.+cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell., *bytes);
1995 cd->tellcxx . . $ $anonymous_type_ea57602775dbaf60_0#tell. += *bytes;
1996 return FLAC__STREAM_DECODER_READ_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_CONTINUE.;
1997 }
1998 }
1999
2000 FLAC__StreamDecoderWriteStatuscxx . . $ FLAC__StreamDecoderWriteStatus# write_callback_cxx . . $ write_callback_(8375096e9a6e9bab).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__Framecxx . . $ FLAC__Frame# *frame, const FLAC__int32cxx . . $ FLAC__int32# * const buffer[], void *client_data)
2001 {
2002 (void)decoder, (void)frame, (void)buffer, (void)client_data;
2003
2004 return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE.;
2005 }
2006
2007 void metadata_callback_cxx . . $ metadata_callback_(6339de7fa1cf73d0).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# *metadata, void *client_data)
2008 {
2009 set_raw_client_datacxx . . $ set_raw_client_data# *cd = (set_raw_client_datacxx . . $ set_raw_client_data# *)client_data;
2010 (void)decoder;
2011
2012 /*
2013 * we assume we only get here when the one metadata block we were
2014 * looking for was passed to us
2015 */
2016 if(!cd->got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error. && 0 == cd->objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object.) {
2017 if(0 == (cd->objectcxx . . $ $anonymous_type_ea57602775dbaf60_0#object. = FLAC__metadata_object_clonecxx . . $ FLAC__metadata_object_clone(3ba84a9741e92d18).(metadata)))
2018 cd->got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2019 }
2020 }
2021
2022 void error_callback_cxx . . $ error_callback_(56d9ba04c86f7e6d).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamDecoderErrorStatuscxx . . $ FLAC__StreamDecoderErrorStatus# status, void *client_data)
2023 {
2024 set_raw_client_datacxx . . $ set_raw_client_data# *cd = (set_raw_client_datacxx . . $ set_raw_client_data# *)client_data;
2025 (void)decoder;
2026
2027 if(status != FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.)
2028 cd->got_errorcxx . . $ $anonymous_type_ea57602775dbaf60_0#got_error. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2029 }