	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mace_interrupt
_mace_interrupt:                        ## @mace_interrupt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	%rsi, %rdi
	callq	_netdev_priv
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movl	(%r14), %ebx
	cmpq	$0, 72(%rax)
	je	LBB0_6
## %bb.2:
	movq	_AM2150_MACE_BASE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	_MACE_IR@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	addq	(%r15), %rbx
	movq	%rax, %r15
	movq	_MACE_IMR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inb
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_netdev_notice
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_4:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_MACE_MAX_IR_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_50
## %bb.7:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_AM2150_MACE_BASE@GOTPCREL(%rip), %rax
	movq	_MACE_IMR_DEFAULT@GOTPCREL(%rip), %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	_MACE_IR@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movq	%rax, %r13
	movl	(%rbx), %eax
	notl	%eax
	testl	%eax, %r13d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_MAX_IR_ITERATIONS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_MACE_IR_RCVINT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_MAX_RX_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mace_rx
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_XMTINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r13d, %ecx
	je	LBB0_34
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_AM2150_MACE_BASE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	movq	_MACE_FIFOFC@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movq	_MACE_FIFOFC_XMTFC@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%ecx, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	movq	_AM2150_XMT_SKIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movl	$255, %edi
	callq	_outb
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	movq	_MACE_XMTRC@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movq	_MACE_XMTRC_EXDEF@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%ecx, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	60(%r12)
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTRC_XMTRC@GOTPCREL(%rip), %rcx
	andb	(%rcx), %al
	addb	%al, (%r12)
	movq	_AM2150_MACE_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	_MACE_XMTFS@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movq	_MACE_XMTFS_XMTSV@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%ecx, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_MACE_IMR_DEFAULT@GOTPCREL(%rip), %rbx
	je	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	56(%r12)
	notl	%ecx
	testb	%cl, %al
	je	LBB0_33
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_UFLO@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	52(%r12)
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_LCOL@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	48(%r12)
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_MORE@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	44(%r12)
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_ONE@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	40(%r12)
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_DEFER@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	36(%r12)
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_LCAR@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	32(%r12)
LBB0_31:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_XMTFS_RTRY@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	28(%r12)
LBB0_33:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	4(%r14)
	incl	64(%r12)
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	_MACE_IR_XMTINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_34:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %eax
	movq	_MACE_IR_RCVINT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	notl	%edx
	testl	%r13d, %edx
	je	LBB0_47
## %bb.35:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_JAB@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	24(%r12)
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_BABL@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	20(%r12)
LBB0_39:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_CERR@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	16(%r12)
LBB0_41:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_RCVCCO@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	12(%r12)
LBB0_43:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_RNTPCO@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	8(%r12)
LBB0_45:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MACE_IR_MPCO@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	4(%r12)
LBB0_47:                                ##   in Loop: Header=BB0_8 Depth=1
	notl	%eax
	testl	%r13d, %eax
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	movl	%eax, %r15d
	movq	_AM2150_MACE_BASE@GOTPCREL(%rip), %rax
	jne	LBB0_8
LBB0_49:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_50:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MACE_MAX_IR_ITERATIONS,4,2     ## @MACE_MAX_IR_ITERATIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mace_interrupt(): irq 0x%X for unknown device.\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Interrupt with tx_irq_disabled"

L_.str.3:                               ## @.str.3
	.asciz	"%s [isr=%02X, imr=%02X]\n"

	.comm	_AM2150_MACE_BASE,8,3           ## @AM2150_MACE_BASE
	.comm	_MACE_IR,8,3                    ## @MACE_IR
	.comm	_MACE_IMR,8,3                   ## @MACE_IMR
L_.str.4:                               ## @.str.4
	.asciz	"interrupt from dead card\n"

	.comm	_MACE_IMR_DEFAULT,4,2           ## @MACE_IMR_DEFAULT
