	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_irq_handler
_smi_irq_handler:                       ## @smi_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %r12
	movq	_MSI_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_smi_read
	movl	%eax, %r14d
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_smi_port_irq
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
LBB0_4:
	addq	$4, %r12
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_smi_port_irq
	addl	%eax, %r15d
LBB0_5:
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_smi_ir_irq
	addl	%eax, %r15d
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
LBB0_1:
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MSI_INT_STATUS,4,2             ## @MSI_INT_STATUS
	.no_dead_strip	_smi_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_irq_handler
_smi_irq_handler:                       ; @smi_irq_handler
	.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
	ldr	x22, [x1, #16]
Lloh0:
	adrp	x8, _MSI_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSI_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_smi_read
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	bl	_smi_port_irq
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	add	x0, x22, #4
	mov	x1, x20
	bl	_smi_port_irq
	add	w21, w21, w0
LBB0_3:
	add	x0, x19, #8
	mov	x1, x20
	bl	_smi_ir_irq
	add	w0, w21, w0
	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	_IRQ_RETVAL
LBB0_4:
	mov	w21, #0
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSI_INT_STATUS,4,2             ; @MSI_INT_STATUS
	.no_dead_strip	_smi_irq_handler
.subsections_via_symbols
