	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vqf_read_packet
_vqf_read_packet:                       ## @vqf_read_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	(%r13), %r14d
	subl	4(%r13), %r14d
	movq	%rsi, %r15
	addl	$7, %r14d
	movl	%r14d, %ebx
	sarl	$3, %ebx
	leal	2(%rbx), %esi
	movq	%r15, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	callq	_avio_tell
	movl	%eax, 24(%r15)
	movq	$0, 16(%r15)
	movl	$1, (%r15)
	movl	$8, %eax
	subl	4(%r13), %eax
	movq	8(%r15), %rsi
	movl	%eax, (%rsi)
	movl	8(%r13), %eax
	movl	%eax, 4(%rsi)
	movl	(%r12), %edi
	addq	$8, %rsi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	jne	LBB0_2
## %bb.4:
	movq	8(%r15), %rax
	movslq	%ebx, %rcx
	movl	4(%rax,%rcx,4), %eax
	movl	%eax, 8(%r13)
	andl	$-8, %r14d
	subl	(%r13), %r14d
	addl	%r14d, 4(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_av_packet_unref
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_vqf_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vqf_read_packet
_vqf_read_packet:                       ; @vqf_read_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldp	w8, w9, [x23]
	sub	w8, w8, w9
	add	w24, w8, #7
	asr	w21, w24, #3
	add	w20, w21, #2
	mov	x0, x1
	mov	x1, x20
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w0, [x22]
	bl	_avio_tell
	str	w0, [x19, #24]
	str	xzr, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x23, #4]
	mov	w9, #8
	sub	w8, w9, w8
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	w8, [x23, #8]
	str	w8, [x9, #4]
	ldr	w0, [x22]
	add	x1, x9, #8
	mov	x2, x21
	bl	_avio_read
	cmp	w0, w21
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	add	w9, w21, #1
	ldr	w8, [x8, w9, sxtw #2]
	and	w9, w24, #0xfffffff8
	ldp	w10, w11, [x23]
	sub	w9, w9, w10
	add	w9, w9, w11
	stp	w9, w8, [x23, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_4:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_vqf_read_packet
.subsections_via_symbols
