	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_qp_chk_attr                ## -- Begin function rxe_qp_chk_attr
	.p2align	4, 0x90
_rxe_qp_chk_attr:                       ## @rxe_qp_chk_attr
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_IB_QP_CUR_STATE@GOTPCREL(%rip), %rax
	leaq	16(%rsi), %rcx
	testl	%r12d, (%rax)
	cmovneq	%rdx, %rcx
	movl	(%rcx), %ebx
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	%ebx, %r15d
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %r15d
LBB0_2:
	movq	%r13, %rdi
	callq	_qp_type
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_ib_modify_qp_is_ok
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.6:
	movq	8(%r13), %rax
	movq	_QP_STATE_DRAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_31
LBB0_8:
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdi
	movl	8(%r14), %esi
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	movq	_IB_QP_CAP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	40(%r14), %rsi
	xorl	%edx, %edx
	cmpl	$0, (%r13)
	setne	%dl
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rxe_qp_chk_cap
	testq	%rax, %rax
	jne	LBB0_31
LBB0_13:
	movq	_IB_QP_AV@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	36(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rxe_av_chk_attr
	testq	%rax, %rax
	jne	LBB0_31
LBB0_15:
	movq	_IB_QP_ALT_PATH@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.16:
	leaq	32(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rxe_av_chk_attr
	testq	%rax, %rax
	jne	LBB0_31
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdi
	movl	12(%r14), %esi
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	16(%r14), %esi
	cmpl	$32, %esi
	jl	LBB0_21
## %bb.20:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_30
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_31
LBB0_10:
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_30:
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_31:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_IB_QP_PATH_MTU@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_24
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %ebx
	movl	20(%r14), %edi
	cmpl	%ebx, %edi
	jbe	LBB0_24
## %bb.23:
	callq	_ib_mtu_enum_to_int
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_ib_mtu_enum_to_int
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pr_debug
	jmp	LBB0_31
LBB0_24:
	movq	_IB_QP_MAX_QP_RD_ATOMIC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_27
## %bb.25:
	movl	28(%r14), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jle	LBB0_27
## %bb.26:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_31
LBB0_27:
	movq	_IB_QP_TIMEOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r12d, (%rcx)
	je	LBB0_32
## %bb.28:
	movl	24(%r14), %esi
	cmpl	$32, %esi
	jl	LBB0_32
## %bb.29:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_30
LBB0_18:
	movl	12(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_CUR_STATE,4,2            ## @IB_QP_CUR_STATE
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid mask or state for qp\n"

	.comm	_IB_QPS_SQD,4,2                 ## @IB_QPS_SQD
	.comm	_QP_STATE_DRAIN,8,3             ## @QP_STATE_DRAIN
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
L_.str.1:                               ## @.str.1
	.asciz	"invalid port %d\n"

	.comm	_IB_QP_CAP,4,2                  ## @IB_QP_CAP
	.comm	_IB_QP_AV,4,2                   ## @IB_QP_AV
	.comm	_IB_QP_ALT_PATH,4,2             ## @IB_QP_ALT_PATH
L_.str.2:                               ## @.str.2
	.asciz	"invalid alt port %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid QP alt timeout %d > 31\n"

	.comm	_IB_QP_PATH_MTU,4,2             ## @IB_QP_PATH_MTU
L_.str.4:                               ## @.str.4
	.asciz	"invalid mtu (%d) > (%d)\n"

	.comm	_IB_QP_MAX_QP_RD_ATOMIC,4,2     ## @IB_QP_MAX_QP_RD_ATOMIC
L_.str.5:                               ## @.str.5
	.asciz	"invalid max_rd_atomic %d > %d\n"

	.comm	_IB_QP_TIMEOUT,4,2              ## @IB_QP_TIMEOUT
L_.str.6:                               ## @.str.6
	.asciz	"invalid QP timeout %d > 31\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_attr                ; -- Begin function rxe_qp_chk_attr
	.p2align	2
_rxe_qp_chk_attr:                       ; @rxe_qp_chk_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IB_QP_CUR_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_CUR_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x9, x1, #16
	tst	w8, w3
	csel	x8, x9, x2, eq
	ldr	w24, [x8]
Lloh3:
	adrp	x25, _IB_QP_STATE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x23, x24
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	ldr	w23, [x19, #4]
LBB0_2:
	mov	x0, x22
	bl	_qp_type
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	mov	x3, x20
	bl	_ib_modify_qp_is_ok
	cbz	w0, LBB0_16
; %bb.3:
	ldr	w8, [x25]
	and	w8, w8, w20
Lloh5:
	adrp	x9, _IB_QPS_SQD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_QPS_SQD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w24, w9, #0, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
Lloh8:
	adrp	x9, _QP_STATE_DRAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QP_STATE_DRAIN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _IB_QPS_ERR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IB_QPS_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w23, w10, #4, eq
	b.ne	LBB0_19
LBB0_5:
Lloh14:
	adrp	x8, _IB_QP_PORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_QP_PORT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	add	x0, x21, #8
	ldr	w1, [x19, #8]
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_17
LBB0_7:
Lloh17:
	adrp	x8, _IB_QP_CAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_QP_CAP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	add	x1, x19, #40
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w2, ne
	mov	x0, x21
	bl	_rxe_qp_chk_cap
	cbnz	x0, LBB0_19
LBB0_9:
Lloh20:
	adrp	x8, _IB_QP_AV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_QP_AV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	add	x1, x19, #36
	mov	x0, x21
	bl	_rxe_av_chk_attr
	cbnz	x0, LBB0_19
LBB0_11:
Lloh23:
	adrp	x8, _IB_QP_ALT_PATH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_QP_ALT_PATH@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.12:
	add	x1, x19, #32
	mov	x0, x21
	bl	_rxe_av_chk_attr
	cbnz	x0, LBB0_19
; %bb.13:
	add	x0, x21, #8
	ldr	w1, [x19, #12]
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_31
; %bb.14:
	ldr	w8, [x19, #16]
	cmp	w8, #32
	b.lt	LBB0_21
; %bb.15:
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_17:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_18:
	bl	_pr_warn
LBB0_19:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
Lloh35:
	adrp	x8, _IB_QP_PATH_MTU@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IB_QP_PATH_MTU@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_24
; %bb.22:
	ldr	w22, [x21, #4]
	ldr	w0, [x19, #20]
	cmp	w0, w22
	b.ls	LBB0_24
; %bb.23:
	bl	_ib_mtu_enum_to_int
	mov	x19, x0
	mov	x0, x22
	bl	_ib_mtu_enum_to_int
	mov	x2, x0
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	b	LBB0_19
LBB0_24:
Lloh40:
	adrp	x8, _IB_QP_MAX_QP_RD_ATOMIC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IB_QP_MAX_QP_RD_ATOMIC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_27
; %bb.25:
	ldr	w8, [x19, #28]
	ldr	w9, [x21]
	cmp	w8, w9
	b.le	LBB0_27
; %bb.26:
	stp	x8, x9, [sp]
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_27:
Lloh45:
	adrp	x8, _IB_QP_TIMEOUT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IB_QP_TIMEOUT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_30
; %bb.28:
	ldr	w8, [x19, #24]
	cmp	w8, #32
	b.lt	LBB0_30
; %bb.29:
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.6@PAGE
Lloh49:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_30:
	mov	w0, #0
	b	LBB0_20
LBB0_31:
	ldr	w8, [x19, #12]
	str	x8, [sp]
Lloh50:
	adrp	x0, l_.str.2@PAGE
Lloh51:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_CUR_STATE,4,2            ; @IB_QP_CUR_STATE
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid mask or state for qp\n"

	.comm	_IB_QPS_SQD,4,2                 ; @IB_QPS_SQD
	.comm	_QP_STATE_DRAIN,8,3             ; @QP_STATE_DRAIN
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
l_.str.1:                               ; @.str.1
	.asciz	"invalid port %d\n"

	.comm	_IB_QP_CAP,4,2                  ; @IB_QP_CAP
	.comm	_IB_QP_AV,4,2                   ; @IB_QP_AV
	.comm	_IB_QP_ALT_PATH,4,2             ; @IB_QP_ALT_PATH
l_.str.2:                               ; @.str.2
	.asciz	"invalid alt port %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid QP alt timeout %d > 31\n"

	.comm	_IB_QP_PATH_MTU,4,2             ; @IB_QP_PATH_MTU
l_.str.4:                               ; @.str.4
	.asciz	"invalid mtu (%d) > (%d)\n"

	.comm	_IB_QP_MAX_QP_RD_ATOMIC,4,2     ; @IB_QP_MAX_QP_RD_ATOMIC
l_.str.5:                               ; @.str.5
	.asciz	"invalid max_rd_atomic %d > %d\n"

	.comm	_IB_QP_TIMEOUT,4,2              ; @IB_QP_TIMEOUT
l_.str.6:                               ; @.str.6
	.asciz	"invalid QP timeout %d > 31\n"

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