	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afc_read_header
_afc_read_header:                       ## @afc_read_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, 28(%rdi)
	movq	_AV_CODEC_ID_ADPCM_AFC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movl	$2, (%rdi)
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movl	$1, %esi
	callq	_ff_alloc_extradata
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	shll	$3, %ecx
	movq	8(%rax), %rax
	movl	%ecx, (%rax)
	movl	(%rbx), %edi
	callq	_avio_rb32
	addq	$32, %rax
	movq	%rax, (%r15)
	movl	(%rbx), %edi
	callq	_avio_rb32
	movq	%rax, 8(%r14)
	movl	(%rbx), %edi
	callq	_avio_rb16
	movq	(%r14), %rcx
	movl	%eax, 16(%rcx)
	movl	(%rbx), %edi
	movl	$22, %esi
	callq	_avio_skip
	movq	(%r14), %rax
	movl	16(%rax), %ecx
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_AV_CODEC_ID_ADPCM_AFC,4,2      ## @AV_CODEC_ID_ADPCM_AFC
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.no_dead_strip	_afc_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afc_read_header
_afc_read_header:                       ; @afc_read_header
	.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
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_2
; %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	x0, [x0]
	str	w8, [x0, #28]
Lloh3:
	adrp	x8, _AV_CODEC_ID_ADPCM_AFC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_ADPCM_AFC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #2
	str	w9, [x0]
Lloh6:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #20]
	mov	w1, #1
	bl	_ff_alloc_extradata
	cbz	x0, LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	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_3:
	ldr	x8, [x19]
	ldr	w9, [x8]
	lsl	w9, w9, #3
	ldr	x8, [x8, #8]
	str	w9, [x8]
	ldr	w0, [x20]
	bl	_avio_rb32
	add	x8, x0, #32
	str	x8, [x21]
	ldr	w0, [x20]
	bl	_avio_rb32
	str	x0, [x19, #8]
	ldr	w0, [x20]
	bl	_avio_rb16
	ldr	x8, [x19]
	str	w0, [x8, #16]
	ldr	w0, [x20]
	mov	w1, #22
	bl	_avio_skip
	ldr	x8, [x19]
	ldr	w3, [x8, #16]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_AFC,4,2      ; @AV_CODEC_ID_ADPCM_AFC
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.no_dead_strip	_afc_read_header
.subsections_via_symbols
