	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_tx_poll
_xlgmac_tx_poll:                        ## @xlgmac_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	32(%rbx), %r13
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_netdev_get_tx_queue
	movq	_XLGMAC_TX_DESC_MAX_PROC@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_16
## %bb.2:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %esi
	xorl	%r12d, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*24(%rbx)
	movq	%r15, %rdi
	callq	*(%rbx)
	incl	%r12d
	movl	4(%r14), %esi
	incl	%esi
	movl	%esi, 4(%r14)
	movq	_XLGMAC_TX_DESC_MAX_PROC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%rax, %r15
	movq	16(%rax), %r13
	movq	%r13, %rdi
	callq	*16(%rbx)
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%rbx, %rdi
	callq	_netif_msg_tx_done
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_xlgmac_dump_tx_desc
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	8(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_15
LBB0_10:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_netdev_tx_completed_queue
	cmpl	$1, 8(%r14)
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_xlgmac_tx_avail_desc
	movq	_XLGMAC_TX_DESC_MIN_FREE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_13
## %bb.12:
	movl	$0, 8(%r14)
	movq	%rbx, %rdi
	callq	_netif_tx_wake_queue
LBB0_13:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_XLGMAC_PR
	jmp	LBB0_16
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLGMAC_TX_DESC_MAX_PROC,4,2    ## @XLGMAC_TX_DESC_MAX_PROC
	.comm	_XLGMAC_TX_DESC_MIN_FREE,8,3    ## @XLGMAC_TX_DESC_MIN_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"processed=%d\n"

	.no_dead_strip	_xlgmac_tx_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_tx_poll
_xlgmac_tx_poll:                        ; @xlgmac_tx_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0, #16]
	ldr	x21, [x22, #32]
	ldr	w27, [x19]
	bl	_smp_rmb
	ldr	w1, [x20]
	mov	x0, x21
	bl	_netdev_get_tx_queue
Lloh0:
	adrp	x28, _XLGMAC_TX_DESC_MAX_PROC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _XLGMAC_TX_DESC_MAX_PROC@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x21, x0
	mov	w20, #0
	mov	w24, #0
	mov	w23, #0
	ldr	w1, [x19, #4]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #24]
	mov	x0, x22
	mov	x1, x25
	blr	x8
	ldr	x8, [x22]
	mov	x0, x25
	blr	x8
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	add	w1, w8, #1
	str	w1, [x19, #4]
	ldr	w8, [x28]
	cmp	w20, w8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w1, w27
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_XLGMAC_GET_DESC_DATA
	mov	x25, x0
	ldr	x26, [x0, #16]
	ldr	x8, [x22, #16]
	mov	x0, x26
	blr	x8
	cbz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_dma_rmb
	mov	x0, x22
	bl	_netif_msg_tx_done
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x19, #4]
	mov	x0, x22
	mov	x1, x19
	mov	w3, #1
	mov	w4, #0
	bl	_xlgmac_dump_tx_desc
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	mov	x0, x26
	blr	x8
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #8]
	add	w24, w24, w8
	ldr	w8, [x25]
	add	w23, w23, w8
	b	LBB0_3
LBB0_10:
	mov	w20, #0
	b	LBB0_16
LBB0_11:
	cbz	w20, LBB0_16
LBB0_12:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_netdev_tx_completed_queue
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_xlgmac_tx_avail_desc
Lloh2:
	adrp	x8, _XLGMAC_TX_DESC_MIN_FREE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLGMAC_TX_DESC_MIN_FREE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_15
; %bb.14:
	str	wzr, [x19, #8]
	mov	x0, x21
	bl	_netif_tx_wake_queue
LBB0_15:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_XLGMAC_PR
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XLGMAC_TX_DESC_MAX_PROC,4,2    ; @XLGMAC_TX_DESC_MAX_PROC
	.comm	_XLGMAC_TX_DESC_MIN_FREE,8,3    ; @XLGMAC_TX_DESC_MIN_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"processed=%d\n"

	.no_dead_strip	_xlgmac_tx_poll
.subsections_via_symbols
