	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_check_qp_attrs
_qedr_check_qp_attrs:                   ## @qedr_check_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %r9
	movq	(%rdx), %rcx
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	(%rax), %rcx
	je	LBB0_3
## %bb.1:
	cmpq	%rdi, %rcx
	je	LBB0_3
## %bb.2:
	movq	_QEDR_MSG_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str(%rip), %rdx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_DP_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_3:
	movq	8(%rdx), %rax
	movq	(%rsi), %r8
	cmpq	%r8, %rax
	jle	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	movq	16(%rdx), %rax
	movq	8(%rsi), %r8
	cmpq	%r8, %rax
	jle	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_5
LBB0_9:
	movq	24(%rdx), %rax
	movq	16(%rsi), %r8
	cmpq	%r8, %rax
	jle	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rcx
LBB0_5:
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	movq	%rax, %rdx
LBB0_6:
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_DP_ERR
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movq	32(%rdx), %rdx
	cmpq	%r8, %rdx
	jle	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rax
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	jmp	LBB0_6
LBB0_13:
	xorl	%ebx, %ebx
	testq	%r9, %r9
	je	LBB0_18
## %bb.14:
	cmpq	%rdi, %rcx
	jne	LBB0_18
## %bb.15:
	leaq	L_.str.5(%rip), %rax
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_DP_ERR
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_QEDR_MSG_QP,4,2                ## @QEDR_MSG_QP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create qp: unsupported qp type=0x%x requested\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"create qp: cannot create a SQ with %d elements (max_send_wr=0x%x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"create qp: unsupported inline data size=0x%x requested (max_inline=0x%x)\n"

L_.str.3:                               ## @.str.3
	.asciz	"create qp: unsupported send_sge=0x%x requested (max_send_sge=0x%x)\n"

L_.str.4:                               ## @.str.4
	.asciz	"create qp: unsupported recv_sge=0x%x requested (max_recv_sge=0x%x)\n"

L_.str.5:                               ## @.str.5
	.asciz	"create qp: userspace can't create special QPs of type=0x%x\n"

	.no_dead_strip	_qedr_check_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_qp_attrs
_qedr_check_qp_attrs:                   ; @qedr_check_qp_attrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x3
	ldr	x3, [x2]
Lloh0:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_QPT_GSI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_QPT_GSI@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x3, x9
	ccmp	x3, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x2, #8]
	ldr	x11, [x1]
	cmp	x9, x11
	b.le	LBB0_4
; %bb.2:
	str	x11, [sp]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x8, _QEDR_MSG_QP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QEDR_MSG_QP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_DP_DEBUG
	b	LBB0_10
LBB0_4:
	ldr	x9, [x2, #16]
	ldr	x11, [x1, #8]
	cmp	x9, x11
	b.le	LBB0_6
; %bb.5:
	str	x11, [sp]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x9, [x2, #24]
	ldr	x11, [x1, #16]
	cmp	x9, x11
	b.le	LBB0_12
; %bb.7:
	str	x11, [sp]
Lloh15:
	adrp	x8, l_.str.3@PAGE
Lloh16:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x1
	mov	x1, x8
	mov	x2, x9
LBB0_9:
	bl	_DP_ERR
LBB0_10:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_12:
	ldr	x2, [x2, #32]
	cmp	x2, x11
	b.le	LBB0_14
; %bb.13:
	str	x11, [sp]
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	b	LBB0_9
LBB0_14:
	mov	w0, #0
	cbz	x8, LBB0_11
; %bb.15:
	cmp	x3, x10
	b.ne	LBB0_11
; %bb.16:
Lloh22:
	adrp	x8, l_.str.5@PAGE
Lloh23:
	add	x8, x8, l_.str.5@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	mov	x2, x3
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_QEDR_MSG_QP,4,2                ; @QEDR_MSG_QP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create qp: unsupported qp type=0x%x requested\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"create qp: cannot create a SQ with %d elements (max_send_wr=0x%x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"create qp: unsupported inline data size=0x%x requested (max_inline=0x%x)\n"

l_.str.3:                               ; @.str.3
	.asciz	"create qp: unsupported send_sge=0x%x requested (max_send_sge=0x%x)\n"

l_.str.4:                               ; @.str.4
	.asciz	"create qp: unsupported recv_sge=0x%x requested (max_recv_sge=0x%x)\n"

l_.str.5:                               ; @.str.5
	.asciz	"create qp: userspace can't create special QPs of type=0x%x\n"

	.no_dead_strip	_qedr_check_qp_attrs
.subsections_via_symbols
