	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_srq_chk_attr               ## -- Begin function rxe_srq_chk_attr
	.p2align	4, 0x90
_rxe_srq_chk_attr:                      ## @rxe_srq_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
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rsi)
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_3
LBB0_4:
	movq	_IB_SRQ_MAX_WR@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.5:
	movq	(%rdx), %r9
	movq	(%rdi), %rax
	cmpq	%rax, %r9
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r9, %rsi
	jmp	LBB0_19
LBB0_7:
	testq	%r9, %r9
	jle	LBB0_8
## %bb.9:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.10:
	movq	(%rsi), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	cmpq	%r8, %r9
	jge	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	movq	%r9, %rsi
	movq	%r8, %rdx
	jmp	LBB0_20
LBB0_13:
	movq	_RXE_MIN_SRQ_WR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r9
	jge	LBB0_15
## %bb.14:
	movq	%rax, (%rdx)
LBB0_15:
	movq	_IB_SRQ_LIMIT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_24
## %bb.16:
	movq	8(%rdx), %r8
	movq	(%rdi), %rax
	cmpq	%rax, %r8
	jle	LBB0_21
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_18
LBB0_21:
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.22:
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r8
	jle	LBB0_24
## %bb.23:
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	movq	%r8, %rsi
LBB0_19:
	movq	%rax, %rdx
LBB0_20:
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_24:
	movq	_IB_SRQ_INIT_MASK@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpl	%ecx, (%rsi)
	jne	LBB0_29
## %bb.25:
	movq	16(%rdx), %rsi
	movq	8(%rdi), %rcx
	cmpq	%rcx, %rsi
	jle	LBB0_27
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
	movq	%rcx, %rdx
	jmp	LBB0_20
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	%r9, %rsi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_3
LBB0_27:
	movq	_RXE_MIN_SRQ_SGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_29
## %bb.28:
	movq	%rcx, 16(%rdx)
LBB0_29:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"srq in error state\n"

	.comm	_IB_SRQ_MAX_WR,4,2              ## @IB_SRQ_MAX_WR
L_.str.1:                               ## @.str.1
	.asciz	"max_wr(%d) > max_srq_wr(%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"max_wr(%d) <= 0\n"

L_.str.3:                               ## @.str.3
	.asciz	"max_wr (%d) < srq->limit (%d)\n"

	.comm	_RXE_MIN_SRQ_WR,8,3             ## @RXE_MIN_SRQ_WR
	.comm	_IB_SRQ_LIMIT,4,2               ## @IB_SRQ_LIMIT
L_.str.4:                               ## @.str.4
	.asciz	"srq_limit(%d) > max_srq_wr(%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"srq_limit (%d) > cur limit(%d)\n"

	.comm	_IB_SRQ_INIT_MASK,4,2           ## @IB_SRQ_INIT_MASK
L_.str.6:                               ## @.str.6
	.asciz	"max_sge(%d) > max_srq_sge(%d)\n"

	.comm	_RXE_MIN_SRQ_SGE,8,3            ## @RXE_MIN_SRQ_SGE
	.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_srq_chk_attr               ; -- Begin function rxe_srq_chk_attr
	.p2align	2
_rxe_srq_chk_attr:                      ; @rxe_srq_chk_attr
	.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
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_23
LBB0_3:
Lloh2:
	adrp	x8, _IB_SRQ_MAX_WR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_SRQ_MAX_WR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_13
; %bb.4:
	ldr	x8, [x2]
	ldr	x9, [x0]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_6:
	cmp	x8, #0
	b.le	LBB0_22
; %bb.7:
	cbz	x1, LBB0_11
; %bb.8:
	ldr	x9, [x1]
	cbz	x9, LBB0_11
; %bb.9:
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_11:
Lloh9:
	adrp	x9, _RXE_MIN_SRQ_WR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RXE_MIN_SRQ_WR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.12:
	str	x9, [x2]
LBB0_13:
Lloh12:
	adrp	x8, _IB_SRQ_LIMIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_SRQ_LIMIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_19
; %bb.14:
	ldr	x8, [x2, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.le	LBB0_16
; %bb.15:
	stp	x8, x9, [sp]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_16:
	cbz	x1, LBB0_19
; %bb.17:
	ldr	x9, [x1, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_19
; %bb.18:
	stp	x8, x9, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_19:
Lloh19:
	adrp	x8, _IB_SRQ_INIT_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_SRQ_INIT_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_27
; %bb.20:
	ldr	x8, [x2, #16]
	ldr	x9, [x0, #8]
	cmp	x8, x9
	b.le	LBB0_25
; %bb.21:
	stp	x8, x9, [sp]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_22:
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_23:
	bl	_pr_warn
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_25:
Lloh29:
	adrp	x9, _RXE_MIN_SRQ_SGE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RXE_MIN_SRQ_SGE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_27
; %bb.26:
	mov	w0, #0
	str	x9, [x2, #16]
	b	LBB0_24
LBB0_27:
	mov	w0, #0
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"srq in error state\n"

	.comm	_IB_SRQ_MAX_WR,4,2              ; @IB_SRQ_MAX_WR
l_.str.1:                               ; @.str.1
	.asciz	"max_wr(%d) > max_srq_wr(%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"max_wr(%d) <= 0\n"

l_.str.3:                               ; @.str.3
	.asciz	"max_wr (%d) < srq->limit (%d)\n"

	.comm	_RXE_MIN_SRQ_WR,8,3             ; @RXE_MIN_SRQ_WR
	.comm	_IB_SRQ_LIMIT,4,2               ; @IB_SRQ_LIMIT
l_.str.4:                               ; @.str.4
	.asciz	"srq_limit(%d) > max_srq_wr(%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"srq_limit (%d) > cur limit(%d)\n"

	.comm	_IB_SRQ_INIT_MASK,4,2           ; @IB_SRQ_INIT_MASK
l_.str.6:                               ; @.str.6
	.asciz	"max_sge(%d) > max_srq_sge(%d)\n"

	.comm	_RXE_MIN_SRQ_SGE,8,3            ; @RXE_MIN_SRQ_SGE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
