	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lance_interrupt
_lance_interrupt:                       ## @lance_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %r12
	movq	_LE_CSR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_writereg
	movl	4(%r12), %ebx
	addq	$4, %r12
	movq	_LE_C0_INTR@GOTPCREL(%rip), %rax
	movq	_LE_C0_TINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_LE_C0_RINT@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	andl	%ebx, %esi
	movq	%r12, %rdi
	callq	_writereg
	movq	_LE_C0_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %esi
	je	LBB0_2
## %bb.1:
	movq	_LE_C0_BABL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_LE_C0_MISS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_LE_C0_CERR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_LE_C0_MERR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_writereg
LBB0_2:
	testl	%ebx, (%r13)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_lance_rx
LBB0_4:
	movq	_LE_C0_TINT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_lance_tx
LBB0_6:
	movq	_LE_C0_BABL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	incl	8(%r14)
LBB0_8:
	movq	_LE_C0_MISS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	incl	4(%r14)
LBB0_10:
	movq	_LE_C0_MERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_printk
	movq	_LE_C0_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_writereg
	movq	%r14, %rdi
	callq	_lance_init_ring
	movq	%r15, %rdi
	callq	_load_csrs
	movq	%r15, %rdi
	callq	_init_restart_lance
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_12:
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_writereg
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_writereg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_CSR0,4,2                    ## @LE_CSR0
	.comm	_LE_C0_INTR,4,2                 ## @LE_C0_INTR
	.comm	_LE_C0_TINT,4,2                 ## @LE_C0_TINT
	.comm	_LE_C0_RINT,4,2                 ## @LE_C0_RINT
	.comm	_LE_C0_ERR,4,2                  ## @LE_C0_ERR
	.comm	_LE_C0_BABL,4,2                 ## @LE_C0_BABL
	.comm	_LE_C0_MISS,4,2                 ## @LE_C0_MISS
	.comm	_LE_C0_CERR,4,2                 ## @LE_C0_CERR
	.comm	_LE_C0_MERR,4,2                 ## @LE_C0_MERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Memory error, status %04x\n"

	.comm	_LE_C0_STOP,4,2                 ## @LE_C0_STOP
	.comm	_LE_C0_INEA,4,2                 ## @LE_C0_INEA
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_lance_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lance_interrupt
_lance_interrupt:                       ; @lance_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _LE_CSR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_CSR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_writereg
	ldr	w22, [x19, #4]!
Lloh3:
	adrp	x8, _LE_C0_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LE_C0_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x25, _LE_C0_TINT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LE_C0_TINT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh8:
	adrp	x27, _LE_C0_RINT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _LE_C0_RINT@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w9
	and	w1, w8, w22
	mov	x0, x19
	bl	_writereg
Lloh10:
	adrp	x8, _LE_C0_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LE_C0_ERR@GOTPAGEOFF]
Lloh12:
	adrp	x26, _LE_C0_BABL@GOTPAGE
Lloh13:
	ldr	x26, [x26, _LE_C0_BABL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x24, _LE_C0_MISS@GOTPAGE
Lloh16:
	ldr	x24, [x24, _LE_C0_MISS@GOTPAGEOFF]
Lloh17:
	adrp	x23, _LE_C0_MERR@GOTPAGE
Lloh18:
	ldr	x23, [x23, _LE_C0_MERR@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _LE_C0_CERR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LE_C0_CERR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_writereg
LBB0_2:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_lance_rx
LBB0_4:
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_lance_tx
LBB0_6:
	ldr	w8, [x26]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_8:
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
LBB0_10:
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x20]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_printk
Lloh24:
	adrp	x8, _LE_C0_STOP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LE_C0_STOP@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_writereg
	mov	x0, x20
	bl	_lance_init_ring
	mov	x0, x21
	bl	_load_csrs
	mov	x0, x21
	bl	_init_restart_lance
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_12:
Lloh27:
	adrp	x20, _LE_C0_INEA@GOTPAGE
Lloh28:
	ldr	x20, [x20, _LE_C0_INEA@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_writereg
	ldr	w1, [x20]
	mov	x0, x19
	bl	_writereg
Lloh29:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_CSR0,4,2                    ; @LE_CSR0
	.comm	_LE_C0_INTR,4,2                 ; @LE_C0_INTR
	.comm	_LE_C0_TINT,4,2                 ; @LE_C0_TINT
	.comm	_LE_C0_RINT,4,2                 ; @LE_C0_RINT
	.comm	_LE_C0_ERR,4,2                  ; @LE_C0_ERR
	.comm	_LE_C0_BABL,4,2                 ; @LE_C0_BABL
	.comm	_LE_C0_MISS,4,2                 ; @LE_C0_MISS
	.comm	_LE_C0_CERR,4,2                 ; @LE_C0_CERR
	.comm	_LE_C0_MERR,4,2                 ; @LE_C0_MERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Memory error, status %04x\n"

	.comm	_LE_C0_STOP,4,2                 ; @LE_C0_STOP
	.comm	_LE_C0_INEA,4,2                 ; @LE_C0_INEA
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_lance_interrupt
.subsections_via_symbols
