	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ei_tx_intr
_ei_tx_intr:                            ## @ei_tx_intr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_EN0_TSR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inb
	decl	28(%r12)
	movl	%eax, %r14d
	movl	(%r12), %eax
	testl	%eax, %eax
	js	LBB0_1
## %bb.7:
	movl	8(%r12), %r8d
	testl	%r8d, %r8d
	jns	LBB0_15
## %bb.8:
	movl	4(%r12), %ecx
	cmpl	$-2, %ecx
	je	LBB0_11
## %bb.9:
	cmpl	$2, %ecx
	je	LBB0_11
## %bb.10:
	movl	24(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	movl	(%r12), %eax
LBB0_11:
	movl	$0, 8(%r12)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.12:
	movl	$1, 12(%r12)
	movq	16(%r12), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_NS8390_trigger_send
	movq	%r15, %rdi
	callq	_netif_trans_update
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, (%r12)
	jmp	LBB0_15
LBB0_1:
	movl	4(%r12), %ecx
	cmpl	$-1, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %ecx
	je	LBB0_4
## %bb.3:
	movl	24(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %r8d
	callq	_netdev_err
LBB0_4:
	movl	$0, (%r12)
	movl	8(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.5:
	movl	$1, 12(%r12)
	movq	16(%r12), %rdx
	addq	$6, %rdx
	movq	%r15, %rdi
	callq	_NS8390_trigger_send
	movq	%r15, %rdi
	callq	_netif_trans_update
	movabsq	$-4294967294, %rax              ## imm = 0xFFFFFFFF00000002
	movq	%rax, 4(%r12)
	jmp	LBB0_15
LBB0_6:
	movl	$20, 4(%r12)
	jmp	LBB0_14
LBB0_13:
	movl	$10, 4(%r12)
LBB0_14:
	movl	$0, 12(%r12)
LBB0_15:
	movq	_ENTSR_COL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.16:
	incq	24(%r15)
LBB0_17:
	movq	_ENTSR_PTX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_19
## %bb.18:
	leaq	40(%r15), %rax
	jmp	LBB0_29
LBB0_19:
	incl	36(%r15)
	movq	_ENTSR_ABT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_21
## %bb.20:
	incl	32(%r15)
	addq	$16, 24(%r15)
LBB0_21:
	movq	_ENTSR_CRS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_23
## %bb.22:
	incl	20(%r15)
LBB0_23:
	movq	_ENTSR_FU@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_25
## %bb.24:
	incl	16(%r15)
LBB0_25:
	movq	_ENTSR_CDH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_27
## %bb.26:
	incl	12(%r15)
LBB0_27:
	movq	_ENTSR_OWC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_30
## %bb.28:
	leaq	8(%r15), %rax
LBB0_29:
	incl	(%rax)
LBB0_30:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EN0_TSR,8,3                    ## @EN0_TSR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bogus last_tx_buffer %d, tx1=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: bogus last_tx_buffer %d, tx2=%d\n"

	.comm	_ENTSR_COL,4,2                  ## @ENTSR_COL
	.comm	_ENTSR_PTX,4,2                  ## @ENTSR_PTX
	.comm	_ENTSR_ABT,4,2                  ## @ENTSR_ABT
	.comm	_ENTSR_CRS,4,2                  ## @ENTSR_CRS
	.comm	_ENTSR_FU,4,2                   ## @ENTSR_FU
	.comm	_ENTSR_CDH,4,2                  ## @ENTSR_CDH
	.comm	_ENTSR_OWC,4,2                  ## @ENTSR_OWC
	.no_dead_strip	_ei_tx_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ei_tx_intr
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
lCPI0_1:
	.long	2                               ; 0x2
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ei_tx_intr:                            ; @ei_tx_intr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0]
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _EN0_TSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EN0_TSR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x20
	bl	_inb
	mov	x20, x0
	ldr	w8, [x21, #28]
	sub	w8, w8, #1
	str	w8, [x21, #28]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_6
; %bb.1:
	ldr	w4, [x21, #8]
	tbz	w4, #31, LBB0_13
; %bb.2:
	ldr	w3, [x21, #4]
	cmn	w3, #2
	ccmp	w3, #2, #4, ne
	b.eq	LBB0_4
; %bb.3:
	ldr	w2, [x21, #24]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w8, [x21]
LBB0_4:
	str	wzr, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	w9, #1
	str	w9, [x21, #12]
	ldr	x2, [x21, #16]
	mov	x0, x19
	mov	x1, x8
	bl	_NS8390_trigger_send
	mov	x0, x19
	bl	_netif_trans_update
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	b	LBB0_13
LBB0_6:
	ldr	w3, [x21, #4]
	cmn	w3, #1
	ccmp	w3, #1, #4, ne
	b.eq	LBB0_8
; %bb.7:
	ldr	w2, [x21, #24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x8
	bl	_netdev_err
LBB0_8:
	str	wzr, [x21]
	ldr	w1, [x21, #8]
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x21, #12]
	ldr	x8, [x21, #16]
	add	x2, x8, #6
	mov	x0, x19
	bl	_NS8390_trigger_send
	mov	x0, x19
	bl	_netif_trans_update
Lloh9:
	adrp	x8, lCPI0_1@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x21, #4]
	b	LBB0_13
LBB0_10:
	mov	w8, #20
	b	LBB0_12
LBB0_11:
	mov	w8, #10
LBB0_12:
	str	w8, [x21, #4]
	str	wzr, [x21, #12]
LBB0_13:
Lloh11:
	adrp	x8, _ENTSR_COL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENTSR_COL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
LBB0_15:
Lloh14:
	adrp	x8, _ENTSR_PTX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENTSR_PTX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
	add	x8, x19, #40
	b	LBB0_27
LBB0_17:
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
Lloh17:
	adrp	x8, _ENTSR_ABT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENTSR_ABT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	ldr	x8, [x19, #24]
	add	x8, x8, #16
	str	x8, [x19, #24]
LBB0_19:
Lloh20:
	adrp	x8, _ENTSR_CRS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENTSR_CRS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.20:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_21:
Lloh23:
	adrp	x8, _ENTSR_FU@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENTSR_FU@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.22:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_23:
Lloh26:
	adrp	x8, _ENTSR_CDH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENTSR_CDH@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.24:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_25:
Lloh29:
	adrp	x8, _ENTSR_OWC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENTSR_OWC@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_28
; %bb.26:
	add	x8, x19, #8
LBB0_27:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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 AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EN0_TSR,8,3                    ; @EN0_TSR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bogus last_tx_buffer %d, tx1=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: bogus last_tx_buffer %d, tx2=%d\n"

	.comm	_ENTSR_COL,4,2                  ; @ENTSR_COL
	.comm	_ENTSR_PTX,4,2                  ; @ENTSR_PTX
	.comm	_ENTSR_ABT,4,2                  ; @ENTSR_ABT
	.comm	_ENTSR_CRS,4,2                  ; @ENTSR_CRS
	.comm	_ENTSR_FU,4,2                   ; @ENTSR_FU
	.comm	_ENTSR_CDH,4,2                  ; @ENTSR_CDH
	.comm	_ENTSR_OWC,4,2                  ; @ENTSR_OWC
	.no_dead_strip	_ei_tx_intr
.subsections_via_symbols
