	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_init_vport_wfq             ## -- Begin function qed_init_vport_wfq
	.p2align	4, 0x90
_qed_init_vport_wfq:                    ## @qed_init_vport_wfq
	.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, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	%ecx, %edi
	callq	_QM_WFQ_INC_VAL
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movq	_QM_WFQ_MAX_INC_VAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jg	LBB0_9
## %bb.2:
	movq	_NUM_OF_TCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	movq	_QM_INVALID_PQ_ID@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	%rax, %r13
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx,%r13,4), %rdx
	cmpl	(%r15), %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	shlq	$2, %rdx
	movq	_QM_REG_WFQVPWEIGHT@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_qed_wr
	movq	_NUM_OF_TCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_OF_TCS,8,3                 ## @NUM_OF_TCS
	.comm	_QM_WFQ_MAX_INC_VAL,8,3         ## @QM_WFQ_MAX_INC_VAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid VPORT WFQ weight configuration\n"

	.comm	_QM_INVALID_PQ_ID,4,2           ## @QM_INVALID_PQ_ID
	.comm	_QM_REG_WFQVPWEIGHT,8,3         ## @QM_REG_WFQVPWEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_init_vport_wfq             ; -- Begin function qed_init_vport_wfq
	.p2align	2
_qed_init_vport_wfq:                    ; @qed_init_vport_wfq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x3
	bl	_QM_WFQ_INC_VAL
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _QM_WFQ_MAX_INC_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_WFQ_MAX_INC_VAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_7
; %bb.2:
Lloh3:
	adrp	x23, _NUM_OF_TCS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NUM_OF_TCS@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x24, #0
Lloh5:
	adrp	x25, _QM_INVALID_PQ_ID@GOTPAGE
Lloh6:
	ldr	x25, [x25, _QM_INVALID_PQ_ID@GOTPAGEOFF]
Lloh7:
	adrp	x26, _QM_REG_WFQVPWEIGHT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _QM_REG_WFQVPWEIGHT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, x8
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x20, x24, lsl #2]
	ldr	w10, [x25]
	cmp	w9, w10
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_qed_wr
	ldr	x8, [x23]
	b	LBB0_4
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_OF_TCS,8,3                 ; @NUM_OF_TCS
	.comm	_QM_WFQ_MAX_INC_VAL,8,3         ; @QM_WFQ_MAX_INC_VAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid VPORT WFQ weight configuration\n"

	.comm	_QM_INVALID_PQ_ID,4,2           ; @QM_INVALID_PQ_ID
	.comm	_QM_REG_WFQVPWEIGHT,8,3         ; @QM_REG_WFQVPWEIGHT
.subsections_via_symbols
