	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lance_tx
_lance_tx:                              ## @lance_tx
	.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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	32(%rax), %r13
	movq	_LE_C0_TINT@GOTPCREL(%rip), %r12
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r12), %esi
	movq	%rax, %rdi
	callq	_WRITERDP
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	cmpl	%ecx, %eax
	je	LBB0_23
## %bb.1:
	movq	_LE_T1_OWN@GOTPCREL(%rip), %rdx
	movq	_LE_T1_ERR@GOTPCREL(%rip), %r11
	movq	_LE_T3_CLOS@GOTPCREL(%rip), %r8
	movq	_LE_T3_BUF@GOTPCREL(%rip), %r9
	movq	_LE_T3_UFL@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	orl	(%r9), %esi
	testl	%edi, %esi
	jne	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	andl	8(%r14), %eax
	cmpl	%ecx, %eax
	je	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r12
	movslq	%eax, %r10
	movl	(%r12,%r10,8), %edi
	testl	%edi, (%rdx)
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r10,8), %edi
	testl	%edi, (%r11)
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12,%r10,8), %edi
	incl	32(%r15)
	movq	_LE_T3_RTY@GOTPCREL(%rip), %rsi
	testl	%edi, (%rsi)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_LE_T3_LCOL@GOTPCREL(%rip), %rsi
	testl	%edi, (%rsi)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%edi, (%r8)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r15)
	cmpq	$0, 24(%r14)
	je	LBB0_11
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r10,8), %esi
	movq	_LE_T1_POK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%esi
	testl	%esi, %edi
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%edi
	andl	%edi, (%r12,%r10,8)
	movl	(%r12,%r10,8), %esi
	movq	_LE_T1_EONE@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	8(%r15)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r10,8), %esi
	movq	_LE_T1_EMORE@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, 8(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r15)
	jmp	LBB0_20
LBB0_21:
	movl	%ecx, %eax
LBB0_22:
	movq	_LE_C0_TINT@GOTPCREL(%rip), %r12
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rbx
LBB0_23:
	movl	%eax, (%r14)
	movl	(%rbx), %esi
	orl	(%r12), %esi
	movq	%r14, %rdi
	callq	_WRITERDP
