	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trap_is_pti
_trap_is_pti:                           ## @trap_is_pti
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_curpmap@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_PCPU_GET
	movq	(%rax), %rcx
	movq	_PMAP_NO_CR3@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.1:
	movq	_pg_nx@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_PGEX_P@GOTPCREL(%rip), %rcx
	movq	_PGEX_W@GOTPCREL(%rip), %rdx
	movq	_PGEX_U@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_PGEX_I@GOTPCREL(%rip), %rdi
	orl	(%rcx), %esi
	movl	(%rdi), %ecx
	movl	(%rdx), %edx
	orl	%esi, %edx
	orl	%ecx, %edx
	andl	(%rbx), %edx
	orl	%ecx, %esi
	cmpl	%esi, %edx
	jne	LBB0_4
## %bb.3:
	movq	_curpcb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CR3_PCID_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	notl	%ebx
	andl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_PCPU_GET
	movl	(%r15), %ecx
	notl	%ecx
	andl	8(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	sete	%al
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curpmap,4,2                    ## @curpmap
	.comm	_PMAP_NO_CR3,8,3                ## @PMAP_NO_CR3
	.comm	_pg_nx,8,3                      ## @pg_nx
	.comm	_PGEX_P,4,2                     ## @PGEX_P
	.comm	_PGEX_W,4,2                     ## @PGEX_W
	.comm	_PGEX_U,4,2                     ## @PGEX_U
	.comm	_PGEX_I,4,2                     ## @PGEX_I
	.comm	_curpcb,8,3                     ## @curpcb
	.comm	_CR3_PCID_MASK,4,2              ## @CR3_PCID_MASK
	.no_dead_strip	_trap_is_pti
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trap_is_pti
_trap_is_pti:                           ; @trap_is_pti
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _curpmap@GOTPAGE
Lloh1:
	ldr	x20, [x20, _curpmap@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_PCPU_GET
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _PMAP_NO_CR3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PMAP_NO_CR3@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _pg_nx@GOTPAGE
Lloh6:
	ldr	x10, [x10, _pg_nx@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _PGEX_P@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PGEX_P@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PGEX_W@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PGEX_W@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _PGEX_U@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PGEX_U@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	adrp	x12, _PGEX_I@GOTPAGE
Lloh18:
	ldr	x12, [x12, _PGEX_I@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	orr	w9, w11, w9
	orr	w10, w9, w10
	orr	w10, w10, w12
	and	w8, w10, w8
	orr	w9, w9, w12
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh20:
	adrp	x8, _curpcb@GOTPAGE
Lloh21:
	ldr	x8, [x8, _curpcb@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh23:
	adrp	x19, _CR3_PCID_MASK@GOTPAGE
Lloh24:
	ldr	x19, [x19, _CR3_PCID_MASK@GOTPAGEOFF]
	ldr	w9, [x19]
	bic	w21, w8, w9
	ldr	w0, [x20]
	bl	_PCPU_GET
	ldr	w8, [x0, #8]
	ldr	w9, [x19]
	bic	w8, w8, w9
	cmp	w21, w8
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_curpmap,4,2                    ; @curpmap
	.comm	_PMAP_NO_CR3,8,3                ; @PMAP_NO_CR3
	.comm	_pg_nx,8,3                      ; @pg_nx
	.comm	_PGEX_P,4,2                     ; @PGEX_P
	.comm	_PGEX_W,4,2                     ; @PGEX_W
	.comm	_PGEX_U,4,2                     ; @PGEX_U
	.comm	_PGEX_I,4,2                     ; @PGEX_I
	.comm	_curpcb,8,3                     ; @curpcb
	.comm	_CR3_PCID_MASK,4,2              ; @CR3_PCID_MASK
	.no_dead_strip	_trap_is_pti
.subsections_via_symbols
