	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xa_read_packet
_xa_read_packet:                        ## @xa_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	(%rdi), %rdi
	movq	8(%r12), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %r14d
	movl	%r14d, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	(%r12), %ecx
	movl	%ecx, 4(%r15)
	movl	%r14d, %ecx
	addq	%rcx, (%rbx)
	movl	$28, (%r15)
	jmp	LBB0_4
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_xa_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xa_read_packet
_xa_read_packet:                        ; @xa_read_packet
	.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
	ldr	x21, [x0, #16]
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	mov	x19, x1
	ldp	x0, x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	lsl	w9, w8, #4
	sub	w20, w9, w8
	mov	x2, x20
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [x22]
	ldr	x9, [x21]
	add	x9, x9, w20, uxtw
	str	x9, [x21]
	mov	w9, #28
	stp	w9, w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_xa_read_packet
.subsections_via_symbols
