	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_check_gsi_qp_attrs
_qedr_check_gsi_qp_attrs:               ## @qedr_check_gsi_qp_attrs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rdx
	movq	_QEDR_GSI_MAX_RECV_SGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_2:
	movq	8(%rsi), %rdx
	movq	_QEDR_GSI_MAX_RECV_WR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	16(%rsi), %rdx
	movq	_QEDR_GSI_MAX_SEND_WR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rdx
	jle	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDR_GSI_MAX_RECV_SGE,8,3      ## @QEDR_GSI_MAX_RECV_SGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" create gsi qp: failed. max_recv_sge is larger the max %d>%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QEDR_GSI_MAX_RECV_WR,8,3       ## @QEDR_GSI_MAX_RECV_WR
L_.str.1:                               ## @.str.1
	.asciz	" create gsi qp: failed. max_recv_wr is too large %d>%d\n"

	.comm	_QEDR_GSI_MAX_SEND_WR,8,3       ## @QEDR_GSI_MAX_SEND_WR
L_.str.2:                               ## @.str.2
	.asciz	" create gsi qp: failed. max_send_wr is too large %d>%d\n"

	.no_dead_strip	_qedr_check_gsi_qp_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_check_gsi_qp_attrs
_qedr_check_gsi_qp_attrs:               ; @qedr_check_gsi_qp_attrs
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x2, [x1]
Lloh0:
	adrp	x8, _QEDR_GSI_MAX_RECV_SGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QEDR_GSI_MAX_RECV_SGE@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x8]
	cmp	x2, x3
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x2, [x1, #8]
Lloh5:
	adrp	x8, _QEDR_GSI_MAX_RECV_WR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QEDR_GSI_MAX_RECV_WR@GOTPAGEOFF]
Lloh7:
	ldr	x3, [x8]
	cmp	x2, x3
	b.le	LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x2, [x1, #16]
Lloh10:
	adrp	x8, _QEDR_GSI_MAX_SEND_WR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QEDR_GSI_MAX_SEND_WR@GOTPAGEOFF]
Lloh12:
	ldr	x3, [x8]
	cmp	x2, x3
	b.le	LBB0_7
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_DP_ERR
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDR_GSI_MAX_RECV_SGE,8,3      ; @QEDR_GSI_MAX_RECV_SGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" create gsi qp: failed. max_recv_sge is larger the max %d>%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QEDR_GSI_MAX_RECV_WR,8,3       ; @QEDR_GSI_MAX_RECV_WR
l_.str.1:                               ; @.str.1
	.asciz	" create gsi qp: failed. max_recv_wr is too large %d>%d\n"

	.comm	_QEDR_GSI_MAX_SEND_WR,8,3       ; @QEDR_GSI_MAX_SEND_WR
l_.str.2:                               ; @.str.2
	.asciz	" create gsi qp: failed. max_send_wr is too large %d>%d\n"

	.no_dead_strip	_qedr_check_gsi_qp_attrs
.subsections_via_symbols