L_.str.5:                               ## @.str.5
	.asciz	"mace_interrupt: irq 0x%X status 0x%X.\n"

	.comm	_MACE_IR_RCVINT,4,2             ## @MACE_IR_RCVINT
	.comm	_MACE_MAX_RX_ITERATIONS,4,2     ## @MACE_MAX_RX_ITERATIONS
	.comm	_MACE_IR_XMTINT,4,2             ## @MACE_IR_XMTINT
	.comm	_MACE_FIFOFC,8,3                ## @MACE_FIFOFC
	.comm	_MACE_FIFOFC_XMTFC,1,0          ## @MACE_FIFOFC_XMTFC
	.comm	_AM2150_XMT_SKIP,8,3            ## @AM2150_XMT_SKIP
	.comm	_MACE_XMTRC,8,3                 ## @MACE_XMTRC
	.comm	_MACE_XMTRC_EXDEF,1,0           ## @MACE_XMTRC_EXDEF
	.comm	_MACE_XMTRC_XMTRC,1,0           ## @MACE_XMTRC_XMTRC
	.comm	_MACE_XMTFS,8,3                 ## @MACE_XMTFS
	.comm	_MACE_XMTFS_XMTSV,1,0           ## @MACE_XMTFS_XMTSV
	.comm	_MACE_XMTFS_UFLO,1,0            ## @MACE_XMTFS_UFLO
	.comm	_MACE_XMTFS_LCOL,1,0            ## @MACE_XMTFS_LCOL
	.comm	_MACE_XMTFS_MORE,1,0            ## @MACE_XMTFS_MORE
	.comm	_MACE_XMTFS_ONE,1,0             ## @MACE_XMTFS_ONE
	.comm	_MACE_XMTFS_DEFER,1,0           ## @MACE_XMTFS_DEFER
	.comm	_MACE_XMTFS_LCAR,1,0            ## @MACE_XMTFS_LCAR
	.comm	_MACE_XMTFS_RTRY,1,0            ## @MACE_XMTFS_RTRY
	.comm	_MACE_IR_JAB,4,2                ## @MACE_IR_JAB
	.comm	_MACE_IR_BABL,4,2               ## @MACE_IR_BABL
	.comm	_MACE_IR_CERR,4,2               ## @MACE_IR_CERR
	.comm	_MACE_IR_RCVCCO,4,2             ## @MACE_IR_RCVCCO
	.comm	_MACE_IR_RNTPCO,4,2             ## @MACE_IR_RNTPCO
	.comm	_MACE_IR_MPCO,4,2               ## @MACE_IR_MPCO
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mace_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mace_interrupt
_mace_interrupt:                        ; @mace_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	cbz	x19, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w24, [x19]
	ldr	x8, [x0, #72]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x21, _AM2150_MACE_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AM2150_MACE_BASE@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _MACE_IR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MACE_IR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x8, x24
	add	x0, x8, x9
	bl	_inb
	mov	x20, x0
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _MACE_IMR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MACE_IMR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x8, x8, x24
	add	x0, x8, x9
	bl	_inb
	mov	x4, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_netdev_notice
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
LBB0_4:
Lloh14:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh16:
	adrp	x8, _MACE_MAX_IR_ITERATIONS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MACE_MAX_IR_ITERATIONS@GOTPAGEOFF]
Lloh18:
	ldr	w27, [x8]
	mov	x0, x19
	bl	_netif_device_present
	cbz	w0, LBB0_47
; %bb.7:
Lloh19:
	adrp	x28, _AM2150_MACE_BASE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _AM2150_MACE_BASE@GOTPAGEOFF]
Lloh21:
	adrp	x22, _MACE_IMR_DEFAULT@GOTPAGE
Lloh22:
	ldr	x22, [x22, _MACE_IMR_DEFAULT@GOTPAGEOFF]
Lloh23:
	adrp	x26, _MACE_IR_RCVINT@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MACE_IR_RCVINT@GOTPAGEOFF]
Lloh25:
	adrp	x25, _MACE_IR_XMTINT@GOTPAGE
Lloh26:
	ldr	x25, [x25, _MACE_IR_XMTINT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bic	w8, w23, w8
	cmp	w8, #0
	ccmp	w27, #1, #4, ne
	sub	w27, w27, #1
	b.eq	LBB0_48
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
Lloh27:
	adrp	x9, _MACE_IR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MACE_IR@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x8, x8, x24
	add	x0, x8, x9
	bl	_inb
	mov	x23, x0
	ldr	w8, [x22]
	bic	w8, w23, w8
Lloh30:
	adrp	x9, _MACE_MAX_IR_ITERATIONS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MACE_MAX_IR_ITERATIONS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w27, w9, #0, eq
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x23
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	ldr	w8, [x26]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh35:
	adrp	x8, _MACE_MAX_RX_ITERATIONS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MACE_MAX_RX_ITERATIONS@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mace_rx
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x25]
	tst	w9, w23
	b.eq	LBB0_34
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28]
Lloh38:
	adrp	x9, _MACE_FIFOFC@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MACE_FIFOFC@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x8, x8, x24
	add	x0, x8, x9
	bl	_inb
