	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_set_common_qp_params
_qedr_set_common_qp_params:             ## @qedr_set_common_qp_params
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	68(%rsi), %rdi
	callq	_spin_lock_init
	leaq	64(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r12, 56(%rbx)
	movl	36(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	20(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	_QED_ROCE_QP_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	(%r15), %rax
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%rbx)
	movl	32(%r15), %edi
	callq	_get_qedr_cq
	movq	%rax, 8(%rbx)
	movq	%r14, 48(%rbx)
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_get_qedr_srq
	movl	%eax, 44(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	28(%r15), %edi
	callq	_get_qedr_cq
	movq	%rax, 32(%rbx)
	movl	16(%r15), %ecx
	movl	%ecx, 40(%rbx)
	movq	_QEDR_MSG_QP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_DEBUG
LBB0_3:
	movq	_QEDR_MSG_QP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r12), %ecx
	movl	28(%rbx), %r8d
	movl	24(%rbx), %r9d
	movl	(%rbx), %r10d
	movl	20(%rbx), %r11d
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r15)
	setne	%r12b
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r10
	pushq	%r11
	callq	_DP_DEBUG
	addq	$32, %rsp
	movl	(%r13), %esi
	movl	16(%rbx), %ecx
	movq	8(%rbx), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_DEBUG                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_ROCE_QP_STATE_RESET,4,2    ## @QED_ROCE_QP_STATE_RESET
	.comm	_IB_SIGNAL_ALL_WR,8,3           ## @IB_SIGNAL_ALL_WR
	.comm	_QEDR_MSG_QP,4,2                ## @QEDR_MSG_QP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RQ params:\trq_max_sges = %d, rq_cq_id = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"QP params:\tpd = %d, qp_type = %d, max_inline_data = %d, state = %d, signaled = %d, use_srq=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"SQ params:\tsq_max_sges = %d, sq_cq_id = %d\n"

	.no_dead_strip	_qedr_set_common_qp_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_set_common_qp_params
_qedr_set_common_qp_params:             ; @qedr_set_common_qp_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	add	x0, x1, #68
	bl	_spin_lock_init
	add	x0, x20, #64
	mov	w1, #1
	bl	_atomic_set
	ldp	w9, w8, [x21, #20]
	ldr	x10, [x21]
Lloh0:
	adrp	x11, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	ldp	w0, w10, [x21, #32]
	stp	w8, w10, [x20, #24]
Lloh3:
	adrp	x8, _QED_ROCE_QP_STATE_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_ROCE_QP_STATE_RESET@GOTPAGEOFF]
	str	x22, [x20, #56]
Lloh5:
	ldr	w8, [x8]
	stp	w9, w8, [x20, #16]
	cset	w8, eq
	str	w8, [x20]
	bl	_get_qedr_cq
	str	x0, [x20, #8]
	str	x19, [x20, #48]
	ldr	x0, [x21, #8]
Lloh6:
	adrp	x23, _QEDR_MSG_QP@GOTPAGE
Lloh7:
	ldr	x23, [x23, _QEDR_MSG_QP@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_get_qedr_srq
	str	w0, [x20, #44]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x21, #28]
	bl	_get_qedr_cq
	str	x0, [x20, #32]
	ldr	w3, [x21, #16]
	str	w3, [x20, #40]
	ldr	w1, [x23]
	ldr	w4, [x0]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_DEBUG
LBB0_3:
	ldr	w1, [x23]
	ldr	w3, [x22]
	ldp	w9, w4, [x20, #24]
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w8, ne
	ldr	w10, [x20, #20]
	ldr	w11, [x20]
	stp	x11, x8, [sp, #16]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	x9, x10, [sp]
	mov	x0, x19
	bl	_DP_DEBUG
	ldr	w1, [x23]
	ldr	w3, [x20, #16]
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	ldr	w4, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_DP_DEBUG
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_ROCE_QP_STATE_RESET,4,2    ; @QED_ROCE_QP_STATE_RESET
	.comm	_IB_SIGNAL_ALL_WR,8,3           ; @IB_SIGNAL_ALL_WR
	.comm	_QEDR_MSG_QP,4,2                ; @QEDR_MSG_QP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RQ params:\trq_max_sges = %d, rq_cq_id = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"QP params:\tpd = %d, qp_type = %d, max_inline_data = %d, state = %d, signaled = %d, use_srq=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"SQ params:\tsq_max_sges = %d, sq_cq_id = %d\n"

	.no_dead_strip	_qedr_set_common_qp_params
.subsections_via_symbols
