	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvf_read_header
_pvf_read_header:                       ## @pvf_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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %edi
	movl	$5, %esi
	callq	_avio_skip
	movl	(%r15), %edi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_ff_get_line
	leaq	L_.str(%rip), %rsi
	leaq	-76(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_1
## %bb.2:
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movq	_FF_SANE_NB_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_1
## %bb.4:
	movl	-68(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.5:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %esi
	jg	LBB0_1
## %bb.6:
	cmpl	$0, -72(%rbp)
	jle	LBB0_1
## %bb.7:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 20(%rcx)
	movl	-76(%rbp), %eax
	movl	%eax, (%rcx)
	movl	-72(%rbp), %eax
	movl	%eax, 4(%rcx)
	movl	-68(%rbp), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_ff_get_pcm_codec_id
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	-68(%rbp), %eax
	movl	%eax, 8(%rcx)
	imull	(%rcx), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movl	%edx, 12(%rcx)
	movl	4(%rcx), %ecx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	jmp	LBB0_10
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %d %d"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_FF_SANE_NB_CHANNELS,4,2        ## @FF_SANE_NB_CHANNELS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_pvf_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvf_read_header
_pvf_read_header:                       ; @pvf_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w0, [x0]
	mov	w1, #5
	bl	_avio_skip
	ldr	w0, [x19]
	add	x1, sp, #24
	mov	w2, #32
	bl	_ff_get_line
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	add	x2, sp, #16
	add	x3, sp, #12
	add	x4, sp, #20
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_4
; %bb.1:
	ldr	w10, [sp, #16]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _FF_SANE_NB_CHANNELS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FF_SANE_NB_CHANNELS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	ldr	w8, [sp, #20]
	cmp	w10, w9
	ccmp	w8, #1, #8, le
	b.lt	LBB0_4
; %bb.3:
Lloh8:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	sdiv	w9, w10, w9
	ldr	w10, [sp, #12]
	cmp	w8, w9
	ccmp	w10, #0, #4, le
	b.gt	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_9
; %bb.8:
	mov	x19, x0
Lloh17:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9, #20]
	ldr	w8, [sp, #16]
	str	w8, [x9]
	ldr	w8, [sp, #12]
	str	w8, [x9, #4]
	ldr	w0, [sp, #20]
	mov	w1, #0
	mov	w2, #1
	mov	w3, #65535
	bl	_ff_get_pcm_codec_id
	ldr	x8, [x19]
	ldr	w9, [sp, #20]
	ldp	w10, w3, [x8]
	mul	w10, w10, w9
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #3
	str	w9, [x8, #8]
	stp	w10, w0, [x8, #12]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_5
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_5
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %d %d"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_FF_SANE_NB_CHANNELS,4,2        ; @FF_SANE_NB_CHANNELS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_pvf_read_header
.subsections_via_symbols
