	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avs_read_audio_packet
_avs_read_audio_packet:                 ## @avs_read_audio_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	callq	_avio_tell
	movl	%eax, %r12d
	movq	8(%r13), %rdx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ff_voc_get_packet
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_avio_tell
	movl	%eax, %ebx
	subl	%r12d, %ebx
	subl	%ebx, (%r13)
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r15d
	je	LBB0_4
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.3:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_2:
	movl	%r15d, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_avs_read_audio_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avs_read_audio_packet
_avs_read_audio_packet:                 ; @avs_read_audio_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	x21, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
	bl	_avio_tell
	mov	x22, x0
	ldr	x2, [x23, #8]
	ldr	w3, [x23]
	mov	x0, x21
	mov	x1, x19
	bl	_ff_voc_get_packet
	mov	x20, x0
	ldr	w0, [x21]
	bl	_avio_tell
	ldr	w8, [x23]
	sub	w21, w0, w22
	sub	w8, w8, w21
	str	w8, [x23]
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w20, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_4
LBB0_2:
	tbnz	w20, #31, LBB0_4
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
	mov	x20, x21
LBB0_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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_avs_read_audio_packet
.subsections_via_symbols
