	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_start_xmit
_ethoc_start_xmit:                      ## @ethoc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	_ETHOC_BUFSIZ@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incl	16(%rbx)
	jmp	LBB0_8
LBB0_2:
	movl	(%rbx), %eax
	xorl	%edx, %edx
	divl	4(%rbx)
	movl	%edx, %r13d
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	incl	(%rbx)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	_ethoc_read_bd
	movq	(%r12), %rax
	movq	_ETHOC_ZLEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	movq	_TX_BD_PAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	orl	%ecx, -48(%rbp)
	jmp	LBB0_5
LBB0_4:
	notl	%ecx
	andl	%ecx, -48(%rbp)
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_phys_to_virt
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movq	%rax, %rdi
	callq	_memcpy_toio
	movq	_TX_BD_STATS@GOTPCREL(%rip), %rax
	movq	_TX_BD_LEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -48(%rbp)
	movq	(%r12), %rdi
	callq	_TX_BD_LEN
	orl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_ethoc_write_bd
	movq	_TX_BD_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	-48(%rbp), %rdx
	callq	_ethoc_write_bd
	movl	4(%rbx), %eax
	addl	8(%rbx), %eax
	cmpl	%eax, (%rbx)
	jne	LBB0_7
## %bb.6:
	leaq	4(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
LBB0_8:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	movq	_NETDEV_TX_OK@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	_ETHOC_BUFSIZ,8,3               ## @ETHOC_BUFSIZ
	.comm	_ETHOC_ZLEN,8,3                 ## @ETHOC_ZLEN
	.comm	_TX_BD_PAD,4,2                  ## @TX_BD_PAD
	.comm	_TX_BD_STATS,4,2                ## @TX_BD_STATS
	.comm	_TX_BD_LEN_MASK,4,2             ## @TX_BD_LEN_MASK
	.comm	_TX_BD_READY,4,2                ## @TX_BD_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stopping queue\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_ethoc_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_start_xmit
_ethoc_start_xmit:                      ; @ethoc_start_xmit
	.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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ETHOC_BUFSIZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETHOC_BUFSIZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	b	LBB0_8
LBB0_2:
	ldp	w8, w9, [x21]
	udiv	w10, w8, w9
	msub	w23, w10, w9, w8
	add	x22, x21, #12
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_ethoc_read_bd
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ETHOC_ZLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETHOC_ZLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
Lloh6:
	adrp	x8, _TX_BD_PAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_BD_PAD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [sp, #8]
	ldr	w0, [sp, #12]
	bl	_phys_to_virt
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	bl	_memcpy_toio
Lloh9:
	adrp	x8, _TX_BD_STATS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_BD_STATS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TX_BD_LEN_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TX_BD_LEN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
	ldr	x0, [x19]
	bl	_TX_BD_LEN
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_ethoc_write_bd
Lloh15:
	adrp	x8, _TX_BD_READY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TX_BD_READY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_ethoc_write_bd
	ldp	w10, w8, [x21, #4]
	ldr	w9, [x21]
	add	w8, w10, w8
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.6:
	add	x0, x20, #4
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	bl	_netif_stop_queue
LBB0_7:
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x22
	bl	_spin_unlock_irq
LBB0_8:
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh23:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHOC_BUFSIZ,8,3               ; @ETHOC_BUFSIZ
	.comm	_ETHOC_ZLEN,8,3                 ; @ETHOC_ZLEN
	.comm	_TX_BD_PAD,4,2                  ; @TX_BD_PAD
	.comm	_TX_BD_STATS,4,2                ; @TX_BD_STATS
	.comm	_TX_BD_LEN_MASK,4,2             ; @TX_BD_LEN_MASK
	.comm	_TX_BD_READY,4,2                ; @TX_BD_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stopping queue\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_ethoc_start_xmit
.subsections_via_symbols
