	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_ntb_local_link_enable
_idt_ntb_local_link_enable:             ## @idt_ntb_local_link_enable
	.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, %r14
	movq	_IDT_NT_NTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDT_NTCTL_CPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_idt_nt_write
	movq	_IDT_NT_REQIDCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_idt_nt_read
	movq	_NTMTBLDATA_REQID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_SET_FIELD
	movl	%eax, %ebx
	movq	_NTMTBLDATA_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_SET_FIELD
	orl	%eax, %ebx
	movq	_IDT_NTMTBLDATA_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_IDT_NT_NTMTBLADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_idt_nt_write
	movq	_IDT_NT_NTMTBLDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_idt_nt_write
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IDT_NT_NTGSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IDT_NTGSIGNAL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_idt_nt_write
	movq	_IDT_SW_SEGSIGSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r14), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_idt_sw_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDT_NT_NTCTL,4,2               ## @IDT_NT_NTCTL
	.comm	_IDT_NTCTL_CPEN,4,2             ## @IDT_NTCTL_CPEN
	.comm	_IDT_NT_REQIDCAP,4,2            ## @IDT_NT_REQIDCAP
	.comm	_NTMTBLDATA_REQID,4,2           ## @NTMTBLDATA_REQID
	.comm	_NTMTBLDATA_PART,4,2            ## @NTMTBLDATA_PART
	.comm	_IDT_NTMTBLDATA_VALID,4,2       ## @IDT_NTMTBLDATA_VALID
	.comm	_IDT_NT_NTMTBLADDR,4,2          ## @IDT_NT_NTMTBLADDR
	.comm	_IDT_NT_NTMTBLDATA,4,2          ## @IDT_NT_NTMTBLDATA
	.comm	_IDT_NT_NTGSIGNAL,4,2           ## @IDT_NT_NTGSIGNAL
	.comm	_IDT_NTGSIGNAL_SET,4,2          ## @IDT_NTGSIGNAL_SET
	.comm	_IDT_SW_SEGSIGSTS,4,2           ## @IDT_SW_SEGSIGSTS
	.no_dead_strip	_idt_ntb_local_link_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_ntb_local_link_enable
_idt_ntb_local_link_enable:             ; @idt_ntb_local_link_enable
	.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	x8, _IDT_NT_NTCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDT_NT_NTCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IDT_NTCTL_CPEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDT_NTCTL_CPEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_idt_nt_write
Lloh6:
	adrp	x8, _IDT_NT_REQIDCAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDT_NT_REQIDCAP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_idt_nt_read
	mov	x2, x0
Lloh9:
	adrp	x8, _NTMTBLDATA_REQID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NTMTBLDATA_REQID@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_SET_FIELD
	mov	x20, x0
Lloh12:
	adrp	x8, _NTMTBLDATA_PART@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NTMTBLDATA_PART@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x19]
	mov	w1, #0
	bl	_SET_FIELD
	orr	w8, w0, w20
Lloh15:
	adrp	x9, _IDT_NTMTBLDATA_VALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IDT_NTMTBLDATA_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w20, w8, w9
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh18:
	adrp	x8, _IDT_NT_NTMTBLADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDT_NT_NTMTBLADDR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_idt_nt_write
Lloh21:
	adrp	x8, _IDT_NT_NTMTBLDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDT_NT_NTMTBLDATA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_idt_nt_write
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh24:
	adrp	x8, _IDT_NT_NTGSIGNAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDT_NT_NTGSIGNAL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _IDT_NTGSIGNAL_SET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IDT_NTGSIGNAL_SET@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_idt_nt_write
Lloh30:
	adrp	x8, _IDT_SW_SEGSIGSTS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IDT_SW_SEGSIGSTS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x19
	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
	b	_idt_sw_write
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDT_NT_NTCTL,4,2               ; @IDT_NT_NTCTL
	.comm	_IDT_NTCTL_CPEN,4,2             ; @IDT_NTCTL_CPEN
	.comm	_IDT_NT_REQIDCAP,4,2            ; @IDT_NT_REQIDCAP
	.comm	_NTMTBLDATA_REQID,4,2           ; @NTMTBLDATA_REQID
	.comm	_NTMTBLDATA_PART,4,2            ; @NTMTBLDATA_PART
	.comm	_IDT_NTMTBLDATA_VALID,4,2       ; @IDT_NTMTBLDATA_VALID
	.comm	_IDT_NT_NTMTBLADDR,4,2          ; @IDT_NT_NTMTBLADDR
	.comm	_IDT_NT_NTMTBLDATA,4,2          ; @IDT_NT_NTMTBLDATA
	.comm	_IDT_NT_NTGSIGNAL,4,2           ; @IDT_NT_NTGSIGNAL
	.comm	_IDT_NTGSIGNAL_SET,4,2          ; @IDT_NTGSIGNAL_SET
	.comm	_IDT_SW_SEGSIGSTS,4,2           ; @IDT_SW_SEGSIGSTS
	.no_dead_strip	_idt_ntb_local_link_enable
.subsections_via_symbols
