	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_xmit
_ctrl_xmit:                             ## @ctrl_xmit
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdx), %rbx
	movq	%rdx, %rdi
	callq	_immediate
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_WARN_ON
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_9
LBB0_2:
	movq	_F_WR_SOP@GOTPCREL(%rip), %rax
	movq	_F_WR_EOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_htonl
	orl	%eax, 4(%rbx)
	movl	48(%r13), %edi
	callq	_V_WR_TID
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, (%rbx)
	leaq	28(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_TXQ_CTRL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_reclaim_completed_tx_imm
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_check_desc_avail
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	_NET_XMIT_CN@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	40(%r13), %rdi
	movl	(%r15), %edx
	movl	8(%r13), %ecx
	movq	%r15, %rsi
	callq	_write_imm
	incl	32(%r13)
	movq	(%r13), %rax
	incq	%rax
	movq	%rax, (%r13)
	cmpq	16(%r13), %rax
	jb	LBB0_8
## %bb.7:
	movq	$0, (%r13)
	xorb	$1, 8(%r13)
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_wmb
	movq	_A_SG_KDOORBELL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_SELEGRCNTX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	24(%r13), %edi
	callq	_V_EGRCNTX
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_t3_write_reg
LBB0_9:
	movq	_NET_XMIT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_XMIT_SUCCESS,4,2           ## @NET_XMIT_SUCCESS
	.comm	_F_WR_SOP,4,2                   ## @F_WR_SOP
	.comm	_F_WR_EOP,4,2                   ## @F_WR_EOP
	.comm	_TXQ_CTRL,4,2                   ## @TXQ_CTRL
	.comm	_NET_XMIT_CN,4,2                ## @NET_XMIT_CN
	.comm	_A_SG_KDOORBELL,4,2             ## @A_SG_KDOORBELL
	.comm	_F_SELEGRCNTX,4,2               ## @F_SELEGRCNTX
	.no_dead_strip	_ctrl_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_xmit
_ctrl_xmit:                             ; @ctrl_xmit
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x2, #8]
	mov	x0, x2
	bl	_immediate
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	mov	x0, x21
	bl	_dev_kfree_skb
	b	LBB0_9
LBB0_2:
Lloh0:
	adrp	x8, _F_WR_SOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_WR_SOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _F_WR_EOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_WR_EOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_htonl
	ldr	w8, [x22, #4]
	orr	w8, w8, w0
	str	w8, [x22, #4]
	ldr	w0, [x20, #48]
	bl	_V_WR_TID
	bl	_htonl
	str	w0, [x22]
	add	x22, x20, #28
	mov	x0, x22
	bl	_spin_lock
Lloh6:
	adrp	x24, _TXQ_CTRL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TXQ_CTRL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_reclaim_completed_tx_imm
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #1
	bl	_check_desc_avail
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #1
	b.ne	LBB0_3
; %bb.5:
	mov	x0, x22
	bl	_spin_unlock
Lloh8:
	adrp	x8, _NET_XMIT_CN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NET_XMIT_CN@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20, #40]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	ldr	w2, [x21]
	ldr	w3, [x20, #8]
	mov	x1, x21
	bl	_write_imm
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.lo	LBB0_8
; %bb.7:
	str	xzr, [x20]
	ldr	w8, [x20, #8]
	eor	w8, w8, #0x1
	str	w8, [x20, #8]
LBB0_8:
	mov	x0, x22
	bl	_spin_unlock
	bl	_wmb
Lloh10:
	adrp	x8, _A_SG_KDOORBELL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _A_SG_KDOORBELL@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x8, _F_SELEGRCNTX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _F_SELEGRCNTX@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	ldr	w0, [x20, #24]
	bl	_V_EGRCNTX
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
LBB0_9:
Lloh16:
	adrp	x8, _NET_XMIT_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NET_XMIT_SUCCESS@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_XMIT_SUCCESS,4,2           ; @NET_XMIT_SUCCESS
	.comm	_F_WR_SOP,4,2                   ; @F_WR_SOP
	.comm	_F_WR_EOP,4,2                   ; @F_WR_EOP
	.comm	_TXQ_CTRL,4,2                   ; @TXQ_CTRL
	.comm	_NET_XMIT_CN,4,2                ; @NET_XMIT_CN
	.comm	_A_SG_KDOORBELL,4,2             ; @A_SG_KDOORBELL
	.comm	_F_SELEGRCNTX,4,2               ; @F_SELEGRCNTX
	.no_dead_strip	_ctrl_xmit
.subsections_via_symbols
