	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rq_cq_reap
_rq_cq_reap:                            ## @rq_cq_reap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_RDMAXPRT_RQ_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	16(%rbx), %edi
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_req_notify_cq
	movq	_rdma_stat_rq_poll@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movl	16(%rbx), %edi
	leaq	-72(%rbp), %rdx
	movl	$1, %esi
	callq	_ib_poll_cq
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r15
	leaq	12(%rbx), %r12
	leaq	-72(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_dprintk
	movq	_XPT_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_svc_rdma_put_context
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_svc_xprt_put
	movl	16(%rbx), %edi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_ib_poll_cq
	testl	%eax, %eax
	jle	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movq	-56(%rbp), %r14
	movq	%rax, (%r14)
	movl	-64(%rbp), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_svc_rdma_unmap_dma
	movq	-72(%rbp), %rax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_bh
	leaq	8(%r14), %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_5
LBB0_6:
	testq	%r14, %r14
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	_rdma_stat_rq_prod@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
LBB0_8:
	movq	_XPT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_RDMAXPRT_CONN_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_svc_xprt_enqueue
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMAXPRT_RQ_PENDING,4,2        ## @RDMAXPRT_RQ_PENDING
	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
	.comm	_rdma_stat_rq_poll,4,2          ## @rdma_stat_rq_poll
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svcrdma: transport closing putting ctxt %p\n"

	.comm	_XPT_CLOSE,4,2                  ## @XPT_CLOSE
	.comm	_rdma_stat_rq_prod,4,2          ## @rdma_stat_rq_prod
	.comm	_XPT_DATA,4,2                   ## @XPT_DATA
	.comm	_RDMAXPRT_CONN_PENDING,4,2      ## @RDMAXPRT_CONN_PENDING
	.no_dead_strip	_rq_cq_reap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rq_cq_reap
_rq_cq_reap:                            ; @rq_cq_reap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
Lloh0:
	adrp	x8, _RDMAXPRT_RQ_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMAXPRT_RQ_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	w0, LBB0_11
; %bb.1:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ib_req_notify_cq
Lloh6:
	adrp	x0, _rdma_stat_rq_poll@GOTPAGE
Lloh7:
	ldr	x0, [x0, _rdma_stat_rq_poll@GOTPAGEOFF]
	bl	_atomic_inc
	ldr	w0, [x19, #16]
	add	x2, sp, #8
	mov	w1, #1
	bl	_ib_poll_cq
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	add	x21, x19, #8
	add	x22, x19, #12
Lloh8:
	adrp	x25, _IB_WC_SUCCESS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh10:
	adrp	x26, _XPT_CLOSE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _XPT_CLOSE@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str@PAGE
Lloh13:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_dprintk
	ldr	w0, [x26]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x24
	mov	w1, #1
	bl	_svc_rdma_put_context
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_svc_xprt_put
	ldr	w0, [x19, #16]
	add	x2, sp, #8
	mov	w1, #1
	bl	_ib_poll_cq
	cmp	w0, #0
	b.le	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [sp, #24]
	ldr	x8, [sp, #8]
	str	x8, [x24]
	ldr	w8, [sp, #16]
	str	w8, [x24, #12]
	mov	x0, x24
	bl	_svc_rdma_unmap_dma
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_spin_lock_bh
	add	x0, x24, #8
	mov	x1, x22
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_4
LBB0_7:
	cbz	x24, LBB0_9
; %bb.8:
Lloh14:
	adrp	x0, _rdma_stat_rq_prod@GOTPAGE
Lloh15:
	ldr	x0, [x0, _rdma_stat_rq_prod@GOTPAGEOFF]
	bl	_atomic_inc
LBB0_9:
Lloh16:
	adrp	x8, _XPT_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XPT_DATA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
Lloh19:
	adrp	x8, _RDMAXPRT_CONN_PENDING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RDMAXPRT_CONN_PENDING@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_svc_xprt_enqueue
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMAXPRT_RQ_PENDING,4,2        ; @RDMAXPRT_RQ_PENDING
	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
	.comm	_rdma_stat_rq_poll,4,2          ; @rdma_stat_rq_poll
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svcrdma: transport closing putting ctxt %p\n"

	.comm	_XPT_CLOSE,4,2                  ; @XPT_CLOSE
	.comm	_rdma_stat_rq_prod,4,2          ; @rdma_stat_rq_prod
	.comm	_XPT_DATA,4,2                   ; @XPT_DATA
	.comm	_RDMAXPRT_CONN_PENDING,4,2      ; @RDMAXPRT_CONN_PENDING
	.no_dead_strip	_rq_cq_reap
.subsections_via_symbols
