	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restart_ctrlq
_restart_ctrlq:                         ## @restart_ctrlq
	.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, %r14
	movq	8(%rdi), %r12
	movq	_TXQ_CTRL@GOTPCREL(%rip), %rax
	imulq	$56, (%rax), %r13
	leaq	(%r12,%r13), %r15
	leaq	(%r12,%r13), %rbx
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	addq	%r13, %r12
	addq	$40, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %r13
	movq	_TXQ_CTRL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%r15, %rdi
	callq	_reclaim_completed_tx_imm
	movq	(%r15), %rax
	cmpq	-24(%rbx), %rax
	jb	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_set_bit
	xorl	%eax, %eax
	callq	_smp_mb__after_clear_bit
	movq	%r15, %rdi
	callq	_should_restart_tx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	(%r15), %rcx
	incq	%rcx
	movq	%rcx, (%r15)
	cmpq	%rax, %rcx
	jae	LBB0_6
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	-16(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movl	(%rax), %edx
	movl	-8(%rbx), %ecx
	movq	%rax, %rsi
	callq	_write_imm
	movq	-16(%rbx), %rcx
	incq	%rcx
	movq	%rcx, -16(%rbx)
	movq	-24(%rbx), %rax
	cmpq	%rax, %rcx
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	$0, -16(%rbx)
	xorb	$1, -8(%rbx)
	jmp	LBB0_5
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	36(%rax,%rcx)
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_wmb
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movq	_A_SG_KDOORBELL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_SELEGRCNTX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	28(%rax,%rcx), %edi
	callq	_V_EGRCNTX
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t3_write_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXQ_CTRL,8,3                   ## @TXQ_CTRL
	.comm	_A_SG_KDOORBELL,4,2             ## @A_SG_KDOORBELL
	.comm	_F_SELEGRCNTX,4,2               ## @F_SELEGRCNTX
	.no_dead_strip	_restart_ctrlq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restart_ctrlq
_restart_ctrlq:                         ; @restart_ctrlq
	.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
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x26, _TXQ_CTRL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TXQ_CTRL@GOTPAGEOFF]
	ldr	x25, [x26]
	mov	w8, #56
	madd	x21, x25, x8, x9
	add	x0, x21, #32
	stp	x0, x9, [sp]                    ; 16-byte Folded Spill
	bl	_spin_lock
	add	x22, x21, #40
	add	x27, x21, #8
	add	x28, x21, #48
	add	x20, x21, #16
	add	x24, x21, #24
	add	x23, x19, #4
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x21
	bl	_reclaim_completed_tx_imm
	ldr	x8, [x21]
	ldr	x9, [x27]
	cmp	x8, x9
	b.lo	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_skb_queue_empty
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x26]
	mov	x1, x23
	bl	_set_bit
	bl	_smp_mb__after_clear_bit
	mov	x0, x21
	bl	_should_restart_tx
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x26]
	mov	x1, x23
	bl	_test_and_clear_bit
	cbnz	x0, LBB0_1
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [x21]
	add	x9, x9, #1
	str	x9, [x21]
	cmp	x9, x8
	b.hs	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	___skb_dequeue
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, x0
	ldr	x8, [x28]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	ldr	w2, [x1]
	ldr	w3, [x24]
	bl	_write_imm
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	ldr	x8, [x27]
	cmp	x9, x8
	b.lo	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	str	xzr, [x20]
	ldr	w9, [x24]
	eor	w9, w9, #0x1
	str	w9, [x24]
	b	LBB0_5
LBB0_9:
	mov	w8, #56
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	madd	x8, x25, x8, x9
	ldr	w9, [x8, #36]
	add	w9, w9, #1
	str	w9, [x8, #36]
LBB0_10:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_spin_unlock
	bl	_wmb
	ldr	w19, [x19]
Lloh2:
	adrp	x8, _A_SG_KDOORBELL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_SG_KDOORBELL@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _F_SELEGRCNTX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_SELEGRCNTX@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	w8, #56
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	madd	x8, x25, x8, x9
	ldr	w0, [x8, #28]
	bl	_V_EGRCNTX
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, 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
	b	_t3_write_reg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TXQ_CTRL,8,3                   ; @TXQ_CTRL
	.comm	_A_SG_KDOORBELL,4,2             ; @A_SG_KDOORBELL
	.comm	_F_SELEGRCNTX,4,2               ; @F_SELEGRCNTX
	.no_dead_strip	_restart_ctrlq
.subsections_via_symbols
