	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fe_poll_tx
_fe_poll_tx:                            ## @fe_poll_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	(%rdi), %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_FE_REG_TX_DTX_IDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fe_reg_r32
	movq	%rax, %r12
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r14,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_DMA_DUMMY_DESC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	(%rcx), %ebx
	incl	%r13d
	decl	%r15d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r14,8), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fe_txd_unmap
	movq	%r14, %rdi
	callq	_NEXT_TX_DESP_IDX
	movq	%rax, %r14
	cmpq	%r12, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_4
	jmp	LBB0_9
LBB0_1:
	xorl	%r13d, %r13d
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	cmpq	%r12, %r14
	jne	LBB0_12
## %bb.10:
	movq	_FE_REG_TX_DTX_IDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fe_reg_r32
	cmpq	%rax, %r12
	jne	LBB0_12
## %bb.11:
	movq	_FE_REG_FE_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_fe_reg_w32
	testl	%r13d, %r13d
	jne	LBB0_14
	jmp	LBB0_18
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	testl	%r13d, %r13d
	je	LBB0_18
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_netdev_completed_queue
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_fe_empty_txd
	xorl	%ebx, %ebx
	cmpq	8(%r14), %rax
	setg	%bl
LBB0_16:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_REG_TX_DTX_IDX0,4,2         ## @FE_REG_TX_DTX_IDX0
	.comm	_DMA_DUMMY_DESC,8,3             ## @DMA_DUMMY_DESC
	.comm	_FE_REG_FE_INT_STATUS,4,2       ## @FE_REG_FE_INT_STATUS
	.no_dead_strip	_fe_poll_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fe_poll_tx
_fe_poll_tx:                            ; @fe_poll_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x27, x1
	mov	x21, x0
	ldr	x19, [x0, #24]
	ldr	x26, [x0]
Lloh0:
	adrp	x28, _FE_REG_TX_DTX_IDX0@GOTPAGE
Lloh1:
	ldr	x28, [x28, _FE_REG_TX_DTX_IDX0@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_fe_reg_r32
	mov	x25, x0
	cmp	x26, x0
	ccmp	w27, #0, #4, ne
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b.ne	LBB0_11
; %bb.1:
	mov	w24, #0
	mov	w20, #0
LBB0_2:
	str	x26, [x21]
	cmp	x26, x25
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x28]
	bl	_fe_reg_r32
	cmp	x25, x0
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _FE_REG_FE_INT_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FE_REG_FE_INT_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_fe_reg_w32
	cbnz	w20, LBB0_6
	b	LBB0_10
LBB0_5:
	mov	w8, #1
	str	w8, [x22]
	cbz	w20, LBB0_10
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_netdev_completed_queue
	bl	_smp_mb
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_fe_empty_txd
	ldr	x8, [x21, #8]
	cmp	x0, x8
	cset	w0, gt
LBB0_8:
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	w20, #0
	mov	w24, #0
Lloh5:
	adrp	x23, _DMA_DUMMY_DESC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DMA_DUMMY_DESC@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x1, x8, x26, lsl #3
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x8]
	add	w24, w24, w8
	add	w20, w20, #1
	sub	w27, w27, #1
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_fe_txd_unmap
	mov	x0, x26
	bl	_NEXT_TX_DESP_IDX
	mov	x26, x0
	cmp	x0, x25
	b.eq	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w27, LBB0_12
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_REG_TX_DTX_IDX0,4,2         ; @FE_REG_TX_DTX_IDX0
	.comm	_DMA_DUMMY_DESC,8,3             ; @DMA_DUMMY_DESC
	.comm	_FE_REG_FE_INT_STATUS,4,2       ; @FE_REG_FE_INT_STATUS
	.no_dead_strip	_fe_poll_tx
.subsections_via_symbols
