	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmv_fetch_audio_packet
_xmv_fetch_audio_packet:                ## @xmv_fetch_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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r13
	leaq	(%rdx,%rdx,4), %r14
	movq	(%r13,%r14,8), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_avio_seek
	cmpq	(%r13,%r14,8), %rax
	jne	LBB0_10
## %bb.1:
	movq	(%rbx), %rax
	incq	%rax
	cmpq	8(%rbx), %rax
	jge	LBB0_3
## %bb.2:
	movl	36(%r13,%r14,8), %edi
	movq	8(%r13,%r14,8), %rsi
	callq	_FFMIN
	movq	%rax, %r15
	jmp	LBB0_4
LBB0_10:
	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
LBB0_3:
	movq	8(%r13,%r14,8), %r15
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_av_get_packet
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	leaq	(,%r14,8), %rcx
	addq	%r13, %rcx
	movl	32(%r13,%r14,8), %eax
	movl	%eax, 20(%rbx)
	movq	16(%r13,%r14,8), %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_8
LBB0_6:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movq	%rax, (%rbx)
	movq	24(%r13,%r14,8), %rdx
	movq	%rdx, 8(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 16(%rbx)
	addq	%rax, %rdx
	movq	%rdx, 24(%r13,%r14,8)
	subq	%r15, 8(%r13,%r14,8)
	addq	%r15, (%rcx)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.no_dead_strip	_xmv_fetch_audio_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmv_fetch_audio_packet
_xmv_fetch_audio_packet:                ; @xmv_fetch_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	x20, x2
	mov	x19, x1
	ldp	x21, x22, [x0]
	ldr	x24, [x22, #16]
	mov	w8, #40
	madd	x23, x2, x8, x24
	ldr	x1, [x23]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x9, [x22]
	add	x8, x8, #1
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	mov	w8, #40
	madd	x8, x20, x8, x24
	ldr	w0, [x8, #36]
	ldr	x1, [x8, #8]
	bl	_FFMIN
	mov	x22, x0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	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
LBB0_4:
	mov	w8, #40
	madd	x8, x20, x8, x24
	ldr	x22, [x8, #8]
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_av_get_packet
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:
	mov	w0, #0
	mov	w8, #40
	madd	x8, x20, x8, x24
	ldr	w9, [x8, #32]
	ldp	x11, x10, [x8, #8]
	udiv	x10, x22, x10
Lloh6:
	adrp	x12, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x12, [x12, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	stp	w12, w9, [x19, #16]
	ldr	x9, [x8, #24]
	stp	x10, x9, [x19]
	add	x9, x9, x10
	str	x9, [x8, #24]
	sub	x9, x11, x22
	str	x9, [x8, #8]
	ldr	x8, [x23]
	add	x8, x8, x22
	str	x8, [x23]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.no_dead_strip	_xmv_fetch_audio_packet
.subsections_via_symbols
