	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i801_isr
_i801_isr:                              ## @i801_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
	movl	12(%rsi), %edi
	movq	_SMBPCISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_word
	movq	_SMBPCISTS_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_1
## %bb.2:
	movq	_FEATURE_HOST_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_SMBSLVSTS
	movl	%eax, %edi
	callq	_inb_p
	movq	_SMBSLVSTS_HST_NTFY_STS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_i801_host_notify_isr
	jmp	LBB0_11
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	%r14, %rdi
	callq	_SMBHSTSTS
	movl	%eax, %edi
	callq	_inb_p
	movl	%eax, %r15d
	movq	_SMBHSTSTS_BYTE_DONE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_i801_isr_byte_done
LBB0_7:
	movq	_SMBHSTSTS_INTR@GOTPCREL(%rip), %rax
	movq	_STATUS_ERROR_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	andl	%r15d, %ebx
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_SMBHSTSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb_p
	movl	%ebx, 4(%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_wake_up
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBPCISTS,4,2                  ## @SMBPCISTS
	.comm	_SMBPCISTS_INTS,4,2             ## @SMBPCISTS_INTS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_FEATURE_HOST_NOTIFY,4,2        ## @FEATURE_HOST_NOTIFY
	.comm	_SMBSLVSTS_HST_NTFY_STS,4,2     ## @SMBSLVSTS_HST_NTFY_STS
	.comm	_SMBHSTSTS_BYTE_DONE,4,2        ## @SMBHSTSTS_BYTE_DONE
	.comm	_SMBHSTSTS_INTR,4,2             ## @SMBHSTSTS_INTR
	.comm	_STATUS_ERROR_FLAGS,4,2         ## @STATUS_ERROR_FLAGS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_i801_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i801_isr
_i801_isr:                              ; @i801_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	w0, [x1, #12]
Lloh0:
	adrp	x8, _SMBPCISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMBPCISTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _SMBPCISTS_INTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMBPCISTS_INTS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _FEATURE_HOST_NOTIFY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FEATURE_HOST_NOTIFY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_SMBSLVSTS
	bl	_inb_p
Lloh9:
	adrp	x8, _SMBSLVSTS_HST_NTFY_STS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMBSLVSTS_HST_NTFY_STS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_i801_host_notify_isr
	b	LBB0_11
LBB0_4:
Lloh12:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_SMBHSTSTS
	bl	_inb_p
	mov	x20, x0
Lloh14:
	adrp	x8, _SMBHSTSTS_BYTE_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMBHSTSTS_BYTE_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_i801_isr_byte_done
LBB0_7:
Lloh17:
	adrp	x8, _SMBHSTSTS_INTR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMBHSTSTS_INTR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _STATUS_ERROR_FLAGS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _STATUS_ERROR_FLAGS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ands	w20, w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_SMBHSTSTS
	mov	x1, x0
	mov	x0, x20
	bl	_outb_p
	str	w20, [x19, #4]
	add	x0, x19, #8
	bl	_wake_up
LBB0_9:
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBPCISTS,4,2                  ; @SMBPCISTS
	.comm	_SMBPCISTS_INTS,4,2             ; @SMBPCISTS_INTS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_FEATURE_HOST_NOTIFY,4,2        ; @FEATURE_HOST_NOTIFY
	.comm	_SMBSLVSTS_HST_NTFY_STS,4,2     ; @SMBSLVSTS_HST_NTFY_STS
	.comm	_SMBHSTSTS_BYTE_DONE,4,2        ; @SMBHSTSTS_BYTE_DONE
	.comm	_SMBHSTSTS_INTR,4,2             ; @SMBHSTSTS_INTR
	.comm	_STATUS_ERROR_FLAGS,4,2         ; @STATUS_ERROR_FLAGS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_i801_isr
.subsections_via_symbols
