	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_poll_cq
_rs_poll_cq:                            ## @rs_poll_cq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r14
	movq	_IBV_WC_SUCCESS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r13), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_ibv_poll_cq
	testl	%eax, %eax
	jle	LBB0_28
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %edi
	callq	_rs_wr_is_recv
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_IBV_WC_WITH_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_be32toh
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %edi
	callq	_rs_wr_data
	movq	%rax, %rdi
	callq	_rs_msg_op
	cmpl	$131, %eax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %eax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%r13)
	jmp	LBB0_25
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	56(%r13), %r15
	addq	64(%r13), %r15
	movl	-52(%rbp), %edi
	callq	_rs_wr_data
	movq	(%r15,%rax,8), %r15
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movq	%r15, %rdi
	callq	_rs_msg_op
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_rs_msg_data
	movl	%eax, 48(%r13)
	jmp	LBB0_1
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%r13)
	movl	-52(%rbp), %edi
	callq	_rs_wr_data
	movq	%rax, %rdi
	callq	_rs_msg_data
	movq	_RS_CTRL_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_rs_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	jmp	LBB0_25
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%r13)
	movl	-52(%rbp), %edi
	callq	_rs_wr_is_msg_send
	testl	%eax, %eax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	addl	$4, 16(%r13)
	jmp	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%r13)
	movl	-52(%rbp), %edi
	callq	_rs_wr_data
	movq	%rax, %rdi
	callq	_rs_msg_data
	addl	%eax, 16(%r13)
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax
	cmpq	(%r12), %rax
	je	LBB0_1
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_rs_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_rs_error@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	jmp	LBB0_1
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_rs_msg_op
	movq	8(%r13), %rcx
	movq	40(%r13), %rdx
	movl	%eax, (%rdx,%rcx,8)
	movq	%r15, %rdi
	callq	_rs_msg_data
	movq	8(%r13), %rcx
	movq	40(%r13), %rdx
	movl	%eax, 4(%rdx,%rcx,8)
	leaq	1(%rcx), %rax
	movslq	32(%r13), %rdx
	cmpq	%rdx, %rcx
	movl	$0, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, 8(%r13)
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_rs_msg_data
	movq	_RS_CTRL_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_rs_msg_data
	movq	_RS_CTRL_SHUTDOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %eax
	movq	_rs_writable@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_rs_readable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r13)
	jmp	LBB0_1
LBB0_28:
	movq	_rs_connected@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	je	LBB0_36
## %bb.29:
	testl	%eax, %eax
	sete	%dl
	jne	LBB0_34
## %bb.30:
	testl	%ebx, %ebx
	je	LBB0_34
## %bb.31:
	decl	%ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_rs_post_recv
	subl	$1, %ebx
	setb	%cl
	testl	%eax, %eax
	sete	%dl
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	testb	%cl, %cl
	je	LBB0_32
LBB0_34:
	xorl	%ecx, %ecx
	testb	%dl, %dl
	jne	LBB0_37
## %bb.35:
	movq	_rs_error@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r13)
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r13)
LBB0_36:
	movl	%eax, %ecx
LBB0_37:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_rs_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	xorl	%ecx, %ecx
	jmp	LBB0_37
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_1
	.long	L0_0_set_9
	.long	L0_0_set_1
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IBV_WC_SUCCESS,8,3             ## @IBV_WC_SUCCESS
	.comm	_IBV_WC_WITH_IMM,4,2            ## @IBV_WC_WITH_IMM
	.comm	_RS_CTRL_DISCONNECT,4,2         ## @RS_CTRL_DISCONNECT
	.comm	_rs_disconnected,8,3            ## @rs_disconnected
	.comm	_RS_CTRL_SHUTDOWN,4,2           ## @RS_CTRL_SHUTDOWN
	.comm	_rs_writable,4,2                ## @rs_writable
	.comm	_rs_readable,4,2                ## @rs_readable
	.comm	_rs_connected,4,2               ## @rs_connected
	.comm	_rs_error,8,3                   ## @rs_error
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_rs_poll_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_poll_cq
_rs_poll_cq:                            ; @rs_poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w22, #0
Lloh0:
	adrp	x25, _RS_CTRL_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RS_CTRL_DISCONNECT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _IBV_WC_SUCCESS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IBV_WC_SUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x24, _rs_connected@GOTPAGE
Lloh5:
	ldr	x24, [x24, _rs_connected@GOTPAGEOFF]
