	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_qp_chk_init                ## -- Begin function rxe_qp_chk_init
	.p2align	4, 0x90
_rxe_qp_chk_init:                       ## @rxe_qp_chk_init
	.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
	cmpl	$0, 24(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 20(%rsi)
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r15
	leaq	28(%rbx), %rsi
	movl	(%rbx), %r14d
	xorl	%edx, %edx
	cmpl	$0, 16(%rbx)
	setne	%dl
	callq	_rxe_qp_chk_cap
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:
	movq	8(%rbx), %rax
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.5:
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_6:
	leaq	16(%r15), %rdi
	movl	%r14d, %esi
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.12:
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_14:
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing cq\n"

	.comm	_IB_QPT_SMI,8,3                 ## @IB_QPT_SMI
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
L_.str.1:                               ## @.str.1
	.asciz	"invalid port = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"SMI QP exists for port %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"GSI QP exists for port %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_qp_chk_init                ; -- Begin function rxe_qp_chk_init
	.p2align	2
_rxe_qp_chk_init:                       ; @rxe_qp_chk_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x19, x0
	add	x1, x21, #28
	ldr	w20, [x21]
	ldr	w8, [x21, #16]
	cmp	w8, #0
	cset	w2, ne
	bl	_rxe_qp_chk_cap
	cbnz	x0, LBB0_10
; %bb.3:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x23, _IB_QPT_SMI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_QPT_SMI@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x22, _IB_QPT_GSI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IB_QPT_GSI@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.4:
	add	x0, x19, #16
	mov	x1, x20
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_16
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_12
; %bb.7:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_pr_warn
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.14:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_15:
	mov	w0, #0
	b	LBB0_11
LBB0_16:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing cq\n"

	.comm	_IB_QPT_SMI,8,3                 ; @IB_QPT_SMI
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
l_.str.1:                               ; @.str.1
	.asciz	"invalid port = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"SMI QP exists for port %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"GSI QP exists for port %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
