	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtaf_read_header
_mtaf_read_header:                      ## @mtaf_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edi
	movl	$92, %esi
	callq	_avio_skip
	movl	(%rbx), %edi
	callq	_avio_rl32
	movl	%eax, 8(%r14)
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_avio_skip
	movl	(%rbx), %edi
	callq	_avio_r8
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	movl	%ecx, 16(%rdx)
	movq	_AV_CODEC_ID_ADPCM_MTAF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	leal	(%rax,%rax), %ecx
	movl	%ecx, (%rdx)
	movl	$48000, 4(%rdx)                 ## imm = 0xBB80
	imull	$272, %eax, %eax                ## imm = 0x110
	movl	%eax, 8(%rdx)
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$48000, %ecx                    ## imm = 0xBB80
	callq	_avpriv_set_pts_info
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2048, %esi                     ## imm = 0x800
	callq	_avio_seek
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_MTAF,4,2     ## @AV_CODEC_ID_ADPCM_MTAF
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_mtaf_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtaf_read_header
_mtaf_read_header:                      ; @mtaf_read_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #92
	bl	_avio_skip
	ldr	w0, [x19]
	bl	_avio_rl32
	str	w0, [x20, #8]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_avio_skip
	ldr	w0, [x19]
	bl	_avio_r8
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #16]
Lloh3:
	adrp	x8, _AV_CODEC_ID_ADPCM_MTAF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_ADPCM_MTAF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w10, w0, #1
	mov	w11, #48000
	stp	w10, w11, [x9]
	add	w10, w0, w0, lsl #4
	lsl	w10, w10, #4
	stp	w10, w8, [x9, #8]
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	mov	w3, #48000
	bl	_avpriv_set_pts_info
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #2048
	bl	_avio_seek
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_4:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_MTAF,4,2     ; @AV_CODEC_ID_ADPCM_MTAF
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_mtaf_read_header
.subsections_via_symbols