Lloh6:
	adrp	x21, _rs_error@GOTPAGE
Lloh7:
	ldr	x21, [x21, _rs_error@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EIO@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EIO@GOTPAGEOFF]
Lloh10:
	adrp	x28, _IBV_WC_WITH_IMM@GOTPAGE
Lloh11:
	ldr	x28, [x28, _IBV_WC_WITH_IMM@GOTPAGEOFF]
Lloh12:
	adrp	x23, lJTI0_0@PAGE
Lloh13:
	add	x23, x23, lJTI0_0@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #1
	bl	_ibv_poll_cq
	cmp	w0, #1
	b.lt	LBB0_28
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #20]
	bl	_rs_wr_is_recv
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #24]
	bl	_be32toh
	mov	x20, x0
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #20]
	bl	_rs_wr_data
	bl	_rs_msg_op
	cmp	w0, #131
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #130
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #129
	b.ne	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x19, #56]
	add	x20, x9, x8
	ldr	w0, [sp, #20]
	bl	_rs_wr_data
	ldr	x20, [x20, x0, lsl #3]
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w22, w22, #1
	mov	x0, x20
	bl	_rs_msg_op
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_rs_msg_data
	str	w0, [x19, #48]
	b	LBB0_1
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	ldr	w0, [sp, #20]
	bl	_rs_wr_data
	bl	_rs_msg_data
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x8, _rs_disconnected@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rs_disconnected@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w0, [sp, #20]
	bl	_rs_wr_is_msg_send
	cbnz	w0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #4
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w0, [sp, #20]
	bl	_rs_wr_data
	bl	_rs_msg_data
	ldr	w8, [x19, #16]
	add	w8, w8, w0
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w8, [x19, #16]
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21]
	str	w8, [x19]
	ldr	w8, [x27]
	str	w8, [x19, #20]
	b	LBB0_1
LBB0_23:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_rs_msg_op
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	lsl	x9, x9, #3
	str	w0, [x8, x9]
	mov	x0, x20
	bl	_rs_msg_data
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	str	w0, [x8, #4]
	ldrsw	x8, [x19, #32]
	cmp	x9, x8
	csinc	x8, xzr, x9, eq
	str	x8, [x19, #8]
	b	LBB0_1
LBB0_24:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_rs_msg_data
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_37
; %bb.25:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_rs_msg_data
Lloh17:
	adrp	x8, _RS_CTRL_SHUTDOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RS_CTRL_SHUTDOWN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.26:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _rs_writable@GOTPAGE
Lloh21:
	ldr	x9, [x9, _rs_writable@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.27:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh23:
	adrp	x9, _rs_readable@GOTPAGE
Lloh24:
	ldr	x9, [x9, _rs_readable@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_1
LBB0_28:
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.29:
	cmp	w0, #0
	cset	w8, eq
	ccmp	w22, #0, #4, eq
	b.eq	LBB0_33
; %bb.30:
	sub	w9, w22, #1
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x9
	mov	x0, x19
	bl	_rs_post_recv
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	sub	w9, w20, #1
	cbnz	w20, LBB0_31
LBB0_33:
	tbz	w8, #0, LBB0_35
; %bb.34:
	mov	w0, #0
	b	LBB0_36
LBB0_35:
	ldr	x8, [x21]
	str	w8, [x19]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_36:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_37:
	mov	w0, #0
Lloh29:
	adrp	x8, _rs_disconnected@GOTPAGE
Lloh30:
	ldr	x8, [x8, _rs_disconnected@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_36
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_13-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
                                        ; -- End function
	.comm	_IBV_WC_SUCCESS,8,3             ; @IBV_WC_SUCCESS
	.comm	_IBV_WC_WITH_IMM,4,2            ; @IBV_WC_WITH_IMM
	.comm	_RS_CTRL_DISCONNECT,4,2         ; @RS_CTRL_DISCONNECT
	.comm	_rs_disconnected,8,3            ; @rs_disconnected
	.comm	_RS_CTRL_SHUTDOWN,4,2           ; @RS_CTRL_SHUTDOWN
	.comm	_rs_writable,4,2                ; @rs_writable
	.comm	_rs_readable,4,2                ; @rs_readable
	.comm	_rs_connected,4,2               ; @rs_connected
	.comm	_rs_error,8,3                   ; @rs_error
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_rs_poll_cq
.subsections_via_symbols
