	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_metadata_size
_get_metadata_size:                     ## @get_metadata_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movslq	%esi, %rax
	leaq	(%rdi,%rax,4), %r13
	addq	$16, %rbx
	leaq	-48(%rbp), %r15
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rax
	subq	%rbx, %rax
	cmpq	$15, %rax
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_flac_parse_block_header
	addq	$16, %rbx
	movq	%r13, %rcx
	subq	%rbx, %rcx
	sarq	$2, %rcx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rcx
	jl	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rbx,%rax,4), %rbx
	cmpl	$0, -48(%rbp)
	je	LBB0_1
## %bb.5:
	subq	%rbx, %r13
	shrq	$2, %r13
	subl	%r13d, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_get_metadata_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_metadata_size
_get_metadata_size:                     ; @get_metadata_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	add	x21, x0, w1, sxtw #2
	add	x20, x0, #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x21, x20
	cmp	x8, #15
	b.le	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_flac_parse_block_header
	add	x8, x20, #16
	sub	x10, x21, x8
	ldrsw	x9, [sp, #8]
	cmp	x9, x10, asr #2
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x20, x8, x9, lsl #2
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_1
; %bb.4:
	sub	x8, x21, x20
	lsr	x8, x8, #2
	sub	w0, w19, w8
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_get_metadata_size
.subsections_via_symbols
