	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yop_read_packet
_yop_read_packet:                       ## @yop_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, %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %r14
	movl	(%r14), %esi
	movl	4(%r14), %eax
	movl	8(%r14), %r12d
	addl	%eax, %r12d
	leaq	16(%r14), %r15
	movl	$1, 16(%r14)
	cmpq	$0, 24(%r14)
	je	LBB0_2
## %bb.1:
	movq	32(%r15), %rax
	movq	%rax, 32(%rbx)
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	$0, 24(%r14)
	movq	$0, 48(%r14)
	movl	$0, 32(%r14)
	movl	12(%r14), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	xorb	$1, 12(%r14)
	movl	16(%rbx), %r13d
	jmp	LBB0_13
LBB0_2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	subl	%eax, %esi
	movq	%r15, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_avio_tell
	movl	%eax, 36(%r14)
	movq	24(%r14), %rsi
	movl	8(%r14), %edx
	movq	%r13, %rdi
	callq	_avio_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	cmpl	8(%r14), %r13d
	jge	LBB0_8
## %bb.6:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$920, %edx                      ## imm = 0x398
	callq	_av_get_packet
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	subl	%r12d, %ecx
	movl	36(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	%ecx, %r12d
	movl	4(%r14), %esi
	subl	%r13d, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_avio_skip
	movslq	8(%r14), %rsi
	shlq	$2, %rsi
	addq	24(%r14), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_avio_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	cmpl	%r12d, %r13d
	jge	LBB0_12
## %bb.11:
	movl	8(%r14), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	callq	_av_shrink_packet
LBB0_12:
	movl	4(%r14), %r13d
	jmp	LBB0_13
LBB0_7:
	movq	%r15, %rdi
	callq	_av_packet_unref
LBB0_13:
	movl	%r13d, %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_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_yop_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yop_read_packet
_yop_read_packet:                       ; @yop_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	x20, x1
	ldp	x21, x24, [x0]
	ldp	w23, w25, [x24]
	ldr	w26, [x24, #8]
	mov	w8, #1
	mov	x19, x24
	str	w8, [x19, #16]!
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	q0, q1, [x19]
	ldr	x8, [x19, #32]
	str	x8, [x20, #32]
	stp	q0, q1, [x20]
	str	xzr, [x24, #24]
	str	xzr, [x24, #48]
	str	wzr, [x24, #32]
	ldr	w8, [x24, #12]
	ldr	x9, [x20, #8]
	str	w8, [x9]
Lloh0:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	ldr	w8, [x24, #12]
	eor	w8, w8, #0x1
	str	w8, [x24, #12]
	ldr	w22, [x20, #16]
	b	LBB0_13
LBB0_2:
	sub	w1, w23, w25
	mov	x0, x19
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_avio_tell
	str	w0, [x24, #36]
	ldr	x1, [x24, #24]
	ldr	w2, [x24, #8]
	mov	x0, x21
	bl	_avio_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	w8, [x24, #8]
	cmp	w22, w8
	b.ge	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_6:
	mov	x22, x0
	b	LBB0_13
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #920
	bl	_av_get_packet
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.8:
	add	w8, w25, w26
	sub	w23, w23, w8
	ldr	w8, [x24, #36]
	str	w8, [x20, #20]
	ldr	w8, [x24, #4]
	sub	w1, w8, w22
	mov	x0, x21
	bl	_avio_skip
	ldr	x8, [x24, #24]
	ldrsw	x9, [x24, #8]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	mov	x2, x23
	bl	_avio_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.9:
	cmp	w22, w23
	b.ge	LBB0_11
; %bb.10:
	ldr	w8, [x24, #8]
	add	w1, w8, w22
	mov	x0, x19
	bl	_av_shrink_packet
LBB0_11:
	ldr	w22, [x24, #4]
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_13:
	mov	x0, x22
	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_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_yop_read_packet
.subsections_via_symbols
