	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_metadata
_parse_metadata:                        ## @parse_metadata
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_parse_key
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_convert_input
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	leaq	36(%r12), %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_get_bits
	movq	%rax, %r15
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_convert_input
	testl	%eax, %eax
	js	LBB0_2
## %bb.8:
	movq	%r14, %rdi
	movl	$14, %esi
	callq	_skip_bits
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_bits
	movq	%rax, (%r12)
	movq	_MAX_PROG_CONF@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jae	LBB0_10
## %bb.9:
	movl	32(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_5:
	movl	32(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_6
LBB0_10:
	movq	_nb_channels_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 8(%r12)
	movq	_nb_programs_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 12(%r12)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%rax, 24(%r12)
	movq	_sample_rate_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%r12), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_12
## %bb.11:
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movl	$88, %esi
	callq	_skip_bits_long
	cmpl	$0, 8(%r12)
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_get_bits
	movq	80(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 72(%r12)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 64(%r12)
	movl	12(%r12), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	movq	%r14, %rdi
	callq	_skip_bits_long
	cmpl	$0, 8(%r12)
	jle	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	56(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r14, %rdi
	callq	_skip_bits1
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_get_bits
	movq	48(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_get_bits
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_19:
	movq	%r14, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	js	LBB0_20
## %bb.21:
	incl	%r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skip_input                     ## TAILCALL
LBB0_12:
	movl	32(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_6
LBB0_20:
	movl	32(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_6:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid metadata size\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MAX_PROG_CONF,8,3              ## @MAX_PROG_CONF
L_.str.1:                               ## @.str.1
	.asciz	"Invalid program configuration\n"

	.comm	_nb_channels_tab,8,3            ## @nb_channels_tab
	.comm	_nb_programs_tab,8,3            ## @nb_programs_tab
	.comm	_sample_rate_tab,8,3            ## @sample_rate_tab
L_.str.2:                               ## @.str.2
	.asciz	"Invalid frame rate code\n"

L_.str.3:                               ## @.str.3
	.asciz	"Read past end of metadata\n"

	.no_dead_strip	_parse_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_metadata
_parse_metadata:                        ; @parse_metadata
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_parse_key
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	bl	_convert_input
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x20, x19, #36
	mov	x0, x20
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #10
	bl	_get_bits
	mov	x21, x0
	cbz	w21, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_convert_input
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #14
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #6
	bl	_get_bits
	str	x0, [x19]
Lloh0:
	adrp	x8, _MAX_PROG_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PROG_CONF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.hs	LBB0_8
; %bb.5:
	ldr	w0, [x19, #32]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_6:
	mov	x22, x0
	b	LBB0_21
LBB0_7:
	ldr	w0, [x19, #32]
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_20
LBB0_8:
Lloh13:
	adrp	x8, _nb_channels_tab@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nb_channels_tab@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	lsl	x9, x0, #2
	ldr	w8, [x8, x9]
	str	w8, [x19, #8]
Lloh16:
	adrp	x8, _nb_programs_tab@GOTPAGE
Lloh17:
	ldr	x8, [x8, _nb_programs_tab@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	str	w8, [x19, #12]
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	str	x0, [x19, #16]
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	str	x0, [x19, #24]
Lloh19:
	adrp	x8, _sample_rate_tab@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sample_rate_tab@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_18
; %bb.9:
	ldr	w8, [x8, x0, lsl #2]
	cbz	w8, LBB0_18
; %bb.10:
	mov	x0, x20
	mov	w1, #88
	bl	_skip_bits_long
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #10
	bl	_get_bits
	ldr	x8, [x19, #80]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_12
LBB0_13:
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	str	x0, [x19, #72]
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	str	x0, [x19, #64]
	ldr	w8, [x19, #12]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	mov	x0, x20
	bl	_skip_bits_long
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	ldr	x8, [x19, #56]
	lsl	x23, x22, #3
	str	x0, [x8, x23]
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	mov	w1, #10
	bl	_get_bits
	ldr	x8, [x19, #48]
	str	x0, [x8, x23]
	mov	x0, x20
	mov	w1, #10
	bl	_get_bits
	ldr	x8, [x19, #40]
	str	x0, [x8, x23]
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_15
LBB0_16:
	mov	x0, x20
	bl	_get_bits_left
	tbnz	x0, #63, LBB0_19
; %bb.17:
	add	w1, w21, #1
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_skip_input
LBB0_18:
	ldr	w0, [x19, #32]
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:
	ldr	w0, [x19, #32]
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_20:
	bl	_av_log
Lloh32:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
LBB0_21:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid metadata size\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MAX_PROG_CONF,8,3              ; @MAX_PROG_CONF
l_.str.1:                               ; @.str.1
	.asciz	"Invalid program configuration\n"

	.comm	_nb_channels_tab,8,3            ; @nb_channels_tab
	.comm	_nb_programs_tab,8,3            ; @nb_programs_tab
	.comm	_sample_rate_tab,8,3            ; @sample_rate_tab
l_.str.2:                               ; @.str.2
	.asciz	"Invalid frame rate code\n"

l_.str.3:                               ; @.str.3
	.asciz	"Read past end of metadata\n"

	.no_dead_strip	_parse_metadata
.subsections_via_symbols
