	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_audio_mux_element
_read_audio_mux_element:                ## @read_audio_mux_element
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%r15), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_stream_mux_config
	testl	%eax, %eax
	js	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	jne	LBB0_12
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_payload_length_info
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movl	%eax, %r13d
	shlq	$3, %r13
	movq	%r14, %rdi
	callq	_get_bits_left
	cltq
	cmpq	%rax, %r13
	jle	LBB0_9
LBB0_8:
	movq	8(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leal	256(,%r12,8), %r13d
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	%eax, %r13d
	jge	LBB0_12
## %bb.10:
	shll	$3, %r12d
	movq	8(%r15), %r15
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_get_bits_left
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no decoder config found\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"incomplete frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"frame length mismatch %d << %d\n"

	.no_dead_strip	_read_audio_mux_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_audio_mux_element
_read_audio_mux_element:                ; @read_audio_mux_element
	.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
	mov	x20, x0
	mov	x0, x1
	mov	w1, #1
	bl	_get_bits
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x20, #8]
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w0, #1
	b	LBB0_10
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_read_stream_mux_config
	tbnz	w0, #31, LBB0_10
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_read_payload_length_info
	tbnz	w0, #31, LBB0_8
; %bb.7:
	mov	x21, x0
	mov	x0, x19
	bl	_get_bits_left
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, w21, uxtw #3
	b.ge	LBB0_11
LBB0_8:
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
	lsl	w22, w21, #3
	add	w21, w22, #256
	mov	x0, x19
	bl	_get_bits_left
	cmp	w21, w0
	b.ge	LBB0_5
; %bb.12:
	ldr	x20, [x20, #8]
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_get_bits_left
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no decoder config found\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"incomplete frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"frame length mismatch %d << %d\n"

	.no_dead_strip	_read_audio_mux_element
.subsections_via_symbols
