	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_sge_intr_error_handler      ## -- Begin function t1_sge_intr_error_handler
	.p2align	4, 0x90
_t1_sge_intr_error_handler:             ## @t1_sge_intr_error_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	_A_SG_INT_CAUSE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	movq	_F_PACKET_TOO_BIG@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	cmpl	$1, %edx
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%eax, %ebx
	movq	_F_RESPQ_EXHAUSTED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	incl	16(%r15)
LBB0_2:
	movq	_F_RESPQ_OVERFLOW@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	12(%r15)
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_alert
LBB0_4:
	movq	_F_FL_EXHAUSTED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	incl	8(%r15)
	movq	%r15, %rdi
	callq	_freelQs_empty
LBB0_6:
	testl	%ebx, (%r13)
	je	LBB0_8
## %bb.7:
	incl	4(%r15)
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_alert
LBB0_8:
	movq	_F_PACKET_MISMATCH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	incl	(%r15)
	movl	8(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_alert
LBB0_10:
	movq	_SGE_INT_FATAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_t1_fatal_err
LBB0_12:
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_SG_INT_CAUSE,8,3             ## @A_SG_INT_CAUSE
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_F_PACKET_TOO_BIG,4,2           ## @F_PACKET_TOO_BIG
	.comm	_F_RESPQ_EXHAUSTED,4,2          ## @F_RESPQ_EXHAUSTED
	.comm	_F_RESPQ_OVERFLOW,4,2           ## @F_RESPQ_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: SGE response queue overflow\n"

	.comm	_F_FL_EXHAUSTED,4,2             ## @F_FL_EXHAUSTED
L_.str.1:                               ## @.str.1
	.asciz	"%s: SGE max packet size exceeded\n"

	.comm	_F_PACKET_MISMATCH,4,2          ## @F_PACKET_MISMATCH
L_.str.2:                               ## @.str.2
	.asciz	"%s: SGE packet mismatch\n"

	.comm	_SGE_INT_FATAL,4,2              ## @SGE_INT_FATAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1_sge_intr_error_handler      ; -- Begin function t1_sge_intr_error_handler
	.p2align	2
_t1_sge_intr_error_handler:             ; @t1_sge_intr_error_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x19, [x0, #24]
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _A_SG_INT_CAUSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _A_SG_INT_CAUSE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x23, _F_PACKET_TOO_BIG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _F_PACKET_TOO_BIG@GOTPAGEOFF]
	ldr	w10, [x23]
	tst	w9, w8
	mov	w8, #-1
	csinv	w8, w8, w10, eq
	and	w20, w8, w0
Lloh7:
	adrp	x8, _F_RESPQ_EXHAUSTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _F_RESPQ_EXHAUSTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
LBB0_2:
Lloh10:
	adrp	x8, _F_RESPQ_OVERFLOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_RESPQ_OVERFLOW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	ldr	w1, [x19, #8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_alert
LBB0_4:
Lloh15:
	adrp	x8, _F_FL_EXHAUSTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_FL_EXHAUSTED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_freelQs_empty
LBB0_6:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	ldr	w1, [x19, #8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_alert
LBB0_8:
Lloh20:
	adrp	x8, _F_PACKET_MISMATCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _F_PACKET_MISMATCH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w1, [x19, #8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_alert
LBB0_10:
Lloh25:
	adrp	x8, _SGE_INT_FATAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SGE_INT_FATAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_t1_fatal_err
LBB0_12:
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_A_SG_INT_CAUSE,8,3             ; @A_SG_INT_CAUSE
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_F_PACKET_TOO_BIG,4,2           ; @F_PACKET_TOO_BIG
	.comm	_F_RESPQ_EXHAUSTED,4,2          ; @F_RESPQ_EXHAUSTED
	.comm	_F_RESPQ_OVERFLOW,4,2           ; @F_RESPQ_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: SGE response queue overflow\n"

	.comm	_F_FL_EXHAUSTED,4,2             ; @F_FL_EXHAUSTED
l_.str.1:                               ; @.str.1
	.asciz	"%s: SGE max packet size exceeded\n"

	.comm	_F_PACKET_MISMATCH,4,2          ; @F_PACKET_MISMATCH
l_.str.2:                               ; @.str.2
	.asciz	"%s: SGE packet mismatch\n"

	.comm	_SGE_INT_FATAL,4,2              ; @SGE_INT_FATAL
.subsections_via_symbols
