	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r12
	movq	8(%r12), %r14
	movq	_SEEK_TO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	xorl	%edx, %edx
	callq	_parse_chunks
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	-36(%rbp), %edx
	addl	$-32, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%ebx, (%r15)
	movl	(%r12), %eax
	movl	%eax, 4(%r15)
	movl	-36(%rbp), %edi
	callq	_WTV_PAD8
	movslq	-36(%rbp), %rcx
	subq	%rcx, %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_avio_skip
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_TO_DATA,4,2               ## @SEEK_TO_DATA
	.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:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x22, [x0]
	ldr	x19, [x22, #8]
Lloh0:
	adrp	x8, _SEEK_TO_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_TO_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_parse_chunks
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	sub	w2, w8, #32
	mov	x0, x19
	mov	x1, x20
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	stp	w21, w8, [x20]
	ldr	w0, [sp, #12]
	bl	_WTV_PAD8
	ldrsw	x8, [sp, #12]
	sub	x1, x0, x8
	mov	x0, x19
	bl	_avio_skip
	mov	w21, #0
	b	LBB0_4
LBB0_3:
	mov	x21, x0
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_TO_DATA,4,2               ; @SEEK_TO_DATA
	.no_dead_strip	_read_packet
.subsections_via_symbols
