	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_init_qm_pq
_qed_init_qm_pq:                        ## @qed_init_qm_pq
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	callq	_qed_init_qm_get_num_pqs
	cmpq	%rax, %rbx
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_DP_ERR
LBB0_2:
	movl	(%r14), %eax
	movq	32(%r13), %rcx
	leaq	(%rbx,%rbx,2), %rdx
	movl	%eax, 20(%rcx,%rdx,8)
	movq	16(%r13), %rbx
	movq	8(%r13), %rax
	addq	%rbx, %rax
	movq	%rax, (%rcx,%rdx,8)
	movl	%r12d, 16(%rcx,%rdx,8)
	movq	_PQ_INIT_DEFAULT_WRR_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx,%rdx,8)
	movq	_PQ_INIT_PF_RL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PQ_INIT_VF_RL@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	xorl	%edi, %edi
	testl	%r15d, %esi
	setne	%dil
	movl	%edi, 8(%rcx,%rdx,8)
	incq	(%r13)
	movq	_PQ_INIT_SHARE_VPORT@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_3
## %bb.4:
	testl	%r15d, (%rax)
	je	LBB0_6
LBB0_5:
	incq	24(%r13)
LBB0_6:
	movq	%r14, %rdi
	callq	_qed_init_qm_get_num_vports
	cmpq	%rax, %rbx
	jle	LBB0_8
## %bb.7:
	movq	16(%r13), %rbx
	movq	%r14, %rdi
	callq	_qed_init_qm_get_num_vports
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_DP_ERR
LBB0_8:
	movq	24(%r13), %rbx
	movq	%r14, %rdi
	callq	_qed_init_qm_get_num_pf_rls
	cmpq	%rax, %rbx
	jle	LBB0_9
## %bb.10:
	movq	24(%r13), %rbx
	movq	%r14, %rdi
	callq	_qed_init_qm_get_num_pf_rls
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_ERR                         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	incq	%rbx
	movq	%rbx, 16(%r13)
	testl	%r15d, (%rax)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pq overflow! pq %d, max pq %d\n"

	.comm	_PQ_INIT_DEFAULT_WRR_GROUP,4,2  ## @PQ_INIT_DEFAULT_WRR_GROUP
	.comm	_PQ_INIT_PF_RL,4,2              ## @PQ_INIT_PF_RL
	.comm	_PQ_INIT_VF_RL,4,2              ## @PQ_INIT_VF_RL
	.comm	_PQ_INIT_SHARE_VPORT,4,2        ## @PQ_INIT_SHARE_VPORT
L_.str.1:                               ## @.str.1
	.asciz	"vport overflow! qm_info->num_vports %d, qm_init_get_num_vports() %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"rl overflow! qm_info->num_pf_rls %d, qm_init_get_num_pf_rls() %d\n"

	.no_dead_strip	_qed_init_qm_pq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_init_qm_pq
_qed_init_qm_pq:                        ; @qed_init_qm_pq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x1]
	bl	_qed_init_qm_get_num_pqs
	cmp	x23, x0
	b.ls	LBB0_2
; %bb.1:
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_DP_ERR
LBB0_2:
	ldr	w8, [x19]
	ldr	x9, [x20, #32]
	mov	w10, #24
	madd	x9, x23, x10, x9
	ldp	x10, x23, [x20, #8]
	ldr	x11, [x20]
	add	x10, x23, x10
	str	x10, [x9]
	stp	w22, w8, [x9, #16]
Lloh2:
	adrp	x8, _PQ_INIT_DEFAULT_WRR_GROUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PQ_INIT_DEFAULT_WRR_GROUP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x9, #12]
Lloh5:
	adrp	x8, _PQ_INIT_PF_RL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PQ_INIT_PF_RL@GOTPAGEOFF]
Lloh7:
	adrp	x10, _PQ_INIT_VF_RL@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PQ_INIT_VF_RL@GOTPAGEOFF]
	ldr	w12, [x8]
Lloh9:
	ldr	w10, [x10]
	orr	w10, w12, w10
	tst	w10, w21
	cset	w10, ne
	str	w10, [x9, #8]
	add	x9, x11, #1
	str	x9, [x20]
Lloh10:
	adrp	x9, _PQ_INIT_SHARE_VPORT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PQ_INIT_SHARE_VPORT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w21
	b.ne	LBB0_4
; %bb.3:
	add	x23, x23, #1
	str	x23, [x20, #16]
LBB0_4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #24]
	add	x8, x8, #1
	str	x8, [x20, #24]
LBB0_6:
	mov	x0, x19
	bl	_qed_init_qm_get_num_vports
	cmp	x23, x0
	b.le	LBB0_8
; %bb.7:
	ldr	x21, [x20, #16]
	mov	x0, x19
	bl	_qed_init_qm_get_num_vports
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DP_ERR
LBB0_8:
	ldr	x21, [x20, #24]
	mov	x0, x19
	bl	_qed_init_qm_get_num_pf_rls
	cmp	x21, x0
	b.le	LBB0_10
; %bb.9:
	ldr	x20, [x20, #24]
	mov	x0, x19
	bl	_qed_init_qm_get_num_pf_rls
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DP_ERR
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pq overflow! pq %d, max pq %d\n"

	.comm	_PQ_INIT_DEFAULT_WRR_GROUP,4,2  ; @PQ_INIT_DEFAULT_WRR_GROUP
	.comm	_PQ_INIT_PF_RL,4,2              ; @PQ_INIT_PF_RL
	.comm	_PQ_INIT_VF_RL,4,2              ; @PQ_INIT_VF_RL
	.comm	_PQ_INIT_SHARE_VPORT,4,2        ; @PQ_INIT_SHARE_VPORT
l_.str.1:                               ; @.str.1
	.asciz	"vport overflow! qm_info->num_vports %d, qm_init_get_num_vports() %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"rl overflow! qm_info->num_pf_rls %d, qm_init_get_num_pf_rls() %d\n"

	.no_dead_strip	_qed_init_qm_pq
.subsections_via_symbols
