	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	(%rax), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	cmpl	$8000, (%rax)                   ## imm = 0x1F40
	sete	%sil
	movl	$10, %eax
	movl	$22, %r12d
	cmovel	%eax, %r12d
	xorl	$11, %esi
	movq	%r15, %rdi
	callq	_av_new_packet
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movl	%r12d, %ecx
	movq	%r15, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpl	$4400, (%rax)                   ## imm = 0x1130
	jne	LBB0_7
## %bb.2:
	cmpl	$0, (%r15)
	movq	8(%r15), %rsi
	movl	%ecx, %ebx
	je	LBB0_3
## %bb.6:
	movq	%r15, %rdi
	movl	20(%rsi), %eax
	movq	%r12, %r15
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movl	68(%rsi), %eax
	movl	%eax, 4(%rcx)
	movl	24(%rsi), %eax
	movl	%eax, 8(%rcx)
	movl	72(%rsi), %eax
	movl	%eax, 12(%rcx)
	movl	28(%rsi), %eax
	movl	%eax, 16(%rcx)
	movl	76(%rsi), %eax
	movl	%eax, 20(%rcx)
	movl	32(%rsi), %eax
	movl	%eax, 24(%rcx)
	movl	80(%rsi), %eax
	movl	%eax, 28(%rcx)
	movl	36(%rsi), %eax
	movl	%eax, 32(%rcx)
	movl	84(%rsi), %eax
	movl	%eax, 36(%rcx)
	movl	40(%rsi), %eax
	movl	%eax, 40(%rcx)
	movl	$0, (%rdi)
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_7:
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	movl	%ecx, %ebx
	movl	%ecx, %edx
	callq	_avio_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	cmpl	%ebx, %r13d
	jne	LBB0_15
## %bb.9:
	movq	%r15, %rdi
	movq	8(%r15), %rax
	movl	20(%rax), %ecx
	movq	%r12, %r15
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	24(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	28(%rax), %ecx
	movl	%ecx, 16(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 20(%rdx)
	movl	32(%rax), %ecx
	movl	%ecx, 24(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 28(%rdx)
	movl	36(%rax), %ecx
	movl	%ecx, 32(%rdx)
	movl	16(%rax), %eax
	movl	%eax, 36(%rdx)
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_avio_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:
	cmpl	%ebx, %r13d
	jne	LBB0_15
## %bb.5:
	movq	%r15, %rdi
	movq	8(%r15), %rax
	movl	44(%rax), %ecx
	movq	%r12, %r15
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	48(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	52(%rax), %ecx
	movl	%ecx, 16(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 20(%rdx)
	movl	56(%rax), %ecx
	movl	%ecx, 24(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 28(%rdx)
	movl	60(%rax), %ecx
	movl	%ecx, 32(%rdx)
	movl	16(%rax), %ecx
	movl	%ecx, 36(%rdx)
	movl	64(%rax), %eax
	movl	%eax, 40(%rdx)
	movl	$1, (%rdi)
LBB0_10:
	movl	%ebx, %r13d
LBB0_11:
	movl	4(%rdi), %esi
	subl	%ebx, %esi
	movl	%esi, 4(%rdi)
	cmpl	%ebx, %esi
	jge	LBB0_13
## %bb.12:
	movq	%rdi, %rbx
	movq	%r14, %rdi
	callq	_avio_skip
	movq	_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_13:
	movl	$1, (%r15)
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CHUNK_SIZE,4,2                 ## @CHUNK_SIZE
	.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	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	x23, x0
	ldp	x20, x24, [x0, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #8000
	mov	w10, #22
	mov	w11, #10
	cmp	w8, w9
	csel	w21, w11, w10, eq
	cinc	w1, w11, ne
	mov	x0, x19
	bl	_av_new_packet
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #4400
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x24]
	ldr	x1, [x24, #8]
	cbz	w8, LBB0_7
; %bb.3:
	mov	w22, #0
	ldr	w8, [x1, #20]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	w8, [x1, #68]
	str	w8, [x9, #4]
	ldr	w8, [x1, #24]
	str	w8, [x9, #8]
	ldr	w8, [x1, #72]
	str	w8, [x9, #12]
	ldr	w8, [x1, #28]
	str	w8, [x9, #16]
	ldr	w8, [x1, #76]
	str	w8, [x9, #20]
	ldr	w8, [x1, #32]
	str	w8, [x9, #24]
	ldr	w8, [x1, #80]
	str	w8, [x9, #28]
	ldr	w8, [x1, #36]
	str	w8, [x9, #32]
	ldr	w8, [x1, #84]
	str	w8, [x9, #36]
	ldr	w8, [x1, #40]
	str	w8, [x9, #40]
	str	wzr, [x24]
	b	LBB0_11
LBB0_4:
	ldr	x1, [x24, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_avio_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.5:
	cmp	w22, w21
	b.ne	LBB0_15
; %bb.6:
	ldr	x8, [x24, #8]
	ldr	w9, [x8, #20]
	ldr	x10, [x19, #8]
	str	w9, [x10]
	ldr	w9, [x8]
	str	w9, [x10, #4]
	ldr	w9, [x8, #24]
	str	w9, [x10, #8]
	ldr	w9, [x8, #4]
	str	w9, [x10, #12]
	ldr	w9, [x8, #28]
	str	w9, [x10, #16]
	ldr	w9, [x8, #8]
	str	w9, [x10, #20]
	ldr	w9, [x8, #32]
	str	w9, [x10, #24]
	ldr	w9, [x8, #12]
	str	w9, [x10, #28]
	ldr	w9, [x8, #36]
	str	w9, [x10, #32]
	ldr	w8, [x8, #16]
	str	w8, [x10, #36]
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x2, x21
	bl	_avio_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.8:
	cmp	w22, w21
	b.ne	LBB0_15
; %bb.9:
	ldr	x8, [x24, #8]
	ldr	w9, [x8, #44]
	ldr	x10, [x19, #8]
	str	w9, [x10]
	ldr	w9, [x8]
	str	w9, [x10, #4]
	ldr	w9, [x8, #48]
	str	w9, [x10, #8]
	ldr	w9, [x8, #4]
	str	w9, [x10, #12]
	ldr	w9, [x8, #52]
	str	w9, [x10, #16]
	ldr	w9, [x8, #8]
	str	w9, [x10, #20]
	ldr	w9, [x8, #56]
	str	w9, [x10, #24]
	ldr	w9, [x8, #12]
	str	w9, [x10, #28]
	ldr	w9, [x8, #60]
	str	w9, [x10, #32]
	ldr	w9, [x8, #16]
	str	w9, [x10, #36]
	ldr	w8, [x8, #64]
	str	w8, [x10, #40]
	mov	w8, #1
	str	w8, [x24]
LBB0_10:
	mov	x22, x21
LBB0_11:
	ldr	w8, [x24, #4]
	sub	w1, w8, w21
	cmp	w1, w21
	str	w1, [x24, #4]
	b.ge	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_avio_skip
Lloh0:
	adrp	x8, _CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x24, #4]
LBB0_13:
	mov	w8, #1
	str	w8, [x19]
LBB0_14:
	mov	x0, x22
	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_15:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CHUNK_SIZE,4,2                 ; @CHUNK_SIZE
	.no_dead_strip	_read_packet
.subsections_via_symbols
