	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_idt_gate                   ## -- Begin function set_idt_gate
	.p2align	4, 0x90
_set_idt_gate:                          ## @set_idt_gate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_low_16
	movq	_idt@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movslq	%r14d, %rdx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rbx
	movl	%eax, 20(%rcx,%rbx)
	movq	_KERNEL_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx,%rbx)
	movq	$0, 8(%rcx,%rbx)
	movl	$142, (%rcx,%rbx)
	movl	%r12d, %edi
	callq	_high_16
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idt,8,3                        ## @idt
	.comm	_KERNEL_CS,4,2                  ## @KERNEL_CS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_idt_gate                   ; -- Begin function set_idt_gate
	.p2align	2
_set_idt_gate:                          ; @set_idt_gate
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_low_16
Lloh0:
	adrp	x21, _idt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _idt@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w22, #24
	smaddl	x8, w20, w22, x8
Lloh2:
	adrp	x9, _KERNEL_CS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KERNEL_CS@GOTPAGEOFF]
	str	w0, [x8, #20]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	str	xzr, [x8, #8]
	mov	w9, #142
	str	w9, [x8]
	mov	x0, x19
	bl	_high_16
	ldr	x8, [x21]
	smaddl	x8, w20, w22, x8
	str	w0, [x8, #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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_idt,8,3                        ; @idt
	.comm	_KERNEL_CS,4,2                  ; @KERNEL_CS
.subsections_via_symbols
