	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function latm_decode_audio_specific_config
_latm_decode_audio_specific_config:     ## @latm_decode_audio_specific_config
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	%rsi, %rdi
	callq	_get_bits_count
	movl	%eax, %r14d
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_get_bits_left
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_FFMIN
	movl	%eax, %r12d
	movl	(%r15), %esi
	leal	(%r12,%r14), %edx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_get_bits
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_skip_bits_long
	movq	%r15, %rdi
	movl	$1, %r15d
LBB0_4:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	leaq	-96(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_decode_audio_specific_config_gb
	movl	%eax, %r15d
	subl	%r14d, %r15d
	jl	LBB0_6
## %bb.7:
	testl	%r12d, %r12d
	cmovnel	%r12d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.8:
	movq	8(%rbx), %rax
	movq	-96(%rbp), %rcx
	cmpq	%rcx, 16(%rax)
	jne	LBB0_9
## %bb.10:
	movq	-88(%rbp), %r8
	cmpq	%r8, 24(%rax)
	jne	LBB0_11
	jmp	LBB0_21
LBB0_2:
	je	LBB0_3
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_12:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_9:
	movq	-88(%rbp), %r8
LBB0_11:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movq	$0, (%rbx)
	leal	7(%r15), %eax
	leal	14(%r15), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$3, %r12d
	movslq	%r12d, %rbx
	cmpl	%r12d, (%r13)
	jge	LBB0_16
## %bb.14:
	movq	8(%r13), %rdi
	callq	_av_free
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_av_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:
	movl	%r12d, (%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testl	%r15d, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_17
## %bb.18:
	cmpl	$2, %r12d
	movl	$1, %ebx
	cmovgel	%r12d, %ebx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_17:
	movq	8(%r13), %rcx
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_memset
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_skip_bits_long
	xorl	%eax, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio config changed (sample_rate=%d, chan_config=%d)\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"initializing latmctx\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_latm_decode_audio_specific_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function latm_decode_audio_specific_config
_latm_decode_audio_specific_config:     ; @latm_decode_audio_specific_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	mov	x0, x1
	bl	_get_bits_count
	mov	x22, x0
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_get_bits_left
	mov	x1, x0
	mov	x0, x23
	bl	_FFMIN
	mov	x23, x0
	ldr	w1, [x19]
	add	w2, w0, w22
	add	x0, sp, #16
	bl	_init_get_bits
	add	x0, sp, #16
	mov	x1, x22
	bl	_skip_bits_long
	mov	w24, #1
LBB0_2:
	mov	x0, x19
	bl	_get_bits_left
	cmp	x0, #0
	b.le	LBB0_8
; %bb.3:
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, #0
	mov	x1, x20
	mov	x4, x22
	mov	x5, x24
	bl	_decode_audio_specific_config_gb
	subs	w8, w0, w22
	b.lt	LBB0_8
; %bb.4:
	cmp	w23, #0
	csel	w22, w8, w23, eq
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x9, [x21, #8]
	ldr	x10, [x9, #16]
	ldr	x8, [sp, #24]
	cmp	x10, x8
	b.ne	LBB0_11
; %bb.6:
	ldr	x10, [x9, #24]
	ldr	x9, [sp, #32]
	cmp	x10, x9
	b.ne	LBB0_12
	b	LBB0_20
LBB0_7:
	cbz	w23, LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_9:
	mov	w24, #0
	ldr	w8, [x19]
	str	w8, [sp, #16]
	b	LBB0_2
LBB0_10:
Lloh3:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	x9, [sp, #32]
LBB0_12:
Lloh8:
	adrp	x10, _AV_LOG_INFO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_LOG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_av_log
	str	xzr, [x21]
	add	w8, w22, #7
	add	w9, w22, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w21, w8, #3
	ldr	w8, [x20]
Lloh13:
	adrp	x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	cmp	w8, w21
	b.ge	LBB0_15
; %bb.14:
	ldr	x0, [x20, #8]
	bl	_av_free
	ldr	x8, [x23]
	add	x0, x8, w21, sxtw
	bl	_av_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_22
LBB0_15:
	str	w21, [x20]
	ldr	w8, [x19]
	str	w8, [sp, #16]
	cmp	w22, #0
	b.le	LBB0_18
; %bb.16:
	mov	x24, #0
	cmp	w21, #1
	csinc	w8, w21, wzr, gt
	lsl	x25, x8, #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x20, #8]
	str	w0, [x8, x24]
	add	x24, x24, #4
	cmp	x25, x24
	b.ne	LBB0_17
	b	LBB0_19
LBB0_18:
	ldr	x8, [x20, #8]
LBB0_19:
	add	x0, x8, w21, sxtw #2
	ldr	x2, [x23]
	mov	w1, #0
	bl	_memset
LBB0_20:
	mov	x0, x19
	mov	x1, x22
	bl	_skip_bits_long
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio config changed (sample_rate=%d, chan_config=%d)\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"initializing latmctx\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_latm_decode_audio_specific_config
.subsections_via_symbols
