	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_init_qm_sanity
_qed_init_qm_sanity:                    ## @qed_init_qm_sanity
	.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	%rdi, %r12
	callq	_qed_init_qm_get_num_vports
	movq	%rax, %rbx
	movq	_QED_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_RESC_NUM
	cmpq	%rax, %rbx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r15
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	movq	%r12, %rdi
	callq	_qed_init_qm_get_num_pqs
	movq	%rax, %rbx
	movq	_QED_PQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_RESC_NUM
	xorl	%r14d, %r14d
	cmpq	%rax, %rbx
	jle	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_QED_IS_ROCE_PERSONALITY
	leaq	L_.str.2(%rip), %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	$0, (%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_NOTICE
	movq	%r12, %rdi
	callq	_qed_init_qm_get_num_pqs
	movq	%rax, %rbx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_RESC_NUM
	cmpq	%rax, %rbx
	jg	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_VPORT,4,2                  ## @QED_VPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested amount of vports exceeds resource\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_PQ,4,2                     ## @QED_PQ
L_.str.1:                               ## @.str.1
	.asciz	"multi-tc roce was disabled to reduce requested amount of pqs\n"

L_.str.2:                               ## @.str.2
	.asciz	"requested amount of pqs exceeds resource\n"

	.no_dead_strip	_qed_init_qm_sanity
.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_sanity
_qed_init_qm_sanity:                    ; @qed_init_qm_sanity
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_qed_init_qm_get_num_vports
	mov	x20, x0
Lloh0:
	adrp	x8, _QED_VPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_VPORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RESC_NUM
	cmp	x20, x0
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_qed_init_qm_get_num_pqs
	mov	x20, x0
Lloh5:
	adrp	x21, _QED_PQ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _QED_PQ@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_RESC_NUM
	cmp	x20, x0
	b.le	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_QED_IS_ROCE_PERSONALITY
	cbz	x0, LBB0_5
; %bb.4:
	str	xzr, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	mov	x0, x19
	bl	_qed_init_qm_get_num_pqs
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_RESC_NUM
	cmp	x20, x0
	b.le	LBB0_7
LBB0_5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_DP_ERR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_VPORT,4,2                  ; @QED_VPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested amount of vports exceeds resource\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_PQ,4,2                     ; @QED_PQ
l_.str.1:                               ; @.str.1
	.asciz	"multi-tc roce was disabled to reduce requested amount of pqs\n"

l_.str.2:                               ; @.str.2
	.asciz	"requested amount of pqs exceeds resource\n"

	.no_dead_strip	_qed_init_qm_sanity
.subsections_via_symbols
