	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_ena_vsi_txq                ## -- Begin function ice_ena_vsi_txq
	.p2align	4, 0x90
_ice_ena_vsi_txq:                       ## @ice_ena_vsi_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_ICE_SCHED_PORT_STATE_READY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.2:
	movl	%r8d, %r14d
	cmpl	$1, %r8d
	jg	LBB0_4
## %bb.3:
	movq	%r9, %r13
	cmpl	$2, (%r9)
	jl	LBB0_8
LBB0_4:
	movq	_ICE_ERR_MAX_LIMIT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%esi, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ice_is_vsi_valid
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	leaq	8(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_ice_get_lan_q_ctx
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_ICE_SCHED_NODE_OWNER_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_ice_sched_get_free_qparent
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	24(%rbp), %r8
	movl	16(%rbp), %ecx
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	%eax, -72(%rbp)
	movq	_ICE_AQC_ELEM_VALID_GENERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rdx
	movl	%eax, 8(%rdx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_ice_aq_add_lan_txq
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %ebx
	movq	_ICE_DBG_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	8(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ice_debug
	jmp	LBB0_17
LBB0_13:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movq	_ICE_DBG_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ice_debug
LBB0_15:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_16:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_ICE_AQC_ELEM_TYPE_LEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	(%r15), %rsi
	decq	%rsi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ice_sched_add_node
	movl	%eax, %ebx
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_SCHED_PORT_STATE_READY,8,3 ## @ICE_SCHED_PORT_STATE_READY
	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.comm	_ICE_ERR_MAX_LIMIT,4,2          ## @ICE_ERR_MAX_LIMIT
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_DBG_SCHED,4,2              ## @ICE_DBG_SCHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enaq: invalid queue handle %d\n"

	.comm	_ICE_SCHED_NODE_OWNER_LAN,4,2   ## @ICE_SCHED_NODE_OWNER_LAN
	.comm	_ICE_AQC_ELEM_VALID_GENERIC,4,2 ## @ICE_AQC_ELEM_VALID_GENERIC
L_.str.1:                               ## @.str.1
	.asciz	"enable queue %d failed %d\n"

	.comm	_ICE_AQC_ELEM_TYPE_LEAF,4,2     ## @ICE_AQC_ELEM_TYPE_LEAF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_ena_vsi_txq                ; -- Begin function ice_ena_vsi_txq
	.p2align	2
_ice_ena_vsi_txq:                       ; @ice_ena_vsi_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	xzr, xzr, [sp, #16]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICE_SCHED_PORT_STATE_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_SCHED_PORT_STATE_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x26, x4
	cmp	w4, #1
	b.gt	LBB0_4
; %bb.3:
	mov	x22, x5
	ldr	w8, [x5]
	cmp	w8, #2
	b.lt	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _ICE_ERR_MAX_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_ERR_MAX_LIMIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
LBB0_6:
	ldr	w24, [x8]
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	x24, x7
	mov	x25, x6
	mov	x20, x3
	mov	x27, x2
	mov	x28, x1
	ldr	x23, [x21, #16]
	mov	x0, x23
	bl	_ice_is_vsi_valid
	cbz	w0, LBB0_13
; %bb.9:
	add	x0, x21, #8
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x28
	mov	x2, x27
	mov	x3, x20
	bl	_ice_get_lan_q_ctx
	cbz	x0, LBB0_14
; %bb.10:
	mov	x19, x0
Lloh7:
	adrp	x8, _ICE_SCHED_NODE_OWNER_LAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICE_SCHED_NODE_OWNER_LAN@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x28
	mov	x2, x27
	bl	_ice_sched_get_free_qparent
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w8, [x0]
	str	w8, [x22, #16]
	str	w8, [sp, #24]
Lloh10:
	adrp	x8, _ICE_AQC_ELEM_VALID_GENERIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICE_AQC_ELEM_VALID_GENERIC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9, #8]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	mov	x3, x25
	mov	x4, x24
	bl	_ice_aq_add_lan_txq
	cbz	w0, LBB0_16
; %bb.12:
	mov	x24, x0
Lloh13:
	adrp	x8, _ICE_DBG_SCHED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICE_DBG_SCHED@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x3, x0
	ldr	w8, [x23, #8]
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x1, x19
	bl	_ice_debug
	b	LBB0_17
LBB0_13:
Lloh18:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
Lloh20:
	adrp	x8, _ICE_DBG_SCHED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_DBG_SCHED@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x20
	bl	_ice_debug
LBB0_15:
Lloh25:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh27:
	ldr	w24, [x8]
	b	LBB0_17
LBB0_16:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _ICE_AQC_ELEM_TYPE_LEAF@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ICE_AQC_ELEM_TYPE_LEAF@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	str	w20, [x19]
	ldr	x8, [x23]
	sub	x1, x8, #1
	add	x2, sp, #16
	mov	x0, x21
	bl	_ice_sched_add_node
	mov	x24, x0
LBB0_17:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_mutex_unlock
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_SCHED_PORT_STATE_READY,8,3 ; @ICE_SCHED_PORT_STATE_READY
	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.comm	_ICE_ERR_MAX_LIMIT,4,2          ; @ICE_ERR_MAX_LIMIT
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_DBG_SCHED,4,2              ; @ICE_DBG_SCHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enaq: invalid queue handle %d\n"

	.comm	_ICE_SCHED_NODE_OWNER_LAN,4,2   ; @ICE_SCHED_NODE_OWNER_LAN
	.comm	_ICE_AQC_ELEM_VALID_GENERIC,4,2 ; @ICE_AQC_ELEM_VALID_GENERIC
l_.str.1:                               ; @.str.1
	.asciz	"enable queue %d failed %d\n"

	.comm	_ICE_AQC_ELEM_TYPE_LEAF,4,2     ; @ICE_AQC_ELEM_TYPE_LEAF
.subsections_via_symbols
