	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmp_packet
_pmp_packet:                            ## @pmp_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, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	8(%rdi), %r13
	movq	%r15, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_18
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	je	LBB0_3
LBB0_9:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%r15, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_3:
	movq	%r15, %rdi
	callq	_avio_r8
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	8(%r13), %r14d
	decl	%r14d
	imull	%eax, %r14d
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	$0, 16(%r13)
	leaq	24(%r13), %rdi
	leaq	32(%r13), %rsi
	leal	4(,%r14,4), %edx
	movq	%rdi, %rbx
	callq	_av_fast_malloc
	cmpl	$0, 32(%r13)
	je	LBB0_19
## %bb.6:
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.7:
	movq	%rbx, %r12
	incl	%r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_avio_rl32
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movl	%eax, %ecx
LBB0_12:
	movq	16(%r13), %rsi
	movslq	4(%r13), %rdi
	movq	%rsi, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rdi
	testq	%rdx, %rdx
	jne	LBB0_17
LBB0_16:
	movl	(%r13), %eax
	incl	%eax
	cltd
	idivl	8(%r13)
	movl	%edx, (%r13)
LBB0_17:
	incq	%rsi
	movq	%rsi, 16(%r13)
LBB0_18:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_17
	jmp	LBB0_16
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_18
LBB0_19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_ENOMEM@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	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No audio packets.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Cannot (re)allocate packet buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pmp_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmp_packet
_pmp_packet:                            ; @pmp_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
	ldp	x20, x23, [x0]
	mov	x0, x20
	bl	_avio_feof
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
	ldr	w8, [x23]
	cbz	w8, LBB0_9
LBB0_3:
	ldp	x9, x8, [x23, #16]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x20
	mov	x1, x19
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	w0, #0
	ldr	w8, [x23]
	str	w8, [x19]
LBB0_5:
	ldr	x8, [x23, #16]
	ldrsw	x9, [x23, #4]
	udiv	x10, x8, x9
	msub	x9, x10, x9, x8
	cbnz	x9, LBB0_7
; %bb.6:
	ldr	w9, [x23]
	add	w9, w9, #1
	ldr	w10, [x23, #8]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x23]
LBB0_7:
	add	x8, x8, #1
	str	x8, [x23, #16]
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_avio_r8
	str	w0, [x23, #4]
	cbz	w0, LBB0_14
; %bb.10:
	ldr	w8, [x23, #8]
	sub	w8, w8, #1
	mul	w24, w8, w0
	mov	x0, x20
	mov	w1, #8
	bl	_avio_skip
	str	xzr, [x23, #16]
	add	x22, x23, #24
	add	x1, x23, #32
	lsl	w8, w24, #2
	add	w2, w8, #4
	mov	x0, x22
	bl	_av_fast_malloc
	ldr	w8, [x23, #32]
	cbz	w8, LBB0_15
; %bb.11:
	tbnz	w24, #31, LBB0_3
; %bb.12:
	mov	x21, #0
	add	w24, w24, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_rl32
	ldr	x8, [x22]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	cmp	x24, x21
	b.ne	LBB0_13
	b	LBB0_3
LBB0_14:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_15:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No audio packets.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Cannot (re)allocate packet buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pmp_packet
.subsections_via_symbols
