	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_desc_chunk
_read_desc_chunk:                       ## @read_desc_chunk
	.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	(%rdi), %r13
	movq	8(%rdi), %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, 48(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb64
	movl	%eax, %edi
	callq	_av_int2double
	movq	(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, 8(%r13)
	movq	(%r12), %rcx
	movq	%rax, 40(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	(%r12), %rcx
	movq	%rax, 32(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	imull	24(%rcx), %eax
	shll	$3, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, 8(%rcx)
	movq	(%rcx), %rbx
	movl	$108, %edi
	movl	$112, %esi
	movl	$99, %edx
	movl	$109, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	andl	$-5, %r15d
	xorl	$6, %r15d
	movl	%r15d, %esi
	callq	_ff_mov_get_lpcm_codec_id
	jmp	LBB0_7
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	_ff_codec_caf_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%rax), %rsi
	callq	_ff_codec_get_id
LBB0_7:
	movq	(%r12), %rcx
	movl	%eax, 12(%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_caf_tags,4,2          ## @ff_codec_caf_tags
	.no_dead_strip	_read_desc_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_desc_chunk
_read_desc_chunk:                       ; @read_desc_chunk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x22, x21, [x0]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9, #48]
	mov	x0, x21
	bl	_avio_rb64
	bl	_av_int2double
	ldr	x8, [x19]
	str	x0, [x8, #24]
	mov	x0, x21
	bl	_avio_rl32
	ldr	x8, [x19]
	str	x0, [x8]
	mov	x0, x21
	bl	_avio_rb32
	mov	x20, x0
	mov	x0, x21
	bl	_avio_rb32
	str	x0, [x22, #8]
	ldr	x8, [x19]
	str	x0, [x8, #40]
	mov	x0, x21
	bl	_avio_rb32
	str	x0, [x22]
	mov	x0, x21
	bl	_avio_rb32
	ldr	x8, [x19]
	str	x0, [x8, #32]
	mov	x0, x21
	bl	_avio_rb32
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x9, [x22]
	cbz	x9, LBB0_6
; %bb.2:
	ldr	x10, [x22, #8]
	cbz	x10, LBB0_5
; %bb.3:
	ldr	w11, [x8, #24]
	mul	w10, w10, w11
	lsl	w10, w10, #3
	sdiv	w9, w10, w9
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	mov	w9, #0
LBB0_6:
	str	w9, [x8, #8]
	ldr	x21, [x8]
	mov	w0, #108
	mov	w1, #112
	mov	w2, #99
	mov	w3, #109
	bl	_MKTAG
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	and	w8, w20, #0xfffffffb
	eor	w1, w8, #0x6
	bl	_ff_mov_get_lpcm_codec_id
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _ff_codec_caf_tags@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ff_codec_caf_tags@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_ff_codec_get_id
LBB0_9:
	ldr	x8, [x19]
	str	w0, [x8, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_caf_tags,4,2          ; @ff_codec_caf_tags
	.no_dead_strip	_read_desc_chunk
.subsections_via_symbols
