	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_interrupt
_net_interrupt:                         ## @net_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, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movslq	(%r13), %rdi
	movq	_ISQ_PORT@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_nubus_readw
	movl	%eax, %edi
	callq	_swab16
	testl	%eax, %eax
	je	LBB0_26
## %bb.1:
	movl	%eax, %ebx
	movq	_ISQ_EVENT_MASK@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %r15
	jmp	LBB0_2
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$6, %ebx
	addl	%ebx, 8(%r13)
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13), %rdi
	movq	_ISQ_PORT@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_nubus_readw
	movl	%eax, %edi
	callq	_swab16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_26
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	movl	(%r12), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	32(%r13)
	movq	%r13, %rdi
	callq	_netif_wake_queue
	movq	_TX_OK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_LOST_CRS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%r13)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_SQE_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r13)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_LATE_COL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r13)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_16_COL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%r13)
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$6, %ebx
	addl	%ebx, 4(%r13)
	jmp	LBB0_25
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_net_rx
	jmp	LBB0_25
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_READY_FOR_TX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_netif_wake_queue
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_UNDERRUN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	callq	_netif_dbg
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	cmpl	$5, %eax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %eax
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_AFTER_381@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_AFTER_ALL@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_25
LBB0_26:
	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
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_5
	.long	L0_0_set_23
	.long	L0_0_set_4
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_ISQ_PORT,8,3                   ## @ISQ_PORT
	.comm	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status=%04x\n"

	.comm	_ISQ_EVENT_MASK,4,2             ## @ISQ_EVENT_MASK
	.comm	_TX_OK,4,2                      ## @TX_OK
	.comm	_TX_LOST_CRS,4,2                ## @TX_LOST_CRS
	.comm	_TX_SQE_ERROR,4,2               ## @TX_SQE_ERROR
	.comm	_TX_LATE_COL,4,2                ## @TX_LATE_COL
	.comm	_TX_16_COL,4,2                  ## @TX_16_COL
	.comm	_READY_FOR_TX,4,2               ## @READY_FOR_TX
	.comm	_TX_UNDERRUN,4,2                ## @TX_UNDERRUN
	.comm	_tx_err,4,2                     ## @tx_err
L_.str.1:                               ## @.str.1
	.asciz	"transmit underrun\n"

	.comm	_TX_AFTER_381,4,2               ## @TX_AFTER_381
	.comm	_TX_AFTER_ALL,4,2               ## @TX_AFTER_ALL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_net_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_interrupt
_net_interrupt:                         ; @net_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	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldrsw	x8, [x19]
Lloh0:
	adrp	x24, _ISQ_PORT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ISQ_PORT@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_nubus_readw
	bl	_swab16
	cbz	w0, LBB0_26
; %bb.1:
	mov	x23, x0
Lloh2:
	adrp	x25, _intr@GOTPAGE
Lloh3:
	ldr	x25, [x25, _intr@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ISQ_EVENT_MASK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ISQ_EVENT_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x28, lJTI0_0@PAGE
Lloh9:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh10:
	adrp	x22, _READY_FOR_TX@GOTPAGE
Lloh11:
	ldr	x22, [x22, _READY_FOR_TX@GOTPAGEOFF]
Lloh12:
	adrp	x27, _TX_UNDERRUN@GOTPAGE
Lloh13:
	ldr	x27, [x27, _TX_UNDERRUN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, w23, asr #6
	str	w8, [x19, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_nubus_readw
	bl	_swab16
	mov	x23, x0
	cbz	w0, LBB0_26
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	str	x23, [sp]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_netif_dbg
	ldr	w8, [x26]
	and	w8, w8, w23
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_netif_wake_queue
Lloh14:
	adrp	x8, _TX_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TX_OK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _TX_LOST_CRS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TX_LOST_CRS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _TX_SQE_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_SQE_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh23:
	adrp	x8, _TX_LATE_COL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_LATE_COL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh26:
	adrp	x8, _TX_16_COL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TX_16_COL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, w23, asr #6
	str	w8, [x19, #4]
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_net_rx
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	tst	w8, w23
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	tst	w8, w23
	b.eq	LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh29:
	adrp	x8, _tx_err@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_netif_dbg
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	cmp	w8, #5
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x8, _TX_AFTER_381@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TX_AFTER_381@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh36:
	adrp	x8, _TX_AFTER_ALL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TX_AFTER_ALL@GOTPAGEOFF]
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_3
LBB0_26:
Lloh38:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh40:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_ISQ_PORT,8,3                   ; @ISQ_PORT
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status=%04x\n"

	.comm	_ISQ_EVENT_MASK,4,2             ; @ISQ_EVENT_MASK
	.comm	_TX_OK,4,2                      ; @TX_OK
	.comm	_TX_LOST_CRS,4,2                ; @TX_LOST_CRS
	.comm	_TX_SQE_ERROR,4,2               ; @TX_SQE_ERROR
	.comm	_TX_LATE_COL,4,2                ; @TX_LATE_COL
	.comm	_TX_16_COL,4,2                  ; @TX_16_COL
	.comm	_READY_FOR_TX,4,2               ; @READY_FOR_TX
	.comm	_TX_UNDERRUN,4,2                ; @TX_UNDERRUN
	.comm	_tx_err,4,2                     ; @tx_err
l_.str.1:                               ; @.str.1
	.asciz	"transmit underrun\n"

	.comm	_TX_AFTER_381,4,2               ; @TX_AFTER_381
	.comm	_TX_AFTER_ALL,4,2               ; @TX_AFTER_ALL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_net_interrupt
.subsections_via_symbols
