	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irq_handler
_irq_handler:                           ## @irq_handler
	.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	%edi, %ebx
	movq	_irqbits_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	_irqbits@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	btl	%ebx, %edi
	jb	LBB0_5
## %bb.1:
	movq	_vm86_irqs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rsi
	shlq	$4, %rsi
	cmpl	$0, (%rcx,%rsi)
	je	LBB0_5
## %bb.2:
	orl	%eax, %edi
	movl	%edi, (%rdx)
	movq	8(%rcx,%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	addq	%rsi, %rcx
	movl	(%rcx), %esi
	movl	$1, %edx
	callq	_send_sig
LBB0_4:
	movl	%ebx, %edi
	callq	_disable_irq_nosync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
LBB0_5:
	movq	_irqbits_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_irqbits_lock,4,2               ## @irqbits_lock
	.comm	_irqbits,4,2                    ## @irqbits
	.comm	_vm86_irqs,8,3                  ## @vm86_irqs
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irq_handler
_irq_handler:                           ; @irq_handler
	.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, x0
Lloh0:
	adrp	x0, _irqbits_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _irqbits_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	mov	w8, #1
	lsl	w9, w8, w19
Lloh2:
	adrp	x10, _irqbits@GOTPAGE
Lloh3:
	ldr	x10, [x10, _irqbits@GOTPAGEOFF]
	ldr	w11, [x10]
	tst	w11, w9
	b.eq	LBB0_2
LBB0_1:
Lloh4:
	adrp	x19, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _vm86_irqs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vm86_irqs@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x8]
	add	x8, x12, w19, sxtw #4
	ldr	w13, [x8]
	cbz	w13, LBB0_1
; %bb.3:
	sxtw	x13, w19
	orr	w9, w11, w9
	str	w9, [x10]
	add	x9, x12, x13, lsl #4
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_send_sig
LBB0_5:
	mov	x0, x19
	bl	_disable_irq_nosync
Lloh9:
	adrp	x19, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x19, [x19, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_6:
Lloh11:
	adrp	x0, _irqbits_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _irqbits_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_irqbits_lock,4,2               ; @irqbits_lock
	.comm	_irqbits,4,2                    ; @irqbits
	.comm	_vm86_irqs,8,3                  ; @vm86_irqs
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_irq_handler
.subsections_via_symbols
