	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function native_apic_disable_vector
_native_apic_disable_vector:            ## @native_apic_disable_vector
	.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
	movl	%esi, %ebx
	movq	_IDT_SYSCALL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_ioint_handlers@GOTPCREL(%rip), %rax
	leal	31(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	movq	(%rax), %rax
	sarl	$5, %ecx
	movslq	%ecx, %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	movslq	%ebx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_KASSERT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDT_SYSCALL,4,2                ## @IDT_SYSCALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to overwrite syscall entry"

	.comm	_ioint_handlers,8,3             ## @ioint_handlers
	.comm	_GSEL_APIC,4,2                  ## @GSEL_APIC
	.comm	_IDT_DTRACE_RET,4,2             ## @IDT_DTRACE_RET
	.comm	_SDT_APIC,4,2                   ## @SDT_APIC
	.comm	_SEL_KPL,4,2                    ## @SEL_KPL
	.comm	_pti,8,3                        ## @pti
	.comm	_rsvd,4,2                       ## @rsvd
	.comm	_rsvd_pti,4,2                   ## @rsvd_pti
	.no_dead_strip	_native_apic_disable_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function native_apic_disable_vector
_native_apic_disable_vector:            ; @native_apic_disable_vector
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _IDT_SYSCALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDT_SYSCALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh5:
	adrp	x8, _ioint_handlers@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ioint_handlers@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	w9, w19, #31
	cmp	w19, #0
	csel	w9, w9, w19, lt
	asr	w9, w9, #5
	ldr	x8, [x8, w9, sxtw #3]
	cmp	x8, #0
	cset	w0, ne
	sxtw	x1, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_KASSERT
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDT_SYSCALL,4,2                ; @IDT_SYSCALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to overwrite syscall entry"

	.comm	_ioint_handlers,8,3             ; @ioint_handlers
	.comm	_GSEL_APIC,4,2                  ; @GSEL_APIC
	.comm	_IDT_DTRACE_RET,4,2             ; @IDT_DTRACE_RET
	.comm	_SDT_APIC,4,2                   ; @SDT_APIC
	.comm	_SEL_KPL,4,2                    ; @SEL_KPL
	.comm	_pti,8,3                        ; @pti
	.comm	_rsvd,4,2                       ; @rsvd
	.comm	_rsvd_pti,4,2                   ; @rsvd_pti
	.no_dead_strip	_native_apic_disable_vector
.subsections_via_symbols
