	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_alloc_ctrl_txq          ## -- Begin function t4_sge_alloc_ctrl_txq
	.p2align	4, 0x90
_t4_sge_alloc_ctrl_txq:                 ## @t4_sge_alloc_ctrl_txq
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_netdev_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_STAT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	sarl	$2, %r13d
	addl	24(%r12), %r13d
	movl	(%r14), %edi
	leaq	40(%r12), %r15
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	movl	%r13d, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_alloc_ring
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_FW_EQ_CTRL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP
	movl	%eax, %ebx
	movq	_FW_CMD_REQUEST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_CMD_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_CMD_EXEC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	4(%r14), %edi
	callq	_FW_EQ_CTRL_CMD_PFN
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_FW_EQ_CTRL_CMD_VFN
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_htonl
	movq	%rax, -72(%rbp)
	movq	_FW_EQ_CTRL_CMD_ALLOC@GOTPCREL(%rip), %rax
	movq	_FW_EQ_CTRL_CMD_EQSTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	-72(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-120(%rbp), %xmm0
	movups	-104(%rbp), %xmm1
	movups	-88(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_htonl
	movq	%rax, -80(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FW_EQ_CTRL_CMD_CMPLIQID
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, -120(%rbp)
	xorl	%edi, %edi
	callq	_htonl
	movq	%rax, -88(%rbp)
	movl	$2, %edi
	callq	_FW_EQ_CTRL_CMD_HOSTFCMODE
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_FW_EQ_CTRL_CMD_PCIECHN
	orl	%eax, %ebx
	movq	_FW_EQ_CTRL_CMD_FETCHRO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_FW_EQ_CTRL_CMD_IQID
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_htonl
	movq	%rax, -96(%rbp)
	movl	$2, %edi
	callq	_FW_EQ_CTRL_CMD_FBMIN
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_FW_EQ_CTRL_CMD_FBMAX
	orl	%eax, %ebx
	movl	$5, %edi
	callq	_FW_EQ_CTRL_CMD_CIDXFTHRESH
	orl	%eax, %ebx
	movl	%r13d, %edi
	callq	_FW_EQ_CTRL_CMD_EQSIZE
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_htonl
	movq	%rax, -104(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_be64
	movl	%eax, -112(%rbp)
	movl	4(%r14), %esi
	leaq	-120(%rbp), %rdx
	movq	%r14, %rdi
	movl	$56, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	shll	$2, %r13d
	movq	32(%r12), %rdx
	movl	40(%r12), %ecx
	movl	%r13d, %esi
	callq	_dma_free_coherent
	movq	$0, 32(%r12)
                                        ## kill: def $ebx killed $ebx def $rbx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	24(%r12), %rbx
	movq	-120(%rbp), %rdi
	callq	_ntohl
	movl	%eax, %edi
	callq	_FW_EQ_CTRL_CMD_EQID_GET
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_init_txq
	movq	%r14, 16(%r12)
	leaq	12(%r12), %rdi
	callq	_skb_queue_head_init
	leaq	8(%r12), %rdi
	movq	_restart_ctrlq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_tasklet_init
	movq	$0, (%r12)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAT_LEN,4,2                   ## @STAT_LEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FW_EQ_CTRL_CMD,4,2             ## @FW_EQ_CTRL_CMD
	.comm	_FW_CMD_REQUEST,4,2             ## @FW_CMD_REQUEST
	.comm	_FW_CMD_WRITE,4,2               ## @FW_CMD_WRITE
	.comm	_FW_CMD_EXEC,4,2                ## @FW_CMD_EXEC
	.comm	_FW_EQ_CTRL_CMD_ALLOC,4,2       ## @FW_EQ_CTRL_CMD_ALLOC
	.comm	_FW_EQ_CTRL_CMD_EQSTART,4,2     ## @FW_EQ_CTRL_CMD_EQSTART
	.comm	_FW_EQ_CTRL_CMD_FETCHRO,4,2     ## @FW_EQ_CTRL_CMD_FETCHRO
	.comm	_restart_ctrlq,4,2              ## @restart_ctrlq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_sge_alloc_ctrl_txq          ; -- Begin function t4_sge_alloc_ctrl_txq
	.p2align	2
_t4_sge_alloc_ctrl_txq:                 ; @t4_sge_alloc_ctrl_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x26, x4
	mov	x24, x3
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_netdev_priv
	mov	x25, x0
	mov	x21, x19
	ldr	w8, [x21, #24]!
Lloh0:
	adrp	x9, _STAT_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STAT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w22, w8, w9, asr #2
	ldr	w0, [x20]
	add	x23, x21, #16
	mov	x1, x22
	mov	w2, #4
	mov	w3, #0
	mov	x4, x23
	mov	x5, #0
	mov	w6, #0
	bl	_alloc_ring
	str	x0, [x21, #8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _FW_EQ_CTRL_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_EQ_CTRL_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FW_CMD_OP
Lloh6:
	adrp	x8, _FW_CMD_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_CMD_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh9:
	adrp	x9, _FW_CMD_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FW_CMD_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _FW_CMD_EXEC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_CMD_EXEC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w27, w8, w9
	ldr	w0, [x20, #4]
	bl	_FW_EQ_CTRL_CMD_PFN
	orr	w27, w27, w0
	mov	w0, #0
	bl	_FW_EQ_CTRL_CMD_VFN
	orr	w0, w27, w0
	bl	_htonl
	str	x0, [sp, #104]
Lloh15:
	adrp	x8, _FW_EQ_CTRL_CMD_ALLOC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FW_EQ_CTRL_CMD_ALLOC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _FW_EQ_CTRL_CMD_EQSTART@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FW_EQ_CTRL_CMD_EQSTART@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w27, w9, w8
	ldur	q0, [sp, #56]
	ldur	q1, [sp, #72]
	stp	q0, q1, [sp]
	ldur	q0, [sp, #88]
	str	q0, [sp, #32]
	str	x0, [sp, #48]
	mov	x0, sp
	bl	_FW_LEN16
	orr	w0, w27, w0
	bl	_htonl
	str	x0, [sp, #96]
	mov	x0, x26
	bl	_FW_EQ_CTRL_CMD_CMPLIQID
	bl	_htonl
	str	x0, [sp, #56]
	mov	w0, #0
	bl	_htonl
	str	x0, [sp, #88]
	mov	w0, #2
	bl	_FW_EQ_CTRL_CMD_HOSTFCMODE
	mov	x26, x0
	ldr	w0, [x25]
	bl	_FW_EQ_CTRL_CMD_PCIECHN
	orr	w8, w0, w26
Lloh21:
	adrp	x9, _FW_EQ_CTRL_CMD_FETCHRO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FW_EQ_CTRL_CMD_FETCHRO@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w25, w8, w9
	mov	x0, x24
	bl	_FW_EQ_CTRL_CMD_IQID
	orr	w0, w25, w0
	bl	_htonl
	str	x0, [sp, #80]
	mov	w0, #2
	bl	_FW_EQ_CTRL_CMD_FBMIN
	mov	x24, x0
	mov	w0, #3
	bl	_FW_EQ_CTRL_CMD_FBMAX
	orr	w24, w0, w24
	mov	w0, #5
	bl	_FW_EQ_CTRL_CMD_CIDXFTHRESH
	orr	w24, w24, w0
	mov	x0, x22
	bl	_FW_EQ_CTRL_CMD_EQSIZE
	orr	w0, w24, w0
	bl	_htonl
	str	x0, [sp, #72]
	ldr	w0, [x23]
	bl	_cpu_to_be64
	str	w0, [sp, #64]
	ldr	w1, [x20, #4]
	add	x2, sp, #56
	add	x4, sp, #56
	mov	x0, x20
	mov	w3, #56
	bl	_t4_wr_mbox
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	lsl	w1, w22, #2
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #40]
	bl	_dma_free_coherent
	str	xzr, [x19, #32]
	b	LBB0_5
LBB0_3:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_4:
	ldr	x0, [sp, #56]
	bl	_ntohl
	bl	_FW_EQ_CTRL_CMD_EQID_GET
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_init_txq
	str	x20, [x19, #16]
	add	x0, x19, #12
	bl	_skb_queue_head_init
	add	x0, x19, #8
Lloh27:
	adrp	x8, _restart_ctrlq@GOTPAGE
Lloh28:
	ldr	x8, [x8, _restart_ctrlq@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	str	xzr, [x19]
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_STAT_LEN,4,2                   ; @STAT_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FW_EQ_CTRL_CMD,4,2             ; @FW_EQ_CTRL_CMD
	.comm	_FW_CMD_REQUEST,4,2             ; @FW_CMD_REQUEST
	.comm	_FW_CMD_WRITE,4,2               ; @FW_CMD_WRITE
	.comm	_FW_CMD_EXEC,4,2                ; @FW_CMD_EXEC
	.comm	_FW_EQ_CTRL_CMD_ALLOC,4,2       ; @FW_EQ_CTRL_CMD_ALLOC
	.comm	_FW_EQ_CTRL_CMD_EQSTART,4,2     ; @FW_EQ_CTRL_CMD_EQSTART
	.comm	_FW_EQ_CTRL_CMD_FETCHRO,4,2     ; @FW_EQ_CTRL_CMD_FETCHRO
	.comm	_restart_ctrlq,4,2              ; @restart_ctrlq
.subsections_via_symbols
