	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpl_read_packet
_rpl_read_packet:                       ## @rpl_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	%rsi, %r12
	movq	16(%rdi), %r15
	movq	24(%rdi), %rbx
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpq	(%rdi), %rcx
	jne	LBB0_2
## %bb.1:
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	xorl	%ecx, %ecx
LBB0_2:
	movq	8(%rdi), %rdx
	movq	(%rdx,%rcx,8), %r13
	cmpq	(%r13), %rax
	jae	LBB0_3
## %bb.4:
	movq	16(%r13), %rdx
	cmpq	$0, 16(%rbx)
	leaq	(%rax,%rax,2), %rsi
	jne	LBB0_6
## %bb.5:
	movq	%rsi, %r14
	movl	(%rdx,%rsi,8), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	js	LBB0_13
LBB0_6:
	movq	8(%r13), %rax
	movq	(%rax), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_16
## %bb.7:
	cmpl	$124, 8(%rax)
	jne	LBB0_16
## %bb.8:
	movq	%rsi, %r14
	movq	%rdx, %r13
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, %r12d
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$-8, %esi
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	cmpl	%r12d, %eax
	jne	LBB0_12
## %bb.14:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, (%rdx)
	movq	16(%rbx), %rcx
	movq	8(%r13,%r14,8), %rax
	addq	%rcx, %rax
	movq	%rax, 8(%rdx)
	movq	(%rbx), %rax
	movq	%rax, 16(%rdx)
	incq	%rcx
	movq	%rcx, 16(%rbx)
	cmpq	24(%rbx), %rcx
	jne	LBB0_23
## %bb.15:
	movq	$0, 16(%rbx)
	jmp	LBB0_22
LBB0_3:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rdx, %r14
	movl	16(%rdx,%rsi,8), %edx
	movq	%r15, %rdi
	movq	%rsi, %r15
	movq	%r12, %rsi
	callq	_av_get_packet
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_26
## %bb.17:
	leaq	(%r14,%r15,8), %rax
	addq	$16, %rax
	cmpl	(%rax), %r12d
	jne	LBB0_12
## %bb.18:
	movq	%r15, %rsi
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movl	24(%rbx), %eax
	jmp	LBB0_21
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_packet_unref
LBB0_13:
	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_20:
	movl	%r12d, %eax
	shll	$3, %eax
LBB0_21:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%r14,%rsi,8), %rax
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	%rax, 16(%rcx)
LBB0_22:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_23:
	cmpq	$0, 8(%rbx)
	jne	LBB0_26
## %bb.24:
	cmpq	$0, 16(%rbx)
	jne	LBB0_26
## %bb.25:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 24(%rcx)
	jmp	LBB0_26
LBB0_10:
	movl	%eax, %r12d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_rpl_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpl_read_packet
_rpl_read_packet:                       ; @rpl_read_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldp	x21, x22, [x0, #16]
	ldr	x9, [x0]
	ldp	x8, x23, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
	add	x23, x23, #1
	stp	xzr, x23, [x22]
LBB0_2:
	ldr	x9, [x0, #8]
	ldr	x25, [x9, x8, lsl #3]
	ldr	x8, [x25]
	cmp	x23, x8
	b.hs	LBB0_12
; %bb.3:
	ldr	x24, [x25, #16]
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	w8, #24
	mul	x8, x23, x8
	ldr	w1, [x24, x8]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	tbnz	x0, #63, LBB0_19
LBB0_5:
	ldr	x8, [x25, #8]
	ldr	x9, [x8]
Lloh3:
	adrp	x26, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.6:
	ldr	w8, [x8, #8]
	cmp	w8, #124
	b.ne	LBB0_14
; %bb.7:
	mov	x0, x21
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x21
	bl	_avio_rl32
	mov	x20, x0
Lloh5:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #-8
	bl	_avio_seek
	tbnz	x0, #63, LBB0_19
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_26
; %bb.9:
	cmp	w0, w20
	b.ne	LBB0_18
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldr	x8, [x8, #8]
	ldp	x9, x10, [x22, #16]
	add	x11, x9, x8
	ldr	x8, [x22]
	stp	x11, x8, [x19, #8]
	add	x9, x9, #1
	str	x9, [x22, #16]
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.11:
	str	xzr, [x22, #16]
	b	LBB0_22
LBB0_12:
Lloh8:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w8, #24
	madd	x27, x23, x8, x24
	ldr	w2, [x27, #16]!
	mov	x0, x21
	mov	x1, x19
	bl	_av_get_packet
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.15:
	ldr	w8, [x27]
	cmp	w20, w8
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
	ldr	w8, [x22, #24]
	b	LBB0_21
LBB0_18:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_19:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_20:
	lsl	w8, w20, #3
LBB0_21:
	str	w8, [x19]
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldr	x9, [x8, #8]
	ldr	x8, [x22]
	stp	x9, x8, [x19, #8]
LBB0_22:
	add	x8, x8, #1
	str	x8, [x22]
LBB0_23:
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_13
; %bb.24:
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_13
; %bb.25:
Lloh14:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_13
LBB0_26:
	mov	x20, x0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_rpl_read_packet
.subsections_via_symbols
