	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_pktfile_read
_io_pktfile_read:                       ## @io_pktfile_read
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	$0, -44(%rbp)
	movl	(%r13), %ecx
	leaq	-44(%rbp), %rdi
	movl	$4, %edx
	movl	$1, %esi
	callq	_fread
	cmpq	$4, %rax
	jne	LBB0_1
## %bb.4:
	cmpl	$0, 4(%r13)
	movl	-44(%rbp), %eax
	je	LBB0_5
## %bb.6:
	cmpl	$1048577, %eax                  ## imm = 0x100001
	jge	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movl	(%r13), %edi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movl	%eax, %edi
	callq	_swap_byte_order
	movl	%eax, -44(%rbp)
	cmpl	$1048577, %eax                  ## imm = 0x100001
	jl	LBB0_8
LBB0_7:
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cltq
	cmpq	%r14, %rax
	cmovbq	%rax, %r14
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_fread
	cmpq	%r14, %rax
	jne	LBB0_9
## %bb.13:
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r14
	jae	LBB0_15
## %bb.14:
	subl	%r14d, %eax
	movl	%eax, -44(%rbp)
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_vc_container_assert
	movl	(%r13), %edi
	movslq	-44(%rbp), %rsi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fseek
LBB0_15:
	movq	%r14, %rbx
	jmp	LBB0_16
LBB0_9:
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FAILED,8,3  ## @VC_CONTAINER_ERROR_FAILED
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_io_pktfile_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_pktfile_read
_io_pktfile_read:                       ; @io_pktfile_read
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	str	wzr, [sp, #12]
	ldr	w3, [x22]
	add	x0, sp, #12
	mov	w1, #1
	mov	w2, #4
	bl	_fread
	cmp	x0, #4
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x22, #4]
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:
	cmp	w0, #256, lsl #12               ; =1048576
	b.gt	LBB0_6
	b	LBB0_8
LBB0_3:
	ldr	w0, [x22]
	bl	_feof
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, #0
	b	LBB0_13
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_swap_byte_order
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #12]
	cmp	w0, #256, lsl #12               ; =1048576
	b.le	LBB0_8
LBB0_6:
	mov	x20, #0
LBB0_7:
Lloh0:
	adrp	x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	sxtw	x8, w0
	cmp	x8, x21
	csel	x21, x8, x21, lo
	ldr	w3, [x22]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_fread
	cmp	x0, x21
	b.ne	LBB0_12
; %bb.9:
	ldrsw	x8, [sp, #12]
	cmp	x21, x8
	b.hs	LBB0_11
; %bb.10:
	sub	w8, w8, w21
	str	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, gt
	bl	_vc_container_assert
	ldr	w0, [x22]
	ldrsw	x1, [sp, #12]
Lloh2:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_fseek
LBB0_11:
	mov	x20, x21
	b	LBB0_15
LBB0_12:
	mov	x20, x0
	ldr	w0, [x22]
	bl	_feof
	cbz	x0, LBB0_7
LBB0_13:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_15:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FAILED,8,3  ; @VC_CONTAINER_ERROR_FAILED
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_io_pktfile_read
.subsections_via_symbols
