	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xge_txc_poll
_xge_txc_poll:                          ## @xge_txc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %r13
	movq	16(%rax), %r14
	movq	(%r13), %r15
	movq	_DMATXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_xge_rd_csr
	movq	_TXPKTCOUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_GET_BITS
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%r15,4), %r14
	addq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_is_tx_hw_done
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	8(%r13), %rax
	leaq	(%r15,%r15,2), %rdx
	movq	%r13, %rbx
	movq	16(%rax,%rdx,8), %r13
	movl	8(%rax,%rdx,8), %ecx
	movq	(%rax,%rdx,8), %rdx
	incl	4(%r12)
	movl	(%r13), %eax
	addl	%eax, (%r12)
	movq	_XGENE_ENET_STD_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_free_coherent
	movq	%r13, %rdi
	movq	%rbx, %r13
	callq	_dev_kfree_skb_any
	movq	_E@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SET_BITS
	movl	%eax, %ebx
	movq	_PKT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SLOT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SET_BITS
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r14)
	movq	_DMATXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_xge_wr_csr
	incq	%r15
	movq	_XGENE_ENET_NUM_DESC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	andq	%rax, %r15
	jmp	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_netif_wake_queue
LBB0_6:
	movq	%r15, (%r13)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMATXSTATUS,4,2                ## @DMATXSTATUS
	.comm	_TXPKTCOUNT,4,2                 ## @TXPKTCOUNT
	.comm	_XGENE_ENET_STD_MTU,4,2         ## @XGENE_ENET_STD_MTU
	.comm	_E,4,2                          ## @E
	.comm	_PKT_SIZE,4,2                   ## @PKT_SIZE
	.comm	_SLOT_EMPTY,4,2                 ## @SLOT_EMPTY
	.comm	_XGENE_ENET_NUM_DESC,4,2        ## @XGENE_ENET_NUM_DESC
	.no_dead_strip	_xge_txc_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xge_txc_poll
_xge_txc_poll:                          ; @xge_txc_poll
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	x24, x21, [x0, #8]
	ldr	x25, [x24]
Lloh0:
	adrp	x23, _DMATXSTATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMATXSTATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_xge_rd_csr
	mov	x1, x0
Lloh2:
	adrp	x8, _TXPKTCOUNT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TXPKTCOUNT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_GET_BITS
	cbz	w0, LBB0_7
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x24, #16]
	add	x22, x8, x25, lsl #2
	mov	x0, x22
	bl	_is_tx_hw_done
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x26, _PKT_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PKT_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _SLOT_EMPTY@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SLOT_EMPTY@GOTPAGEOFF]
Lloh9:
	adrp	x28, _XGENE_ENET_NUM_DESC@GOTPAGE
Lloh10:
	ldr	x28, [x28, _XGENE_ENET_NUM_DESC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldr	x8, [x24, #8]
	mov	w9, #24
	madd	x8, x25, x9, x8
	mov	x19, x23
	ldr	x23, [x8, #16]
	ldr	w3, [x8, #8]
	ldr	x2, [x8]
	ldr	d0, [x20]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x23]
	add.2s	v0, v0, v1
	str	d0, [x20]
Lloh11:
	adrp	x8, _XGENE_ENET_STD_MTU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XGENE_ENET_STD_MTU@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dma_free_coherent
	mov	x0, x23
	bl	_dev_kfree_skb_any
Lloh14:
	adrp	x8, _E@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SET_BITS
	mov	x23, x0
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_SET_BITS
	orr	w0, w0, w23
	mov	x23, x19
	bl	_cpu_to_le64
	str	w0, [x22]
	ldr	w1, [x19]
	mov	x0, x20
	mov	w2, #1
	bl	_xge_wr_csr
	add	x8, x25, #1
	ldrsw	x9, [x28]
	sub	x9, x9, #1
	and	x25, x8, x9
	ldr	x8, [x24, #16]
	add	x22, x8, x25, lsl #2
	mov	x0, x22
	bl	_is_tx_hw_done
	cbnz	w0, LBB0_3
LBB0_4:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_6:
	str	x25, [x24]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DMATXSTATUS,4,2                ; @DMATXSTATUS
	.comm	_TXPKTCOUNT,4,2                 ; @TXPKTCOUNT
	.comm	_XGENE_ENET_STD_MTU,4,2         ; @XGENE_ENET_STD_MTU
	.comm	_E,4,2                          ; @E
	.comm	_PKT_SIZE,4,2                   ; @PKT_SIZE
	.comm	_SLOT_EMPTY,4,2                 ; @SLOT_EMPTY
	.comm	_XGENE_ENET_NUM_DESC,4,2        ; @XGENE_ENET_NUM_DESC
	.no_dead_strip	_xge_txc_poll
.subsections_via_symbols
