	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	%r15, %rdi
	movl	$132, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %rbx
	movq	$0, 16(%rax)
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, (%r12)
	movl	%eax, 4(%rbx)
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rl32
	movq	8(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	%r15, %rdi
	callq	_avio_rl32
	movq	8(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movq	$0, 16(%rcx)
	movq	_AV_CODEC_ID_PAF_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$10, %ecx
	callq	_avpriv_set_pts_info
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	movq	$0, 16(%rax)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, 24(%rdx)
	movq	$0, 16(%rdx)
	movq	_AV_CODEC_ID_PAF_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	movl	$2, (%rdx)
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rdx)
	movl	$22050, 4(%rdx)                 ## imm = 0x5622
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$22050, %ecx                    ## imm = 0x5622
	callq	_avpriv_set_pts_info
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, 4(%r12)
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, 12(%r12)
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, 16(%r12)
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, 20(%r12)
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, 24(%r12)
	movl	4(%r12), %edx
	cmpl	$175, %edx
	jl	LBB0_13
## %bb.3:
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.4:
	movl	20(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_13
## %bb.5:
	movl	12(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.6:
	movl	(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_13
## %bb.7:
	cmpl	$0, 8(%r12)
	jle	LBB0_13
## %bb.8:
	cmpl	$2048, %edx                     ## imm = 0x800
	ja	LBB0_13
## %bb.9:
	cmpl	$2048, %esi                     ## imm = 0x800
	ja	LBB0_13
## %bb.10:
	cmpl	$2048, %eax                     ## imm = 0x800
	ja	LBB0_13
## %bb.11:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	cmpq	%rdi, %rax
	jb	LBB0_13
## %bb.12:
	cmpq	%rcx, %rax
	jb	LBB0_13
## %bb.14:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_mallocz
	movq	%rax, 80(%r12)
	movl	(%r12), %edi
	callq	_av_mallocz
	movq	%rax, 72(%r12)
	movl	12(%r12), %edi
	callq	_av_mallocz
	movq	%rax, 64(%r12)
	movl	4(%r12), %edi
	imull	20(%r12), %edi
	movl	%edi, 28(%r12)
	callq	_av_mallocz
	movq	%rax, 104(%r12)
	movl	4(%r12), %edi
	imull	24(%r12), %edi
	movl	%edi, 32(%r12)
	callq	_av_mallocz
	movq	%rax, 96(%r12)
	movl	32(%r12), %edi
	callq	_av_mallocz
	movq	%rax, 88(%r12)
	cmpq	$0, 80(%r12)
	je	LBB0_20
## %bb.15:
	cmpq	$0, 72(%r12)
	je	LBB0_20
## %bb.16:
	cmpq	$0, 64(%r12)
	je	LBB0_20
## %bb.17:
	cmpq	$0, 104(%r12)
	je	LBB0_20
## %bb.18:
	cmpq	$0, 96(%r12)
	je	LBB0_20
## %bb.19:
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movl	4(%r12), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	movq	80(%r12), %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_read_table
	movq	72(%r12), %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_read_table
	movq	64(%r12), %rsi
	movl	12(%r12), %edx
	movq	%r14, %rdi
	callq	_read_table
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movq	$0, 56(%r12)
	movl	16(%r12), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_read_close
	movl	%ebx, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_PAF_VIDEO,4,2      ## @AV_CODEC_ID_PAF_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PAF_AUDIO,4,2      ## @AV_CODEC_ID_PAF_AUDIO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.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	2                               ; 0x2
	.long	22050                           ; 0x5622
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_read_header:                           ; @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
	ldp	x19, x22, [x0]
	mov	x0, x19
	mov	w1, #132
	bl	_avio_skip
	mov	x0, x20
	mov	w1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_20
; %bb.1:
	mov	x21, x0
	str	xzr, [x0, #16]
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22]
	stp	w0, w0, [x21]
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x21, #8]
	str	x0, [x8, #40]
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x21, #8]
	str	x0, [x8, #32]
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	str	w8, [x9, #24]
	str	xzr, [x9, #16]
Lloh3:
	adrp	x8, _AV_CODEC_ID_PAF_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_PAF_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x9, #12]
	mov	x0, x21
	mov	w1, #64
	mov	w2, #1
	mov	w3, #10
	bl	_avpriv_set_pts_info
	mov	x0, x20
	mov	w1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_20
; %bb.2:
	str	xzr, [x0, #16]
Lloh6:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	str	w8, [x9, #24]
	str	xzr, [x9, #16]
Lloh9:
	adrp	x8, _AV_CODEC_ID_PAF_AUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_CODEC_ID_PAF_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x9]
Lloh14:
	adrp	x10, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
	mov	w1, #64
	mov	w2, #1
	mov	w3, #22050
	bl	_avpriv_set_pts_info
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22, #4]
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22, #8]
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22, #12]
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22, #16]
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22, #20]
	mov	x0, x19
	bl	_avio_rl32
	str	w0, [x22, #24]
	ldr	w10, [x22, #4]
	cmp	w10, #175
	b.lt	LBB0_21
; %bb.3:
	cmp	w0, #2
	b.lt	LBB0_21
; %bb.4:
	ldr	w11, [x22, #20]
	cmp	w11, #1
	b.lt	LBB0_21
; %bb.5:
	ldr	w9, [x22, #12]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.6:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.7:
	ldr	w12, [x22, #8]
	cmp	w12, #1
	b.lt	LBB0_21
; %bb.8:
	cmp	w10, #2048
	b.hi	LBB0_21
; %bb.9:
	cmp	w11, #2048
	b.hi	LBB0_21
; %bb.10:
	cmp	w0, #2048
	b.hi	LBB0_21
; %bb.11:
Lloh17:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh19:
	ldrsw	x10, [x10]
	lsr	x10, x10, #2
	cmp	x10, x8
	b.lo	LBB0_21
; %bb.12:
	cmp	x10, x9
	b.lo	LBB0_21
; %bb.13:
	mov	x0, x8
	bl	_av_mallocz
	str	x0, [x22, #80]
	ldr	w0, [x22]
	bl	_av_mallocz
	str	x0, [x22, #72]
	ldr	w0, [x22, #12]
	bl	_av_mallocz
	str	x0, [x22, #64]
	ldr	w8, [x22, #20]
	ldr	w9, [x22, #4]
	mul	w0, w9, w8
	str	w0, [x22, #28]
	bl	_av_mallocz
	str	x0, [x22, #104]
	ldr	w8, [x22, #24]
	ldr	w9, [x22, #4]
	mul	w0, w9, w8
	str	w0, [x22, #32]
	bl	_av_mallocz
	str	x0, [x22, #96]
	ldr	w0, [x22, #32]
	bl	_av_mallocz
	str	x0, [x22, #88]
	ldr	x8, [x22, #80]
	cbz	x8, LBB0_23
; %bb.14:
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_23
; %bb.15:
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_23
; %bb.16:
	ldr	x8, [x22, #104]
	cbz	x8, LBB0_23
; %bb.17:
	ldr	x8, [x22, #96]
	cbz	x8, LBB0_23
; %bb.18:
	cbz	x0, LBB0_23
; %bb.19:
	ldr	w1, [x22, #4]
Lloh20:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh21:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_avio_seek
	ldr	x1, [x22, #80]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_read_table
	ldr	x1, [x22, #72]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_read_table
	ldr	x1, [x22, #64]
	ldr	w2, [x22, #12]
	mov	x0, x20
	bl	_read_table
	stp	xzr, xzr, [x22, #48]
	str	xzr, [x22, #40]
	ldr	w1, [x22, #16]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_avio_seek
	mov	w0, #0
	b	LBB0_22
LBB0_20:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	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_21:
Lloh25:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
LBB0_22:
	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
LBB0_23:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	mov	x0, x20
	bl	_read_close
	mov	x0, x19
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_PAF_VIDEO,4,2      ; @AV_CODEC_ID_PAF_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PAF_AUDIO,4,2      ; @AV_CODEC_ID_PAF_AUDIO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_read_header
.subsections_via_symbols