Lloh41:
	adrp	x8, _MACE_FIFOFC_XMTFC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MACE_FIFOFC_XMTFC@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w0, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh43:
	adrp	x8, _AM2150_XMT_SKIP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AM2150_XMT_SKIP@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	w0, #255
	bl	_outb
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28]
Lloh46:
	adrp	x9, _MACE_XMTRC@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MACE_XMTRC@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x8, x8, x24
	add	x0, x8, x9
	bl	_inb
Lloh49:
	adrp	x8, _MACE_XMTRC_EXDEF@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MACE_XMTRC_EXDEF@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w0, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #60]
	add	w8, w8, #1
	str	w8, [x21, #60]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh51:
	adrp	x8, _MACE_XMTRC_XMTRC@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MACE_XMTRC_XMTRC@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldrb	w9, [x21]
	and	w8, w8, w0
	add	w8, w8, w9
	strb	w8, [x21]
	ldr	x8, [x28]
Lloh53:
	adrp	x9, _MACE_XMTFS@GOTPAGE
Lloh54:
	ldr	x9, [x9, _MACE_XMTFS@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	add	x8, x8, x24
	add	x0, x8, x9
	bl	_inb
Lloh56:
	adrp	x8, _MACE_XMTFS_XMTSV@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MACE_XMTFS_XMTSV@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w0, w8
	b.eq	LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	bic	w8, w0, w8
	ldr	w9, [x21, #56]
	add	w9, w9, #1
	str	w9, [x21, #56]
	tst	w8, #0xff
	b.eq	LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh58:
	adrp	x8, _MACE_XMTFS_UFLO@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MACE_XMTFS_UFLO@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #52]
	add	w8, w8, #1
	str	w8, [x21, #52]
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh60:
	adrp	x8, _MACE_XMTFS_LCOL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MACE_XMTFS_LCOL@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #48]
	add	w8, w8, #1
	str	w8, [x21, #48]
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh62:
	adrp	x8, _MACE_XMTFS_MORE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MACE_XMTFS_MORE@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #44]
	add	w8, w8, #1
	str	w8, [x21, #44]
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh64:
	adrp	x8, _MACE_XMTFS_ONE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MACE_XMTFS_ONE@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #40]
	add	w8, w8, #1
	str	w8, [x21, #40]
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh66:
	adrp	x8, _MACE_XMTFS_DEFER@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MACE_XMTFS_DEFER@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #36]
	add	w8, w8, #1
	str	w8, [x21, #36]
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh68:
	adrp	x8, _MACE_XMTFS_LCAR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _MACE_XMTFS_LCAR@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #32]
	add	w8, w8, #1
	str	w8, [x21, #32]
LBB0_31:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh70:
	adrp	x8, _MACE_XMTFS_RTRY@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MACE_XMTFS_RTRY@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #28]
	add	w8, w8, #1
	str	w8, [x21, #28]
LBB0_33:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x21, #64]
	add	w8, w8, #1
	str	w8, [x21, #64]
	mov	x0, x19
	bl	_netif_wake_queue
	ldr	w9, [x25]
LBB0_34:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x22]
	ldr	w10, [x26]
	orr	w10, w10, w8
	orr	w9, w10, w9
	bics	wzr, w23, w9
	b.eq	LBB0_8
; %bb.35:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh72:
	adrp	x9, _MACE_IR_JAB@GOTPAGE
Lloh73:
	ldr	x9, [x9, _MACE_IR_JAB@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21, #24]
	add	w9, w9, #1
	str	w9, [x21, #24]
LBB0_37:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh75:
	adrp	x9, _MACE_IR_BABL@GOTPAGE
Lloh76:
	ldr	x9, [x9, _MACE_IR_BABL@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21, #20]
	add	w9, w9, #1
	str	w9, [x21, #20]
LBB0_39:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh78:
	adrp	x9, _MACE_IR_CERR@GOTPAGE
Lloh79:
	ldr	x9, [x9, _MACE_IR_CERR@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21, #16]
	add	w9, w9, #1
	str	w9, [x21, #16]
LBB0_41:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh81:
	adrp	x9, _MACE_IR_RCVCCO@GOTPAGE
Lloh82:
	ldr	x9, [x9, _MACE_IR_RCVCCO@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21, #12]
	add	w9, w9, #1
	str	w9, [x21, #12]
LBB0_43:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh84:
	adrp	x9, _MACE_IR_RNTPCO@GOTPAGE
Lloh85:
	ldr	x9, [x9, _MACE_IR_RNTPCO@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21, #8]
	add	w9, w9, #1
	str	w9, [x21, #8]
LBB0_45:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh87:
	adrp	x9, _MACE_IR_MPCO@GOTPAGE
Lloh88:
	ldr	x9, [x9, _MACE_IR_MPCO@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_8
; %bb.46:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x21, #4]
	add	w9, w9, #1
	str	w9, [x21, #4]
	b	LBB0_8
LBB0_47:
Lloh90:
	adrp	x1, l_.str.4@PAGE
Lloh91:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	b	LBB0_4
LBB0_48:
Lloh92:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.comm	_MACE_MAX_IR_ITERATIONS,4,2     ; @MACE_MAX_IR_ITERATIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mace_interrupt(): irq 0x%X for unknown device.\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Interrupt with tx_irq_disabled"

l_.str.3:                               ; @.str.3
	.asciz	"%s [isr=%02X, imr=%02X]\n"

	.comm	_AM2150_MACE_BASE,8,3           ; @AM2150_MACE_BASE
	.comm	_MACE_IR,8,3                    ; @MACE_IR
	.comm	_MACE_IMR,8,3                   ; @MACE_IMR
l_.str.4:                               ; @.str.4
	.asciz	"interrupt from dead card\n"

	.comm	_MACE_IMR_DEFAULT,4,2           ; @MACE_IMR_DEFAULT
l_.str.5:                               ; @.str.5
	.asciz	"mace_interrupt: irq 0x%X status 0x%X.\n"

	.comm	_MACE_IR_RCVINT,4,2             ; @MACE_IR_RCVINT
	.comm	_MACE_MAX_RX_ITERATIONS,4,2     ; @MACE_MAX_RX_ITERATIONS
	.comm	_MACE_IR_XMTINT,4,2             ; @MACE_IR_XMTINT
	.comm	_MACE_FIFOFC,8,3                ; @MACE_FIFOFC
	.comm	_MACE_FIFOFC_XMTFC,1,0          ; @MACE_FIFOFC_XMTFC
	.comm	_AM2150_XMT_SKIP,8,3            ; @AM2150_XMT_SKIP
	.comm	_MACE_XMTRC,8,3                 ; @MACE_XMTRC
	.comm	_MACE_XMTRC_EXDEF,1,0           ; @MACE_XMTRC_EXDEF
	.comm	_MACE_XMTRC_XMTRC,1,0           ; @MACE_XMTRC_XMTRC
	.comm	_MACE_XMTFS,8,3                 ; @MACE_XMTFS
	.comm	_MACE_XMTFS_XMTSV,1,0           ; @MACE_XMTFS_XMTSV
	.comm	_MACE_XMTFS_UFLO,1,0            ; @MACE_XMTFS_UFLO
	.comm	_MACE_XMTFS_LCOL,1,0            ; @MACE_XMTFS_LCOL
	.comm	_MACE_XMTFS_MORE,1,0            ; @MACE_XMTFS_MORE
	.comm	_MACE_XMTFS_ONE,1,0             ; @MACE_XMTFS_ONE
	.comm	_MACE_XMTFS_DEFER,1,0           ; @MACE_XMTFS_DEFER
	.comm	_MACE_XMTFS_LCAR,1,0            ; @MACE_XMTFS_LCAR
	.comm	_MACE_XMTFS_RTRY,1,0            ; @MACE_XMTFS_RTRY
	.comm	_MACE_IR_JAB,4,2                ; @MACE_IR_JAB
	.comm	_MACE_IR_BABL,4,2               ; @MACE_IR_BABL
	.comm	_MACE_IR_CERR,4,2               ; @MACE_IR_CERR
	.comm	_MACE_IR_RCVCCO,4,2             ; @MACE_IR_RCVCCO
	.comm	_MACE_IR_RNTPCO,4,2             ; @MACE_IR_RNTPCO
	.comm	_MACE_IR_MPCO,4,2               ; @MACE_IR_MPCO
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mace_interrupt
.subsections_via_symbols
