	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_thread_isr
_idt_thread_isr:                        ## @idt_thread_isr
	.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	%rsi, %r14
	movq	_IDT_NT_NTINTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_idt_nt_read
	movl	%eax, %ebx
	movq	_IDT_NTINTSTS_MSG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_idt_msg_isr
	movl	$1, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	_IDT_NTINTSTS_DBELL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_idt_db_isr
	movl	$1, %r15d
LBB0_5:
	movq	_IDT_NTINTSTS_SEVENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_idt_se_isr
	movl	$1, %r15d
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.9:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDT_NT_NTINTSTS,4,2            ## @IDT_NT_NTINTSTS
	.comm	_IDT_NTINTSTS_MSG,4,2           ## @IDT_NTINTSTS_MSG
	.comm	_IDT_NTINTSTS_DBELL,4,2         ## @IDT_NTINTSTS_DBELL
	.comm	_IDT_NTINTSTS_SEVENT,4,2        ## @IDT_NTINTSTS_SEVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IDT IRQs 0x%08x handled"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_idt_thread_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_thread_isr
_idt_thread_isr:                        ; @idt_thread_isr
	.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
Lloh0:
	adrp	x8, _IDT_NT_NTINTSTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDT_NT_NTINTSTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_idt_nt_read
	mov	x20, x0
Lloh3:
	adrp	x8, _IDT_NTINTSTS_MSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDT_NTINTSTS_MSG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_idt_msg_isr
	mov	w21, #1
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh6:
	adrp	x8, _IDT_NTINTSTS_DBELL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDT_NTINTSTS_DBELL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_idt_db_isr
	mov	w21, #1
LBB0_5:
Lloh9:
	adrp	x8, _IDT_NTINTSTS_SEVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDT_NTINTSTS_SEVENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_idt_se_isr
	mov	w21, #1
LBB0_7:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	adrp	x9, _IRQ_NONE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IRQ_NONE@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IDT_NT_NTINTSTS,4,2            ; @IDT_NT_NTINTSTS
	.comm	_IDT_NTINTSTS_MSG,4,2           ; @IDT_NTINTSTS_MSG
	.comm	_IDT_NTINTSTS_DBELL,4,2         ; @IDT_NTINTSTS_DBELL
	.comm	_IDT_NTINTSTS_SEVENT,4,2        ; @IDT_NTINTSTS_SEVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IDT IRQs 0x%08x handled"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_idt_thread_isr
.subsections_via_symbols
