	.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
	subq	$24, %rsp
	.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	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	16(%r13), %rax
	movl	(%rax), %r15d
	movl	4(%rax), %r12d
	movl	(%rdi), %edi
	callq	_avio_tell
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_av_get_packet
	movl	%eax, %ebx
	cmpl	%r15d, %eax
	jge	LBB0_2
## %bb.1:
	movq	_AV_PKT_FLAG_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
LBB0_2:
	movl	%r12d, %edx
	sarl	$3, %edx
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.3:
	je	LBB0_4
## %bb.5:
	movq	$0, 16(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	subq	(%rax), %rdi
	jl	LBB0_8
## %bb.6:
	cmpl	$8, %r12d
	jl	LBB0_8
## %bb.7:
	movl	8(%r13), %esi
	imull	(%r13), %edx
	callq	_av_rescale
	movl	%eax, 4(%r14)
	movl	%eax, 8(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_8:
	cmpq	$0, 16(%rax)
	je	LBB0_12
## %bb.9:
	cmpl	%r15d, %ebx
	jne	LBB0_11
## %bb.10:
	movl	8(%rax), %r8d
	movl	12(%rax), %edi
	movl	(%r14), %edx
	movl	%r15d, %ecx
	sarl	$3, %ecx
	movl	%edx, %esi
	movl	$1, %r9d
	callq	_av_des_crypt
	jmp	LBB0_13
LBB0_4:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_13
LBB0_11:
	movl	8(%rax), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_12:
	movl	%ebx, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ## @AV_PKT_FLAG_CORRUPT
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_packet
_read_packet:                           ; @read_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldp	x8, x23, [x0, #8]
	ldr	x24, [x8]
	ldr	x8, [x24, #16]
	ldp	w19, w25, [x8]
	ldr	w0, [x0]
	bl	_avio_tell
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x19
	bl	_av_get_packet
	mov	x20, x0
	cmp	w0, w19
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_PKT_FLAG_CORRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_FLAG_CORRUPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21, #24]
	orr	w8, w9, w8
	str	w8, [x21, #24]
LBB0_2:
	tbnz	w20, #31, LBB0_11
; %bb.3:
	cbz	w20, LBB0_9
; %bb.4:
	str	xzr, [x21, #16]
	ldr	x8, [x23]
	subs	x0, x22, x8
	ccmp	w25, #8, #8, ge
	b.lt	LBB0_6
; %bb.5:
	asr	w8, w25, #3
	ldr	w1, [x24, #8]
	ldr	w9, [x24]
	mul	w2, w8, w9
	bl	_av_rescale
	stp	w0, w0, [x21, #4]
LBB0_6:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_11
; %bb.7:
	cmp	w20, w19
	b.ne	LBB0_10
; %bb.8:
	ldr	w1, [x21]
	asr	w3, w19, #3
	ldp	w4, w0, [x23, #8]
	mov	x2, x1
	mov	w5, #1
	bl	_av_des_crypt
	mov	x20, x19
	b	LBB0_11
LBB0_9:
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x23, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ; @AV_PKT_FLAG_CORRUPT
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_read_packet
.subsections_via_symbols
