	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axnet_start_xmit
_axnet_start_xmit:                      ## @axnet_start_xmit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ETH_ZLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	leaq	24(%r14), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_EN0_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	xorl	%edi, %edi
	callq	_outb_p
	movl	$1, (%r14)
	movl	(%r12), %esi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_max
	movl	4(%r14), %r8d
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.7:
	movl	12(%r14), %r9d
	testl	%r9d, %r9d
	je	LBB0_8
## %bb.11:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %eax
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rdx
	pushq	%rax
	callq	_netif_dbg
	addq	$16, %rsp
	movl	$0, (%r14)
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	_ENISR_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_IMR@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_outb_p
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	incl	12(%r13)
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %r15d
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_netif_msg_tx_queued
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	12(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.3:
	movl	16(%r14), %ecx
	movl	20(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_8:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_TX_PAGES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r15d
	shrl	$31, %r15d
	addl	%ecx, %r15d
	sarl	%r15d
	addl	8(%r14), %r15d
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_netif_msg_tx_queued
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movl	4(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.10:
	movl	16(%r14), %ecx
	movl	20(%r14), %r8d
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r13, %rdi
	callq	_netdev_dbg
LBB0_5:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	cmpl	(%rbx), %esi
	jne	LBB0_12
## %bb.6:
	movq	8(%rbx), %rdx
	movq	%r13, %rdi
	jmp	LBB0_13
LBB0_12:
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_skb_copy_from_linear_data
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
LBB0_13:
	movl	%r15d, %ecx
	callq	_ei_block_output
	cmpl	$0, 20(%r14)
	je	LBB0_14
## %bb.17:
	incl	28(%r14)
	jmp	LBB0_18
LBB0_14:
	movl	$1, 20(%r14)
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_NS8390_trigger_send
	movq	%r13, %rdi
	callq	_netif_trans_update
	cmpl	8(%r14), %r15d
	jne	LBB0_16
## %bb.15:
	movl	$-1, 4(%r14)
	movl	$-1, 16(%r14)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_16:
	movabsq	$-4294967297, %rax              ## imm = 0xFFFFFFFEFFFFFFFF
	movq	%rax, 12(%r14)
LBB0_18:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, 4(%r14)
	je	LBB0_21
LBB0_19:
	cmpl	$0, 12(%r14)
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	callq	_netif_stop_queue
	jmp	LBB0_22
LBB0_21:
	movq	%r13, %rdi
	callq	_netif_start_queue
LBB0_22:
	movl	$0, (%r14)
	movq	_ENISR_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_IMR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_outb_p
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 8(%r13)
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_EN0_IMR,8,3                    ## @EN0_IMR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idle transmitter tx2=%d, lasttx=%d, txing=%d\n"

	.comm	_TX_PAGES,4,2                   ## @TX_PAGES
L_.str.1:                               ## @.str.1
	.asciz	"idle transmitter, tx1=%d, lasttx=%d, txing=%d\n"

	.comm	_tx_err,4,2                     ## @tx_err
L_.str.2:                               ## @.str.2
	.asciz	"No Tx buffers free! tx1=%d tx2=%d last=%d\n"

	.comm	_ENISR_ALL,4,2                  ## @ENISR_ALL
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_axnet_start_xmit
.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 axnet_start_xmit
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_axnet_start_xmit:                      ; @axnet_start_xmit
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x27, [x1]
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
Lloh3:
	adrp	x28, _ETH_ZLEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _ETH_ZLEN@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w25, [x21]
	add	x20, x22, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x26, _EN0_IMR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _EN0_IMR@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x1, x8, x27
	mov	w0, #0
	bl	_outb_p
	mov	w8, #1
	str	w8, [x22]
	ldr	w1, [x28]
	mov	x0, x25
	bl	_max
	mov	x23, x0
	ldr	w4, [x22, #4]
	cbz	w4, LBB0_3
; %bb.1:
	ldr	w5, [x22, #12]
	cbz	w5, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _tx_err@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w6, [x22, #16]
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_netif_dbg
	str	wzr, [x22]
	mov	x0, x19
	bl	_netif_stop_queue
Lloh14:
	adrp	x8, _ENISR_ALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENISR_ALL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x26]
	add	x1, x8, x27
	bl	_outb_p
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh17:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_23
LBB0_3:
	ldr	w26, [x22, #8]
	str	w23, [x22, #4]
	mov	x0, x22
	bl	_netif_msg_tx_queued
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w2, [x22, #12]
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.5:
	ldp	w3, w4, [x22, #16]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _TX_PAGES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TX_PAGES@GOTPAGEOFF]
	ldr	w9, [x22, #8]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w26, w9, w8, asr #1
	str	w23, [x22, #12]
	mov	x0, x22
	bl	_netif_msg_tx_queued
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w2, [x22, #4]
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.8:
	ldp	w3, w4, [x22, #16]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_netdev_dbg
LBB0_10:
	ldr	w8, [x21]
	cmp	w25, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x2, [x21, #8]
	mov	x0, x19
	mov	x1, x25
	b	LBB0_13
LBB0_12:
	ldr	w2, [x28]
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldr	w2, [x21]
	mov	x0, x21
	mov	x1, x24
	bl	_skb_copy_from_linear_data
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
LBB0_13:
	mov	x3, x26
	bl	_ei_block_output
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	w8, [x22, #28]
	add	w8, w8, #1
	str	w8, [x22, #28]
	b	LBB0_18
LBB0_15:
	mov	w8, #1
	str	w8, [x22, #20]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x26
	bl	_NS8390_trigger_send
	mov	x0, x19
	bl	_netif_trans_update
	ldr	w8, [x22, #8]
	cmp	w26, w8
	b.ne	LBB0_17
; %bb.16:
	mov	w8, #-1
	str	w8, [x22, #4]
	str	w8, [x22, #16]
Lloh26:
	adrp	x24, _EN0_IMR@GOTPAGE
Lloh27:
	ldr	x24, [x24, _EN0_IMR@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh28:
	adrp	x8, lCPI0_0@PAGE
Lloh29:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x22, #12]
LBB0_18:
Lloh30:
	adrp	x24, _EN0_IMR@GOTPAGE
Lloh31:
	ldr	x24, [x24, _EN0_IMR@GOTPAGEOFF]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_21
LBB0_19:
	ldr	w8, [x22, #12]
	cbz	w8, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_netif_stop_queue
	b	LBB0_22
LBB0_21:
	mov	x0, x19
	bl	_netif_start_queue
LBB0_22:
	str	wzr, [x22]
Lloh32:
	adrp	x8, _ENISR_ALL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENISR_ALL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, x27
	bl	_outb_p
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_dev_kfree_skb
	ldr	w8, [x19, #8]
	add	w8, w8, w23
	str	w8, [x19, #8]
Lloh35:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #80
	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
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_EN0_IMR,8,3                    ; @EN0_IMR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idle transmitter tx2=%d, lasttx=%d, txing=%d\n"

	.comm	_TX_PAGES,4,2                   ; @TX_PAGES
l_.str.1:                               ; @.str.1
	.asciz	"idle transmitter, tx1=%d, lasttx=%d, txing=%d\n"

	.comm	_tx_err,4,2                     ; @tx_err
l_.str.2:                               ; @.str.2
	.asciz	"No Tx buffers free! tx1=%d tx2=%d last=%d\n"

	.comm	_ENISR_ALL,4,2                  ; @ENISR_ALL
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_axnet_start_xmit
.subsections_via_symbols
