	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_espi_intr_handler           ## -- Begin function t1_espi_intr_handler
	.p2align	4, 0x90
_t1_espi_intr_handler:                  ## @t1_espi_intr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_A_ESPI_INTR_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_F_DIP4ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	incl	28(%r14)
LBB0_2:
	movq	_F_RXDROP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	24(%r14)
LBB0_4:
	movq	_F_TXDROP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	incl	20(%r14)
LBB0_6:
	movq	_F_RXOVERFLOW@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	incl	16(%r14)
LBB0_8:
	movq	_F_RAMPARITYERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	incl	12(%r14)
LBB0_10:
	movq	_F_DIP2PARITYERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	incl	8(%r14)
	movq	(%r14), %rax
	movq	_A_ESPI_DIP2_ERR_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_readl
LBB0_12:
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.14:
	movq	(%r14), %rdi
	callq	_t1_is_T1B
	testq	%rax, %rax
	movl	$1, %edi
	cmovel	%ebx, %edi
	jmp	LBB0_15
LBB0_13:
	xorl	%edi, %edi
LBB0_15:
	movq	(%r14), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	callq	_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_ESPI_INTR_STATUS,8,3         ## @A_ESPI_INTR_STATUS
	.comm	_F_DIP4ERR,4,2                  ## @F_DIP4ERR
	.comm	_F_RXDROP,4,2                   ## @F_RXDROP
	.comm	_F_TXDROP,4,2                   ## @F_TXDROP
	.comm	_F_RXOVERFLOW,4,2               ## @F_RXOVERFLOW
	.comm	_F_RAMPARITYERR,4,2             ## @F_RAMPARITYERR
	.comm	_F_DIP2PARITYERR,4,2            ## @F_DIP2PARITYERR
	.comm	_A_ESPI_DIP2_ERR_COUNT,8,3      ## @A_ESPI_DIP2_ERR_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_espi_intr_handler           ; -- Begin function t1_espi_intr_handler
	.p2align	2
_t1_espi_intr_handler:                  ; @t1_espi_intr_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, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _A_ESPI_INTR_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _A_ESPI_INTR_STATUS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh2:
	adrp	x8, _F_DIP4ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_DIP4ERR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_2:
Lloh5:
	adrp	x8, _F_RXDROP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_RXDROP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_4:
Lloh8:
	adrp	x8, _F_TXDROP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_TXDROP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_6:
Lloh11:
	adrp	x8, _F_RXOVERFLOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_RXOVERFLOW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_8:
Lloh14:
	adrp	x8, _F_RAMPARITYERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _F_RAMPARITYERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_10:
Lloh17:
	adrp	x8, _F_DIP2PARITYERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _F_DIP2PARITYERR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _A_ESPI_DIP2_ERR_COUNT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _A_ESPI_DIP2_ERR_COUNT@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
LBB0_12:
	cbz	w20, LBB0_14
; %bb.13:
	ldr	x0, [x19]
	bl	_t1_is_T1B
	cmp	x0, #0
	csinc	w0, w20, wzr, eq
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_A_ESPI_INTR_STATUS,8,3         ; @A_ESPI_INTR_STATUS
	.comm	_F_DIP4ERR,4,2                  ; @F_DIP4ERR
	.comm	_F_RXDROP,4,2                   ; @F_RXDROP
	.comm	_F_TXDROP,4,2                   ; @F_TXDROP
	.comm	_F_RXOVERFLOW,4,2               ; @F_RXOVERFLOW
	.comm	_F_RAMPARITYERR,4,2             ; @F_RAMPARITYERR
	.comm	_F_DIP2PARITYERR,4,2            ; @F_DIP2PARITYERR
	.comm	_A_ESPI_DIP2_ERR_COUNT,8,3      ; @A_ESPI_DIP2_ERR_COUNT
.subsections_via_symbols
