	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_tx_done
_skge_tx_done:                          ## @skge_tx_done
	.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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	8(%rax), %r14
	movl	24(%rax), %ebx
	movq	_txqaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	movq	_CSR_IRQ_CL_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_skge_write8
	movq	8(%r12), %rbx
	cmpq	16(%r12), %rbx
	je	LBB0_4
## %bb.1:
	movq	_BMU_OWN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edx
	testl	%edx, (%r13)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_skge_tx_free
	movq	8(%rbx), %rbx
	cmpq	16(%r12), %rbx
	jne	LBB0_2
LBB0_4:
	movq	%rbx, (%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_skge_avail
	movq	_TX_LOW_WATER@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setg	%bl
LBB0_6:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%r15, %rdi
	callq	_netif_tx_lock
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_skge_avail
	movq	_TX_LOW_WATER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	jmp	LBB0_10
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%edi, %edi
LBB0_10:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_tx_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_txqaddr,8,3                    ## @txqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_CSR_IRQ_CL_F,4,2               ## @CSR_IRQ_CL_F
	.comm	_BMU_OWN,4,2                    ## @BMU_OWN
	.comm	_TX_LOW_WATER,8,3               ## @TX_LOW_WATER
	.no_dead_strip	_skge_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_tx_done
_skge_tx_done:                          ; @skge_tx_done
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w20, [x0, #24]
Lloh0:
	adrp	x8, _txqaddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _txqaddr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_Q_ADDR
	mov	x1, x0
Lloh6:
	adrp	x8, _CSR_IRQ_CL_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSR_IRQ_CL_F@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_skge_write8
	mov	x20, x21
	ldr	x22, [x20, #8]!
	ldr	x8, [x21, #16]
	cmp	x22, x8
	b.eq	LBB0_4
; %bb.1:
Lloh9:
	adrp	x23, _BMU_OWN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _BMU_OWN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w2, [x8]
	ldr	w8, [x23]
	tst	w8, w2
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_skge_tx_free
	ldr	x22, [x22, #8]
	ldr	x8, [x21, #16]
	cmp	x22, x8
	b.ne	LBB0_2
LBB0_4:
	str	x22, [x20]
	bl	_smp_mb
	mov	x0, x19
	bl	_netif_queue_stopped
Lloh11:
	adrp	x21, _TX_LOW_WATER@GOTPAGE
Lloh12:
	ldr	x21, [x21, _TX_LOW_WATER@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_skge_avail
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, gt
LBB0_6:
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_netif_tx_lock
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_skge_avail
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, gt
LBB0_9:
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_tx_unlock
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_txqaddr,8,3                    ; @txqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_CSR_IRQ_CL_F,4,2               ; @CSR_IRQ_CL_F
	.comm	_BMU_OWN,4,2                    ; @BMU_OWN
	.comm	_TX_LOW_WATER,8,3               ; @TX_LOW_WATER
	.no_dead_strip	_skge_tx_done
.subsections_via_symbols
