	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_sw_read
_idt_sw_read:                           ## @idt_sw_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_IDT_REG_SW_MAX@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpl	%esi, (%rax)
	jb	LBB0_2
## %bb.1:
	movq	_IDT_REG_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_IDT_NT_GASAADDR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
	movq	_IDT_NT_GASADATA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDT_REG_SW_MAX,4,2             ## @IDT_REG_SW_MAX
	.comm	_IDT_REG_ALIGN,4,2              ## @IDT_REG_ALIGN
	.comm	_IDT_NT_GASAADDR,8,3            ## @IDT_NT_GASAADDR
	.comm	_IDT_NT_GASADATA,8,3            ## @IDT_NT_GASADATA
	.no_dead_strip	_idt_sw_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_sw_read
_idt_sw_read:                           ; @idt_sw_read
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IDT_REG_SW_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDT_REG_SW_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hs	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _IDT_REG_ALIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDT_REG_ALIGN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _IDT_NT_GASAADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IDT_NT_GASAADDR@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_iowrite32
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _IDT_NT_GASADATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IDT_NT_GASADATA@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IDT_REG_SW_MAX,4,2             ; @IDT_REG_SW_MAX
	.comm	_IDT_REG_ALIGN,4,2              ; @IDT_REG_ALIGN
	.comm	_IDT_NT_GASAADDR,8,3            ; @IDT_NT_GASAADDR
	.comm	_IDT_NT_GASADATA,8,3            ; @IDT_NT_GASADATA
	.no_dead_strip	_idt_sw_read
.subsections_via_symbols
