	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_next                    ## -- Begin function pt_pkt_next
	.p2align	4, 0x90
_pt_pkt_next:                           ## @pt_pkt_next
	.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
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r12
	cmpq	$4, %rdx
	leaq	-48(%rbp), %r13
	cmoveq	%r15, %r13
	movl	(%rdi), %esi
	leaq	4(%rdi), %rdx
	leaq	-56(%rbp), %rdi
	callq	_pt_df_fetch
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*%rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_pkt_to_user
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	addl	%ebx, (%r12)
	jmp	LBB0_12
LBB0_8:
	movq	_pte_invalid@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	_pte_internal@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_invalid,4,2                ## @pte_invalid
	.comm	_pte_internal,4,2               ## @pte_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_next                    ; -- Begin function pt_pkt_next
	.p2align	2
_pt_pkt_next:                           ; @pt_pkt_next
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x2
	mov	x19, x0
	mov	x8, sp
	cmp	x2, #4
	csel	x23, x21, x8, eq
	mov	x2, x0
	ldr	w1, [x2], #4
	add	x0, sp, #8
	bl	_pt_df_fetch
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	blr	x8
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_pkt_to_user
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _pte_invalid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_invalid@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	x22, x0
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x8, _pte_internal@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_invalid,4,2                ; @pte_invalid
	.comm	_pte_internal,4,2               ; @pte_internal
.subsections_via_symbols
