	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_vp_wfq_rt_init
_qed_vp_wfq_rt_init:                    ## @qed_vp_wfq_rt_init
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r15), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_QM_WFQ_INC_VAL
	movq	%rax, %r13
	movq	_QM_WFQ_MAX_INC_VAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NUM_OF_TCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	cmpq	%rax, %r14
	jae	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rbx
	movq	_QM_INVALID_PQ_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_QM_REG_WFQVPCRD_RT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	_QM_WFQ_CRD_REG_SIGN_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_STORE_RT_REG
	movq	_QM_REG_WFQVPWEIGHT_RT_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_STORE_RT_REG
	movq	_NUM_OF_TCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_NOTICE
	movl	$-1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_NUM_OF_TCS,8,3                 ## @NUM_OF_TCS
	.comm	_QM_INVALID_PQ_ID,8,3           ## @QM_INVALID_PQ_ID
	.comm	_QM_REG_WFQVPCRD_RT_OFFSET,8,3  ## @QM_REG_WFQVPCRD_RT_OFFSET
	.comm	_QM_WFQ_CRD_REG_SIGN_BIT,8,3    ## @QM_WFQ_CRD_REG_SIGN_BIT
	.comm	_QM_REG_WFQVPWEIGHT_RT_OFFSET,8,3 ## @QM_REG_WFQVPWEIGHT_RT_OFFSET
	.no_dead_strip	_qed_vp_wfq_rt_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_vp_wfq_rt_init
_qed_vp_wfq_rt_init:                    ; @qed_vp_wfq_rt_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x1, x2, [sp]                    ; 16-byte Folded Spill
	cbz	x1, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x23, #0
Lloh0:
	adrp	x25, _NUM_OF_TCS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NUM_OF_TCS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _QM_INVALID_PQ_ID@GOTPAGE
Lloh3:
	ldr	x26, [x26, _QM_INVALID_PQ_ID@GOTPAGEOFF]
Lloh4:
	adrp	x28, _QM_WFQ_CRD_REG_SIGN_BIT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _QM_WFQ_CRD_REG_SIGN_BIT@GOTPAGEOFF]
Lloh6:
	adrp	x24, _QM_REG_WFQVPWEIGHT_RT_OFFSET@GOTPAGE
Lloh7:
	ldr	x24, [x24, _QM_REG_WFQVPWEIGHT_RT_OFFSET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x23, x8
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x23, lsl #4
	ldr	w0, [x8, #8]
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_QM_WFQ_INC_VAL
Lloh8:
	adrp	x8, _QM_WFQ_MAX_INC_VAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QM_WFQ_MAX_INC_VAL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	mov	x21, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x9, x23, lsl #4
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20]
	ldr	x27, [x9, x21, lsl #3]
	ldr	x9, [x26]
	cmp	x27, x9
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh11:
	adrp	x8, _QM_REG_WFQVPCRD_RT_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QM_REG_WFQVPCRD_RT_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x27
	ldr	x2, [x28]
	mov	x0, x19
	bl	_STORE_RT_REG
	ldr	x8, [x24]
	add	x1, x8, x27
	mov	x0, x19
	mov	x2, x22
	bl	_STORE_RT_REG
	ldr	x8, [x25]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.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	_NUM_OF_TCS,8,3                 ; @NUM_OF_TCS
	.comm	_QM_INVALID_PQ_ID,8,3           ; @QM_INVALID_PQ_ID
	.comm	_QM_REG_WFQVPCRD_RT_OFFSET,8,3  ; @QM_REG_WFQVPCRD_RT_OFFSET
	.comm	_QM_WFQ_CRD_REG_SIGN_BIT,8,3    ; @QM_WFQ_CRD_REG_SIGN_BIT
	.comm	_QM_REG_WFQVPWEIGHT_RT_OFFSET,8,3 ; @QM_REG_WFQVPWEIGHT_RT_OFFSET
	.no_dead_strip	_qed_vp_wfq_rt_init
.subsections_via_symbols
