	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, %r14d
	movq	_MM_TYPE_HEADER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_1
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r15d
	leal	-10(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_skip
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rdx
	movl	%ecx, 32(%rdx)
	movq	_AV_CODEC_ID_MMVIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rdx)
	movq	$0, 24(%rdx)
	movl	%r13d, (%rdx)
	movl	%r15d, 4(%rdx)
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_avpriv_set_pts_info
	movq	_MM_HEADER_LEN_AV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rdx
	movl	%ecx, 32(%rdx)
	movq	$0, 24(%rdx)
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rdx)
	movl	$1, 8(%rdx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rdx)
	movl	$8000, 12(%rdx)                 ## imm = 0x1F40
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$8000, %ecx                     ## imm = 0x1F40
	callq	_avpriv_set_pts_info
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MM_TYPE_HEADER,4,2             ## @MM_TYPE_HEADER
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_MMVIDEO,4,2        ## @AV_CODEC_ID_MMVIDEO
	.comm	_MM_HEADER_LEN_AV,4,2           ## @MM_HEADER_LEN_AV
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ## @AV_CODEC_ID_PCM_U8
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function read_header
lCPI0_0:
	.long	1                               ; 0x1
	.long	8000                            ; 0x1f40
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_read_header:                           ; @read_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldp	x22, x25, [x0]
	mov	x0, x22
	bl	_avio_rl16
	mov	x21, x0
	mov	x0, x22
	bl	_avio_rl32
Lloh0:
	adrp	x8, _MM_TYPE_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MM_TYPE_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	bl	_avio_rl16
	mov	x0, x22
	bl	_avio_rl16
	mov	x21, x0
	mov	x0, x22
	bl	_avio_rl16
	mov	x0, x22
	bl	_avio_rl16
	mov	x23, x0
	mov	x0, x22
	bl	_avio_rl16
	mov	x24, x0
	sub	w1, w20, #10
	mov	x0, x22
	bl	_avio_skip
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh6:
	adrp	x10, _AV_CODEC_ID_MMVIDEO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_MMVIDEO@GOTPAGEOFF]
	str	w8, [x9, #32]
Lloh8:
	ldr	w8, [x10]
	str	w8, [x9, #20]
	str	xzr, [x9, #24]
	stp	w23, w24, [x9]
	mov	w1, #64
	mov	w2, #1
	mov	x3, x21
	bl	_avpriv_set_pts_info
Lloh9:
	adrp	x8, _MM_HEADER_LEN_AV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MM_HEADER_LEN_AV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_8
; %bb.4:
Lloh12:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9, #32]
	str	xzr, [x9, #24]
Lloh15:
	adrp	x8, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x9, #8]
	mov	w1, #64
	mov	w2, #1
	mov	w3, #8000
	bl	_avpriv_set_pts_info
LBB0_5:
	mov	w0, #0
	stp	xzr, xzr, [x25]
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MM_TYPE_HEADER,4,2             ; @MM_TYPE_HEADER
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_MMVIDEO,4,2        ; @AV_CODEC_ID_MMVIDEO
	.comm	_MM_HEADER_LEN_AV,4,2           ; @MM_HEADER_LEN_AV
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ; @AV_CODEC_ID_PCM_U8
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.no_dead_strip	_read_header
.subsections_via_symbols
