	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_aq_add_lan_txq
_ice_aq_add_lan_txq:                    ## @ice_aq_add_lan_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_ice_aqc_opc_add_txqs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	_ICE_LAN_TXQ_MAX_QGRPS@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jl	LBB0_1
## %bb.3:
	leaq	(,%r14,4), %rax
	leaq	(%rax,%rax,2), %r8
	testq	%r14, %r14
	jle	LBB0_4
## %bb.5:
	leaq	-1(%r14), %rdx
	movl	%r14d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	movq	%r13, %rsi
	testq	%r9, %r9
	jne	LBB0_11
	jmp	LBB0_12
LBB0_4:
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %r10
	movq	%r14, %rdi
	andq	$-4, %rdi
	xorl	%edx, %edx
	movq	%r13, %rsi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rax
	movslq	(%rsi), %rsi
	leaq	(%rdx,%rsi,4), %rdx
	movq	8(%rax,%rsi,4), %rbx
	movslq	(%rax,%rsi,4), %rax
	leaq	(%rdx,%rax,4), %rdx
	movq	8(%rbx,%rax,4), %rcx
	movslq	(%rbx,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rdx
	movslq	(%rcx,%rax,4), %rsi
	leaq	(%rdx,%rsi,4), %rdx
	shlq	$2, %rsi
	addq	8(%rcx,%rax,4), %rsi
	addq	$-4, %rdi
	jne	LBB0_8
## %bb.9:
	movq	%r10, %rbx
	testq	%r9, %r9
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rsi), %rax
	leaq	(%rdx,%rax,4), %rdx
	shlq	$2, %rax
	addq	8(%rsi), %rax
	movq	%rax, %rsi
	decq	%r9
	jne	LBB0_11
LBB0_12:
	addq	%r8, %rdx
	cmpq	%r15, %rdx
	jne	LBB0_1
## %bb.13:
	movq	_ICE_AQ_FLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -56(%rbp)
	movq	%r14, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_ice_aq_send_cmd
	jmp	LBB0_14
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ice_aqc_opc_add_txqs,4,2       ## @ice_aqc_opc_add_txqs
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_LAN_TXQ_MAX_QGRPS,8,3      ## @ICE_LAN_TXQ_MAX_QGRPS
	.comm	_ICE_AQ_FLAG_RD,4,2             ## @ICE_AQ_FLAG_RD
	.no_dead_strip	_ice_aq_add_lan_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_aq_add_lan_txq
_ice_aq_add_lan_txq:                    ; @ice_aq_add_lan_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ice_aqc_opc_add_txqs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ice_aqc_opc_add_txqs@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_ice_fill_dflt_direct_cmd_desc
	cbz	x21, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _ICE_LAN_TXQ_MAX_QGRPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_LAN_TXQ_MAX_QGRPS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x23
	b.lt	LBB0_8
; %bb.2:
	add	x8, x23, x23, lsl #1
	lsl	x8, x8, #2
	cmp	x23, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
	mov	x10, x23
	mov	x11, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #8]
	ldrsw	x11, [x11]
	lsl	x11, x11, #2
	add	x9, x11, x9
	add	x11, x12, x11
	subs	x10, x10, #1
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	add	x8, x9, x8
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _ICE_AQ_FLAG_RD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQ_FLAG_RD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp]
	orr	w8, w8, w0
	str	w8, [sp]
	str	x23, [sp, #8]
	mov	x1, sp
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_ice_aq_send_cmd
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ice_aqc_opc_add_txqs,4,2       ; @ice_aqc_opc_add_txqs
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_LAN_TXQ_MAX_QGRPS,8,3      ; @ICE_LAN_TXQ_MAX_QGRPS
	.comm	_ICE_AQ_FLAG_RD,4,2             ; @ICE_AQ_FLAG_RD
	.no_dead_strip	_ice_aq_add_lan_txq
.subsections_via_symbols
