	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_tx
_ethoc_tx:                              ## @ethoc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ethoc_update_tx_stats
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	incl	%r15d
	cmpl	%r15d, %r12d
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %r14d
	decl	%r14d
	andl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_ethoc_read_bd
	movq	_TX_BD_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	cmpl	8(%rbx), %eax
	jne	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_INT_MASK_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ethoc_ack_irq
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_ethoc_read_bd
	movq	_TX_BD_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	cmpl	8(%rbx), %eax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_8:
	movl	%r12d, %r15d
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	subl	(%rbx), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	cmpl	%edx, %ecx
	jg	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BD_READY,4,2                ## @TX_BD_READY
	.comm	_INT_MASK_TX,4,2                ## @INT_MASK_TX
	.no_dead_strip	_ethoc_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_tx
_ethoc_tx:                              ; @ethoc_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w20, #0
	ldr	w8, [x21]
Lloh0:
	adrp	x24, _TX_BD_READY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_BD_READY@GOTPAGEOFF]
Lloh2:
	adrp	x25, _INT_MASK_TX@GOTPAGE
Lloh3:
	ldr	x25, [x25, _INT_MASK_TX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_ethoc_update_tx_stats
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	add	w20, w20, #1
	cmp	w22, w20
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21, #4]
	sub	w9, w9, #1
	and	w23, w9, w8
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_ethoc_read_bd
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	bl	_ethoc_ack_irq
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_ethoc_read_bd
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ne	LBB0_2
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	x20, x22
LBB0_9:
	ldp	w10, w8, [x21, #4]
	ldr	w9, [x21]
	sub	w8, w8, w9
	cmp	w10, #0
	cinc	w9, w10, lt
	cmp	w8, w9, asr #1
	b.gt	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BD_READY,4,2                ; @TX_BD_READY
	.comm	_INT_MASK_TX,4,2                ; @INT_MASK_TX
	.no_dead_strip	_ethoc_tx
.subsections_via_symbols
