	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fjn_interrupt
_fjn_interrupt:                         ## @fjn_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, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movq	_TX_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outw
	movl	$1, %edi
	callq	_udelay
	movq	_TX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r12d
	movq	_RX_STATUS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r13d
	movq	_TX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movw	%r12w, -42(%rbp)                ## 2-byte Spill
	movzwl	%r12w, %r12d
	movl	%r12d, %edi
	callq	_outb
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movzwl	%r13w, %r13d
	movl	%r13d, %edi
	callq	_outb
	movzwl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	testw	%r13w, %r13w
	je	LBB0_1
LBB0_2:
	movq	%r15, %rdi
	callq	_fjn_rx
	jmp	LBB0_3
LBB0_1:
	movq	_RX_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	_F_BUF_EMP@GOTPCREL(%rip), %rcx
	testw	%ax, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	_F_TMT_RDY@GOTPCREL(%rip), %rax
	movzwl	-42(%rbp), %ecx                 ## 2-byte Folded Reload
	testw	%cx, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.4:
	movzwl	(%r14), %eax
	addw	%ax, 6(%r15)
	movw	$0, (%r14)
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_DO_TX@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movq	_TX_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	movzwl	%ax, %edi
	callq	_outb
	movzwl	4(%r14), %eax
	movw	%ax, (%r14)
	movl	$0, 4(%r14)
	movq	$0, 24(%r14)
	movq	%r15, %rdi
	callq	_netif_trans_update
	jmp	LBB0_7
LBB0_6:
	movq	$0, 16(%r14)
LBB0_7:
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_8:
	movzwl	4(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_D_TX_INTR@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	movq	_TX_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	_D_RX_INTR@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	movq	_RX_INTR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_outb
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	addq	$8200, %rsi                     ## imm = 0x2008
	movl	$1, %edi
	callq	_writeb
	movl	$8328, %esi                     ## imm = 0x2088
	addq	8(%r14), %rsi
	movl	$9, %edi
	callq	_writeb
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_INTR,8,3                    ## @TX_INTR
	.comm	_TX_STATUS,8,3                  ## @TX_STATUS
	.comm	_RX_STATUS,8,3                  ## @RX_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: interrupt, rx_status %02x.\n"

L_.str.1:                               ## @.str.1
	.asciz	"               tx_status %02x.\n"

	.comm	_RX_MODE,8,3                    ## @RX_MODE
	.comm	_F_BUF_EMP,2,1                  ## @F_BUF_EMP
	.comm	_F_TMT_RDY,2,1                  ## @F_TMT_RDY
	.comm	_DO_TX,2,1                      ## @DO_TX
	.comm	_TX_START,8,3                   ## @TX_START
L_.str.2:                               ## @.str.2
	.asciz	"%s: exiting interrupt,\n"

L_.str.3:                               ## @.str.3
	.asciz	"    tx_status %02x, rx_status %02x.\n"

	.comm	_D_TX_INTR,2,1                  ## @D_TX_INTR
	.comm	_D_RX_INTR,2,1                  ## @D_RX_INTR
	.comm	_RX_INTR,8,3                    ## @RX_INTR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fjn_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fjn_interrupt
_fjn_interrupt:                         ; @fjn_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w23, [x20]
Lloh0:
	adrp	x24, _TX_INTR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_INTR@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x23
	mov	w0, #0
	bl	_outw
	mov	w0, #1
	bl	_udelay
Lloh2:
	adrp	x25, _TX_STATUS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TX_STATUS@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x0, x8, x23
	bl	_inb
	mov	x21, x0
Lloh4:
	adrp	x26, _RX_STATUS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _RX_STATUS@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x0, x8, x23
	bl	_inb
	mov	x22, x0
	ldr	x8, [x25]
	add	x1, x8, x23
	mov	x0, x21
	bl	_outb
	ldr	x8, [x26]
	add	x1, x8, x23
	mov	x0, x22
	bl	_outb
	ldrh	w1, [x20, #4]
	mov	w8, w22
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	cbz	w22, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_fjn_rx
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _RX_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_MODE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x0, x8, x23
	bl	_inb
Lloh13:
	adrp	x8, _F_BUF_EMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _F_BUF_EMP@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
LBB0_3:
Lloh15:
	adrp	x8, _F_TMT_RDY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_TMT_RDY@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.4:
	ldrh	w8, [x19]
	ldrh	w9, [x20, #6]
	add	w8, w9, w8
	strh	w8, [x20, #6]
	strh	wzr, [x19]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.5:
Lloh17:
	adrp	x9, _DO_TX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DO_TX@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w8, w8, #0xffff
	orr	w0, w9, w8
Lloh19:
	adrp	x8, _TX_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TX_START@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb
	ldr	w8, [x19, #4]
	strh	w8, [x19]
	str	wzr, [x19, #4]
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_netif_trans_update
	b	LBB0_7
LBB0_6:
	str	xzr, [x19, #16]
LBB0_7:
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_8:
	ldrh	w1, [x20, #4]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	str	x22, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
Lloh26:
	adrp	x8, _D_TX_INTR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_TX_INTR@GOTPAGEOFF]
	ldrh	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outb
Lloh28:
	adrp	x8, _D_RX_INTR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _D_RX_INTR@GOTPAGEOFF]
	ldrh	w0, [x8]
Lloh30:
	adrp	x8, _RX_INTR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RX_INTR@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x1, x8, x23
	bl	_outb
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	w9, #8200
	add	x1, x8, x9
	mov	w0, #1
	bl	_writeb
	ldr	x8, [x19, #8]
	mov	w9, #8328
	add	x1, x8, x9
	mov	w0, #9
	bl	_writeb
LBB0_10:
Lloh33:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh35:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_INTR,8,3                    ; @TX_INTR
	.comm	_TX_STATUS,8,3                  ; @TX_STATUS
	.comm	_RX_STATUS,8,3                  ; @RX_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: interrupt, rx_status %02x.\n"

l_.str.1:                               ; @.str.1
	.asciz	"               tx_status %02x.\n"

	.comm	_RX_MODE,8,3                    ; @RX_MODE
	.comm	_F_BUF_EMP,2,1                  ; @F_BUF_EMP
	.comm	_F_TMT_RDY,2,1                  ; @F_TMT_RDY
	.comm	_DO_TX,2,1                      ; @DO_TX
	.comm	_TX_START,8,3                   ; @TX_START
l_.str.2:                               ; @.str.2
	.asciz	"%s: exiting interrupt,\n"

l_.str.3:                               ; @.str.3
	.asciz	"    tx_status %02x, rx_status %02x.\n"

	.comm	_D_TX_INTR,2,1                  ; @D_TX_INTR
	.comm	_D_RX_INTR,2,1                  ; @D_RX_INTR
	.comm	_RX_INTR,8,3                    ; @RX_INTR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fjn_interrupt
.subsections_via_symbols
