	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_poll
_tx_poll:                               ## @tx_poll
	.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
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%edx, %r14d
	movq	32(%r13), %r12
	leal	-1(%rsi), %eax
	cltd
	idivl	%edi
	cmpl	%ecx, %esi
	jle	LBB0_1
## %bb.2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	24(%r13), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movslq	%edx, %r14
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%r14,8), %rdi
	addq	16(%r13), %rdi
	callq	_cpu_to_le32
	movq	24(%r13), %rcx
	movl	%eax, 4(%rcx)
	movl	(%r13), %ecx
	movl	4(%r13), %esi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r14,8), %rbx
	movq	%rbx, 24(%r13)
	incl	%ecx
	movl	%ecx, (%r13)
	cmpl	%ecx, %esi
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	movq	32(%r13), %r12
	jmp	LBB0_3
LBB0_1:
	movslq	%edx, %rax
	leaq	(%r12,%rax,8), %rbx
	jmp	LBB0_7
LBB0_6:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_7:
	movq	_DescIntrOnTx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	orl	%eax, (%rbx)
	movq	_TxListPtr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_ioread32
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r14d, %edi
	shlq	$3, %rdi
	addq	16(%r13), %rdi
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_DescIntrOnTx,8,3               ## @DescIntrOnTx
	.comm	_TxListPtr,8,3                  ## @TxListPtr
	.no_dead_strip	_tx_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_poll
_tx_poll:                               ; @tx_poll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	x23, [x0, #32]
	ldp	w21, w8, [x0]
	cmp	w8, w21
	b.le	LBB0_6
; %bb.1:
	ldr	x24, [x19, #24]
	mov	x10, x20
	mov	x9, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w11, w9, w10
	msub	w25, w11, w10, w9
	cbz	x24, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w25
	ldr	x9, [x19, #16]
	add	x0, x9, x8, lsl #3
	bl	_cpu_to_le32
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
	ldp	w9, w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x23, w25, sxtw #3
	str	x24, [x19, #24]
	add	w9, w9, #1
	str	w9, [x19]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x22]
	ldr	x23, [x19, #32]
	b	LBB0_2
LBB0_6:
	sub	w8, w8, #1
	sdiv	w9, w8, w20
	msub	w8, w9, w20, w8
	add	x24, x23, w8, sxtw #3
LBB0_7:
Lloh2:
	adrp	x8, _DescIntrOnTx@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DescIntrOnTx@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	w8, [x24]
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x22, _TxListPtr@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TxListPtr@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	x0, LBB0_9
; %bb.8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	sdiv	w8, w21, w20
	msub	w8, w8, w20, w21
	ldp	x10, x9, [x19, #8]
	add	x0, x9, w8, uxtw #3
	ldr	x8, [x22]
	add	x1, x8, x10
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iowrite32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_DescIntrOnTx,8,3               ; @DescIntrOnTx
	.comm	_TxListPtr,8,3                  ; @TxListPtr
	.no_dead_strip	_tx_poll
.subsections_via_symbols
