	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_cq_chk_attr                ## -- Begin function rxe_cq_chk_attr
	.p2align	4, 0x90
_rxe_cq_chk_attr:                       ## @rxe_cq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	(%rdi), %edx
	cmpl	%r14d, %edx
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.5:
	movl	(%rsi), %edi
	callq	_queue_count
	cmpl	%r14d, %eax
	jle	LBB0_9
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
LBB0_7:
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cqe(%d) <= 0\n"

L_.str.1:                               ## @.str.1
	.asciz	"cqe(%d) > max_cqe(%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"cqe(%d) < current # elements in queue (%d)"

	.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_cq_chk_attr                ; -- Begin function rxe_cq_chk_attr
	.p2align	2
_rxe_cq_chk_attr:                       ; @rxe_cq_chk_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	cmp	w2, #0
	b.le	LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.2:
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	cbz	x1, LBB0_8
; %bb.5:
	ldr	w0, [x1]
	bl	_queue_count
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w19
	b.le	LBB0_8
; %bb.6:
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	mov	x1, x19
	bl	_pr_warn
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cqe(%d) <= 0\n"

l_.str.1:                               ; @.str.1
	.asciz	"cqe(%d) > max_cqe(%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"cqe(%d) < current # elements in queue (%d)"

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