	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_packet
_read_packet:                           ## @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	8(%rdi), %r13
	movl	(%r13), %eax
	cmpl	4(%r13), %eax
	jge	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, 8(%r13)
	je	LBB0_9
## %bb.6:
	movl	12(%r13), %esi
	movq	%r14, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_28
## %bb.7:
	movq	(%r14), %rdi
	movq	16(%r13), %rsi
	movl	12(%r13), %edx
	callq	_memcpy
	movq	_PAF_SOUND_SAMPLES@GOTPCREL(%rip), %rcx
	movl	12(%r13), %eax
	movq	_PAF_SOUND_FRAME_SIZE@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	imull	(%rcx), %eax
	movl	%eax, 8(%r14)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r14)
	movl	$1, 12(%r14)
	movl	$0, 8(%r13)
LBB0_8:
	movl	16(%r14), %eax
	jmp	LBB0_4
LBB0_9:
	movslq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	32(%r13), %rcx
	leaq	(%rcx,%rax,4), %rcx
	addq	$-4, %rcx
	jmp	LBB0_12
LBB0_11:
	leaq	24(%r13), %rcx
LBB0_12:
	movl	(%rcx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.13:
	movq	40(%r13), %rax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	64(%r13), %edx
	movl	84(%r13), %eax
	subl	%edx, %eax
	cmpl	%eax, %ebx
	jg	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %esi
	shlq	$2, %rsi
	addq	88(%r13), %rsi
	movq	%r15, %rdi
	callq	_avio_read
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	40(%r13), %rax
	incq	%rax
	movq	%rax, 40(%r13)
	decl	%r12d
	je	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	48(%r13), %rax
	jae	LBB0_29
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	56(%r13), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, %ebx
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	testl	%eax, %eax
	jns	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	12(%r13), %eax
	movl	64(%r13), %edx
	subl	%edx, %eax
	cmpl	%eax, %ebx
	jg	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rsi
	shlq	$2, %rsi
	addq	72(%r13), %rsi
	movq	%r15, %rdi
	callq	_avio_read
	movl	80(%r13), %eax
	addl	$-2, %eax
	imull	64(%r13), %eax
	cmpl	%eax, %ebx
	jne	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	16(%r13), %rdi
	movq	72(%r13), %rsi
	movl	12(%r13), %edx
	callq	_memcpy
	movl	$1, 8(%r13)
	jmp	LBB0_16
LBB0_22:
	movl	(%r13), %eax
LBB0_23:
	movq	96(%r13), %rcx
	cltq
	movl	84(%r13), %r15d
	subl	(%rcx,%rax,4), %r15d
	jle	LBB0_29
## %bb.24:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_28
## %bb.25:
	movq	$1, 8(%r14)
	movq	(%r14), %rdi
	movq	96(%r13), %rax
	movslq	(%r13), %rcx
	movslq	(%rax,%rcx,4), %rsi
	shlq	$2, %rsi
	addq	88(%r13), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	(%r14), %rax
	testb	$32, (%rax)
	je	LBB0_27
## %bb.26:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r14)
LBB0_27:
	incl	(%r13)
	jmp	LBB0_8
LBB0_28:
	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
LBB0_29:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAF_SOUND_SAMPLES,4,2          ## @PAF_SOUND_SAMPLES
	.comm	_PAF_SOUND_FRAME_SIZE,4,2       ## @PAF_SOUND_FRAME_SIZE
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function read_packet
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_read_packet:                           ; @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
	ldr	x21, [x0, #8]
	ldp	w8, w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_avio_feof
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	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_5:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_27
; %bb.7:
	ldr	x0, [x19]
	ldr	x1, [x21, #16]
	ldr	w2, [x21, #12]
	bl	_memcpy
Lloh2:
	adrp	x8, _PAF_SOUND_SAMPLES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAF_SOUND_SAMPLES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
Lloh5:
	adrp	x10, _PAF_SOUND_FRAME_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PAF_SOUND_FRAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	mul	w8, w9, w8
Lloh8:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldp	w0, w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #20]
	mov	w9, #1
	stp	w8, w9, [x19, #8]
	str	wzr, [x21, #8]
	b	LBB0_4
LBB0_8:
	ldr	w8, [x21]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	x9, [x21, #32]
	sub	w10, w8, #1
	add	x9, x9, w10, sxtw #2
	b	LBB0_11
LBB0_10:
	add	x9, x21, #24
LBB0_11:
	ldr	w22, [x9]
	cmp	w22, #1
	b.lt	LBB0_22
; %bb.12:
	ldr	x8, [x21, #40]
	mov	w23, #1
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x21, #84]
	ldr	w2, [x21, #64]
	sub	w8, w8, w2
	cmp	w24, w8
	b.gt	LBB0_28
; %bb.14:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #88]
	add	x1, x8, w24, uxtw #2
	mov	x0, x20
	bl	_avio_read
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #40]
	add	x8, x8, #1
	str	x8, [x21, #40]
	subs	w22, w22, #1
	b.eq	LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #48]
	cmp	x8, x9
	b.hs	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x21, #56]
	ldr	w8, [x9, x8, lsl #2]
	and	x24, x8, #0x7fffffff
	tbz	w8, #31, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x21, #12]
	ldr	w2, [x21, #64]
	sub	w8, w8, w2
	cmp	w24, w8
	b.gt	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #72]
	add	x1, x8, x24, lsl #2
	mov	x0, x20
	bl	_avio_read
	ldr	w8, [x21, #80]
	sub	w8, w8, #2
	ldr	w9, [x21, #64]
	mul	w8, w8, w9
	cmp	w24, w8
	b.ne	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x21, #16]
	ldr	x1, [x21, #72]
	ldr	w2, [x21, #12]
	bl	_memcpy
	str	w23, [x21, #8]
	b	LBB0_15
LBB0_21:
	ldr	w8, [x21]
LBB0_22:
	ldr	x9, [x21, #96]
	ldr	w8, [x9, w8, sxtw #2]
	ldr	w9, [x21, #84]
	subs	w20, w9, w8
	b.le	LBB0_28
; %bb.23:
	mov	x0, x19
	mov	x1, x20
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_27
; %bb.24:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	ldr	x0, [x19]
	ldp	x8, x9, [x21, #88]
	ldrsw	x10, [x21]
	ldrsw	x9, [x9, x10, lsl #2]
	add	x1, x8, x9, lsl #2
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	ldrb	w8, [x8]
	tbz	w8, #5, LBB0_26
; %bb.25:
Lloh13:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_26:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w0, [x19, #16]
	b	LBB0_4
LBB0_27:
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
LBB0_28:
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAF_SOUND_SAMPLES,4,2          ; @PAF_SOUND_SAMPLES
	.comm	_PAF_SOUND_FRAME_SIZE,4,2       ; @PAF_SOUND_FRAME_SIZE
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_read_packet
.subsections_via_symbols
