	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_poll_cqs
_ds_poll_cqs:                           ## @ds_poll_cqs
	.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	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_ibv_poll_cq
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %edi
	callq	_rs_wr_is_recv
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%r14)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	movq	_IBV_WC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ds_valid_recv
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	32(%r14)
	movq	(%r14), %rax
	movq	56(%r14), %r13
	leaq	(%rax,%rax,2), %r15
	movq	%rbx, 16(%r13,%r15,8)
	movl	-56(%rbp), %edi
	callq	_rs_wr_data
	movq	%rax, 8(%r13,%r15,8)
	movq	-48(%rbp), %rax
	addq	$-4, %rax
	movq	%rax, (%r13,%r15,8)
	leaq	-64(%rbp), %r13
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movslq	8(%r14), %rdx
	cmpq	%rdx, %rax
	movl	$0, %eax
	cmovneq	%rcx, %rax
	movq	%rax, (%r14)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ds_next_qp
	movq	%rax, %rbx
	cmpq	16(%r14), %rbx
	jne	LBB0_2
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %edi
	callq	_rs_wr_data
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_ds_post_recv
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r14), %r15
	movl	-56(%rbp), %edi
	callq	_rs_wr_data
	leaq	(%rax,%r15), %rcx
	movq	40(%r14), %rdx
	movq	%rdx, (%rax,%r15)
	movq	%rcx, 40(%r14)
	incq	24(%r14)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ds_next_qp
	movq	%rax, %rbx
	cmpq	$0, 32(%r14)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 24(%r14)
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpq	16(%r14), %rbx
	jne	LBB0_2
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	movl	$0, %r12d
	jne	LBB0_2
	jmp	LBB0_17
LBB0_13:
	movq	%rbx, 16(%r14)
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_WC_SUCCESS,8,3             ## @IBV_WC_SUCCESS
	.no_dead_strip	_ds_poll_cqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_poll_cqs
_ds_poll_cqs:                           ; @ds_poll_cqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_17
; %bb.1:
	mov	x19, x0
	mov	w23, #0
Lloh0:
	adrp	x21, _IBV_WC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IBV_WC_SUCCESS@GOTPAGEOFF]
	mov	w22, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #1
	bl	_ibv_poll_cq
	cmp	w0, #0
	b.le	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #16]
	bl	_rs_wr_is_recv
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_ds_valid_recv
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #32]
	sub	x8, x8, #1
	str	x8, [x19, #32]
	ldr	x8, [x19, #56]
	ldr	x9, [x19]
	madd	x24, x9, x22, x8
	str	x20, [x24, #16]
	ldr	w0, [sp, #16]
	bl	_rs_wr_data
	str	x0, [x24, #8]
	ldr	x8, [sp, #24]
	sub	x8, x8, #4
	str	x8, [x24]
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	cmp	x8, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x19]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_ds_next_qp
	mov	x20, x0
	mov	x8, x23
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #16]
	bl	_rs_wr_data
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ds_post_recv
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [x19, #48]
	ldr	w0, [sp, #16]
	bl	_rs_wr_data
	add	x8, x0, x24
	ldr	x9, [x19, #40]
	str	x9, [x0, x24]
	str	x8, [x19, #40]
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_ds_next_qp
	mov	x20, x0
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w23, #1
	mov	x23, x8
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x19, #16]
	cmp	x20, x9
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #0
	cbnz	w8, LBB0_2
	b	LBB0_17
LBB0_16:
	str	x20, [x19, #16]
LBB0_17:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_WC_SUCCESS,8,3             ; @IBV_WC_SUCCESS
	.no_dead_strip	_ds_poll_cqs
.subsections_via_symbols
