	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_qpc_wqe_cnt
_set_qpc_wqe_cnt:                       ## @set_qpc_wqe_cnt
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %r15d
	movq	_V2_QPC_BYTE_4_SGE_SHIFT_M@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	_V2_QPC_BYTE_4_SGE_SHIFT_S@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movq	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	jle	LBB0_3
LBB0_2:
	movl	40(%rbx), %edi
	callq	_ilog2
	movl	%eax, %ecx
LBB0_3:
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_roce_set_field
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %edi
	movl	(%r12), %esi
	movq	_V2_QPC_BYTE_4_SGE_SHIFT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movq	%rbx, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_V2_QPC_BYTE_20_SQ_SHIFT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_V2_QPC_BYTE_20_SQ_SHIFT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	32(%r14), %edi
	callq	_ilog2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_roce_set_field
	movl	(%r15), %edi
	movq	_V2_QPC_BYTE_20_SQ_SHIFT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_20_SQ_SHIFT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	(%r12), %r15d
	movq	%r14, %rdx
	movq	_V2_QPC_BYTE_20_RQ_SHIFT_M@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	_V2_QPC_BYTE_20_RQ_SHIFT_S@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	8(%rdx), %rax
	movq	_IB_QPT_XRC_INI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.4:
	movq	_IB_QPT_XRC_TGT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, 16(%rdx)
	movl	$0, %ecx
	jne	LBB0_9
## %bb.6:
	movl	(%rdx), %edi
	callq	_ilog2
	movl	%eax, %ecx
	jmp	LBB0_9
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_roce_set_field
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	(%r14), %edx
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_roce_set_field                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_V2_QPC_BYTE_4_SGE_SHIFT_M,4,2  ## @V2_QPC_BYTE_4_SGE_SHIFT_M
	.comm	_V2_QPC_BYTE_4_SGE_SHIFT_S,4,2  ## @V2_QPC_BYTE_4_SGE_SHIFT_S
	.comm	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE,8,3 ## @HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE
	.comm	_V2_QPC_BYTE_20_SQ_SHIFT_M,4,2  ## @V2_QPC_BYTE_20_SQ_SHIFT_M
	.comm	_V2_QPC_BYTE_20_SQ_SHIFT_S,4,2  ## @V2_QPC_BYTE_20_SQ_SHIFT_S
	.comm	_V2_QPC_BYTE_20_RQ_SHIFT_M,4,2  ## @V2_QPC_BYTE_20_RQ_SHIFT_M
	.comm	_V2_QPC_BYTE_20_RQ_SHIFT_S,4,2  ## @V2_QPC_BYTE_20_RQ_SHIFT_S
	.comm	_IB_QPT_XRC_INI,8,3             ## @IB_QPT_XRC_INI
	.comm	_IB_QPT_XRC_TGT,8,3             ## @IB_QPT_XRC_TGT
	.no_dead_strip	_set_qpc_wqe_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_qpc_wqe_cnt
_set_qpc_wqe_cnt:                       ; @set_qpc_wqe_cnt
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x25, _V2_QPC_BYTE_4_SGE_SHIFT_M@GOTPAGE
Lloh4:
	ldr	x25, [x25, _V2_QPC_BYTE_4_SGE_SHIFT_M@GOTPAGEOFF]
	ldr	w23, [x1, #4]
	ldr	w22, [x25]
Lloh5:
	adrp	x26, _V2_QPC_BYTE_4_SGE_SHIFT_S@GOTPAGE
Lloh6:
	ldr	x26, [x26, _V2_QPC_BYTE_4_SGE_SHIFT_S@GOTPAGEOFF]
	ldr	w24, [x26]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
Lloh7:
	adrp	x9, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_ilog2
	mov	x3, x0
	b	LBB0_4
LBB0_3:
	mov	w3, #0
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_roce_set_field
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	w3, #0
	bl	_roce_set_field
Lloh10:
	adrp	x25, _V2_QPC_BYTE_20_SQ_SHIFT_M@GOTPAGE
Lloh11:
	ldr	x25, [x25, _V2_QPC_BYTE_20_SQ_SHIFT_M@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	w23, [x25]
Lloh12:
	adrp	x26, _V2_QPC_BYTE_20_SQ_SHIFT_S@GOTPAGE
Lloh13:
	ldr	x26, [x26, _V2_QPC_BYTE_20_SQ_SHIFT_S@GOTPAGEOFF]
	ldr	w24, [x26]
	ldr	w0, [x20, #32]
	bl	_ilog2
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_roce_set_field
	ldr	w0, [x19]
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	w3, #0
	bl	_roce_set_field
	mov	w3, #0
	ldr	w21, [x21]
Lloh14:
	adrp	x24, _V2_QPC_BYTE_20_RQ_SHIFT_M@GOTPAGE
Lloh15:
	ldr	x24, [x24, _V2_QPC_BYTE_20_RQ_SHIFT_M@GOTPAGEOFF]
	ldr	w22, [x24]
Lloh16:
	adrp	x25, _V2_QPC_BYTE_20_RQ_SHIFT_S@GOTPAGE
Lloh17:
	ldr	x25, [x25, _V2_QPC_BYTE_20_RQ_SHIFT_S@GOTPAGEOFF]
	ldr	w23, [x25]
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _IB_QPT_XRC_INI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_QPT_XRC_INI@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.5:
Lloh21:
	adrp	x9, _IB_QPT_XRC_TGT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_QPT_XRC_TGT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w3, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [x20]
	bl	_ilog2
	mov	x3, x0
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_roce_set_field
	ldr	w0, [x19]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	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
	b	_roce_set_field
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_V2_QPC_BYTE_4_SGE_SHIFT_M,4,2  ; @V2_QPC_BYTE_4_SGE_SHIFT_M
	.comm	_V2_QPC_BYTE_4_SGE_SHIFT_S,4,2  ; @V2_QPC_BYTE_4_SGE_SHIFT_S
	.comm	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE,8,3 ; @HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE
	.comm	_V2_QPC_BYTE_20_SQ_SHIFT_M,4,2  ; @V2_QPC_BYTE_20_SQ_SHIFT_M
	.comm	_V2_QPC_BYTE_20_SQ_SHIFT_S,4,2  ; @V2_QPC_BYTE_20_SQ_SHIFT_S
	.comm	_V2_QPC_BYTE_20_RQ_SHIFT_M,4,2  ; @V2_QPC_BYTE_20_RQ_SHIFT_M
	.comm	_V2_QPC_BYTE_20_RQ_SHIFT_S,4,2  ; @V2_QPC_BYTE_20_RQ_SHIFT_S
	.comm	_IB_QPT_XRC_INI,8,3             ; @IB_QPT_XRC_INI
	.comm	_IB_QPT_XRC_TGT,8,3             ; @IB_QPT_XRC_TGT
	.no_dead_strip	_set_qpc_wqe_cnt
.subsections_via_symbols
