	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_sync_forward            ## -- Begin function pt_pkt_sync_forward
	.p2align	4, 0x90
_pt_pkt_sync_forward:                   ## @pt_pkt_sync_forward
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rdi
	movq	%rcx, -16(%rbp)
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	cmoveq	%rdi, %rdx
	xorl	%eax, %eax
	cmpq	%rcx, %rdx
	movq	_ptps_psb@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	$0, %esi
	cmoveq	%rcx, %rsi
	leaq	(%rdx,%rsi,4), %rsi
	movq	%rsi, %rdx
	subq	%rdi, %rdx
	jae	LBB0_4
## %bb.3:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_1:
	movq	_pte_invalid@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	shrq	$2, %rdx
	leal	-1(%rcx), %eax
	cmpl	%edx, %ecx
	cmovgl	%edx, %eax
	leaq	16(%rbx), %rdx
	cltq
	shlq	$2, %rax
	subq	%rax, %rsi
	leaq	-16(%rbp), %rdi
	callq	_pt_sync_forward
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	-16(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_invalid,4,2                ## @pte_invalid
	.comm	_ptps_psb,4,2                   ## @ptps_psb
	.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_sync_forward            ; -- Begin function pt_pkt_sync_forward
	.p2align	2
_pt_pkt_sync_forward:                   ; @pt_pkt_sync_forward
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x2, x0
	ldr	x10, [x2, #16]!
	ldp	x8, x9, [x0]
	str	x9, [sp, #8]
Lloh0:
	adrp	x11, _ptps_psb@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ptps_psb@GOTPAGEOFF]
	cmp	x8, #0
	csel	x12, x10, x8, eq
Lloh2:
	ldrsw	x8, [x11]
	cmp	x12, x9
	csel	x9, x8, xzr, eq
	add	x9, x12, x9, lsl #2
	subs	x10, x9, x10
	b.hs	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _pte_internal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _pte_invalid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_invalid@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	lsr	x10, x10, #2
	sub	w11, w8, #1
	cmp	w8, w10
	csel	w8, w10, w11, gt
	sub	x1, x9, w8, sxtw #2
	add	x0, sp, #8
	bl	_pt_sync_forward
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w0, #0
	ldr	x8, [sp, #8]
	stp	x8, x8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_invalid,4,2                ; @pte_invalid
	.comm	_ptps_psb,4,2                   ; @ptps_psb
	.comm	_pte_internal,4,2               ; @pte_internal
.subsections_via_symbols
