	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ifv_read_header
_ifv_read_header:                       ## @ifv_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, %rbx
	movq	8(%rdi), %r14
	callq	_parse_header
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	8(%rax), %rdx
	movq	%rcx, 16(%rdx)
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	movl	40(%r14), %ecx
	movl	%ecx, 28(%rdx)
	movl	36(%r14), %ecx
	movl	%ecx, 24(%rdx)
	movq	$0, 16(%rax)
	movl	(%rax), %ecx
	movl	%ecx, 32(%r14)
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rdx
	movq	%rcx, 16(%rdx)
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	movl	$1, (%rdx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rdx)
	movl	28(%r14), %ecx
	movl	%ecx, 4(%rdx)
	movl	(%rax), %ecx
	movl	%ecx, 24(%r14)
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
LBB0_5:
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$248, %esi
	callq	_avio_seek
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_read_index
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movl	$84248, %esi                    ## imm = 0x14918
	callq	_avio_seek
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_read_index
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_H264,4,2           ## @AV_CODEC_ID_H264
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_ifv_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ifv_read_header
_ifv_read_header:                       ; @ifv_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	x19, x0
	ldr	x20, [x0, #8]
	bl	_parse_header
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_10
; %bb.2:
Lloh0:
	adrp	x21, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0, #8]
	str	x8, [x9, #16]
Lloh2:
	adrp	x8, _AV_CODEC_ID_H264@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x9, #12]
	ldur	d0, [x20, #36]
	str	d0, [x9, #24]
	str	xzr, [x0, #16]
	ldr	w8, [x0]
	str	w8, [x20, #32]
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	str	x8, [x9, #16]
Lloh8:
	adrp	x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w10, #1
	ldr	w11, [x20, #28]
	str	w10, [x9]
Lloh11:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
	str	w11, [x9, #4]
	ldr	w8, [x0]
	str	w8, [x20, #24]
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
LBB0_5:
	ldr	w0, [x19]
Lloh14:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #248
	bl	_avio_seek
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_read_index
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	w1, #18712
	movk	w1, #1, lsl #16
	bl	_avio_seek
Lloh16:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_read_index
	tbnz	w0, #31, LBB0_9
LBB0_8:
	mov	w0, #0
	stp	xzr, xzr, [x20]
LBB0_9:
	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_10:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_H264,4,2           ; @AV_CODEC_ID_H264
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_ifv_read_header
.subsections_via_symbols