LBB0_24:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	incl	16(%r15)
	movl	40(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_13
LBB0_10:
	movq	16(%r14), %rax
	decq	%rax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	negq	%rax
	movq	%rax, 16(%r14)
	movl	40(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_13:
	movq	_LE_CSR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WRITERAP
	movq	_LE_C0_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WRITERDP
	movq	%r15, %rdi
	callq	_lance_init_ring
	movq	%r14, %rdi
	callq	_load_csrs
	movq	%r14, %rdi
	callq	_init_restart_lance
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_C0_TINT,4,2                 ## @LE_C0_TINT
	.comm	_LE_C0_INEA,4,2                 ## @LE_C0_INEA
	.comm	_LE_T1_OWN,4,2                  ## @LE_T1_OWN
	.comm	_LE_T1_ERR,4,2                  ## @LE_T1_ERR
	.comm	_LE_T3_RTY,4,2                  ## @LE_T3_RTY
	.comm	_LE_T3_LCOL,4,2                 ## @LE_T3_LCOL
	.comm	_LE_T3_CLOS,4,2                 ## @LE_T3_CLOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Carrier Lost, trying %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"TPE"

L_.str.2:                               ## @.str.2
	.asciz	"AUI"

	.comm	_LE_CSR0,4,2                    ## @LE_CSR0
	.comm	_LE_C0_STOP,4,2                 ## @LE_C0_STOP
	.comm	_LE_T3_BUF,4,2                  ## @LE_T3_BUF
	.comm	_LE_T3_UFL,4,2                  ## @LE_T3_UFL
L_.str.3:                               ## @.str.3
	.asciz	"%s: Tx: ERR_BUF|ERR_UFL, restarting\n"

	.comm	_LE_T1_POK,4,2                  ## @LE_T1_POK
	.comm	_LE_T1_EONE,4,2                 ## @LE_T1_EONE
	.comm	_LE_T1_EMORE,4,2                ## @LE_T1_EMORE
	.no_dead_strip	_lance_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lance_tx
_lance_tx:                              ; @lance_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _LE_C0_TINT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LE_C0_TINT@GOTPAGEOFF]
	ldr	x23, [x0, #32]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _LE_C0_INEA@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LE_C0_INEA@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	bl	_WRITERDP
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.1:
Lloh4:
	adrp	x10, _LE_T1_OWN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _LE_T1_OWN@GOTPAGEOFF]
Lloh6:
	adrp	x11, _LE_T1_ERR@GOTPAGE
Lloh7:
	ldr	x11, [x11, _LE_T1_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x12, _LE_T1_POK@GOTPAGE
Lloh9:
	ldr	x12, [x12, _LE_T1_POK@GOTPAGEOFF]
Lloh10:
	adrp	x13, _LE_T1_EONE@GOTPAGE
Lloh11:
	ldr	x13, [x13, _LE_T1_EONE@GOTPAGEOFF]
Lloh12:
	adrp	x14, _LE_T1_EMORE@GOTPAGE
Lloh13:
	ldr	x14, [x14, _LE_T1_EMORE@GOTPAGEOFF]
Lloh14:
	adrp	x15, _LE_T3_RTY@GOTPAGE
Lloh15:
	ldr	x15, [x15, _LE_T3_RTY@GOTPAGEOFF]
Lloh16:
	adrp	x16, _LE_T3_LCOL@GOTPAGE
Lloh17:
	ldr	x16, [x16, _LE_T3_LCOL@GOTPAGEOFF]
Lloh18:
	adrp	x17, _LE_T3_CLOS@GOTPAGE
Lloh19:
	ldr	x17, [x17, _LE_T3_CLOS@GOTPAGEOFF]
Lloh20:
	adrp	x0, _LE_T3_BUF@GOTPAGE
Lloh21:
	ldr	x0, [x0, _LE_T3_BUF@GOTPAGEOFF]
Lloh22:
	adrp	x1, _LE_T3_UFL@GOTPAGE
Lloh23:
	ldr	x1, [x1, _LE_T3_UFL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x0]
	ldr	w4, [x1]
	orr	w3, w4, w3
	tst	w3, w2
	b.ne	LBB0_21
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	ldr	w2, [x19, #8]
	and	w8, w2, w8
	cmp	w8, w9
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x23]
	add	x2, x3, w8, sxtw #3
	ldr	w4, [x2]
	ldr	w5, [x10]
	tst	w5, w4
	b.ne	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w4, [x2]
	ldr	w5, [x11]
	tst	w5, w4
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x2, w8
	add	x2, x3, x2, lsl #3
	ldr	w2, [x2, #4]
	ldr	w3, [x20, #32]
	add	w3, w3, #1
	str	w3, [x20, #32]
	ldr	w3, [x15]
	tst	w3, w2
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x20, #28]
	add	w3, w3, #1
	str	w3, [x20, #28]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x16]
	tst	w3, w2
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x20, #24]
	add	w3, w3, #1
	str	w3, [x20, #24]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x17]
	tst	w3, w2
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x20, #20]
	add	w3, w3, #1
	str	w3, [x20, #20]
	ldr	x3, [x19, #24]
	cbz	x3, LBB0_2
	b	LBB0_22
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w4, [x2]
	ldr	w3, [x12]
	bics	wzr, w3, w4
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w4, [x2]
	bic	w3, w4, w3
	str	w3, [x2]
	ldr	w3, [x2]
	ldr	w4, [x13]
	tst	w4, w3
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x20, #8]
	add	x3, x3, #1
	str	x3, [x20, #8]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x2]
	ldr	w3, [x14]
	tst	w3, w2
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x20, #8]
	add	x2, x2, #2
	str	x2, [x20, #8]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20]
	add	w2, w2, #1
	str	w2, [x20]
	b	LBB0_3
LBB0_18:
	mov	x8, x9
LBB0_19:
	str	w8, [x19]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_WRITERDP
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	w1, [x20, #40]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:
	ldr	x8, [x19, #16]
	mov	w9, #1
	sub	x9, x9, x8
	str	x9, [x19, #16]
	ldr	w1, [x20, #40]
Lloh26:
	adrp	x9, l_.str.1@PAGE
Lloh27:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh28:
	adrp	x10, l_.str.2@PAGE
Lloh29:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #1
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
LBB0_23:
	bl	_printk
Lloh32:
	adrp	x8, _LE_CSR0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LE_CSR0@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_WRITERAP
Lloh35:
	adrp	x8, _LE_C0_STOP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LE_C0_STOP@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_WRITERDP
	mov	x0, x20
	bl	_lance_init_ring
	mov	x0, x19
	bl	_load_csrs
	mov	x0, x19
	bl	_init_restart_lance
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_C0_TINT,4,2                 ; @LE_C0_TINT
	.comm	_LE_C0_INEA,4,2                 ; @LE_C0_INEA
	.comm	_LE_T1_OWN,4,2                  ; @LE_T1_OWN
	.comm	_LE_T1_ERR,4,2                  ; @LE_T1_ERR
	.comm	_LE_T3_RTY,4,2                  ; @LE_T3_RTY
	.comm	_LE_T3_LCOL,4,2                 ; @LE_T3_LCOL
	.comm	_LE_T3_CLOS,4,2                 ; @LE_T3_CLOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Carrier Lost, trying %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"TPE"

l_.str.2:                               ; @.str.2
	.asciz	"AUI"

	.comm	_LE_CSR0,4,2                    ; @LE_CSR0
	.comm	_LE_C0_STOP,4,2                 ; @LE_C0_STOP
	.comm	_LE_T3_BUF,4,2                  ; @LE_T3_BUF
	.comm	_LE_T3_UFL,4,2                  ; @LE_T3_UFL
l_.str.3:                               ; @.str.3
	.asciz	"%s: Tx: ERR_BUF|ERR_UFL, restarting\n"

	.comm	_LE_T1_POK,4,2                  ; @LE_T1_POK
	.comm	_LE_T1_EONE,4,2                 ; @LE_T1_EONE
	.comm	_LE_T1_EMORE,4,2                ; @LE_T1_EMORE
	.no_dead_strip	_lance_tx
.subsections_via_symbols
