	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_poll_cq
_rds_poll_cq:                           ## @rds_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movl	16(%rdi), %edi
	leaq	-64(%rbp), %rdx
	movl	$1, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_rds_iw_conn_error
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rds_iw_ring_free
	movl	16(%r12), %edi
	movl	$1, %esi
	leaq	-64(%rbp), %rdx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_ib_poll_cq
	testq	%rax, %rax
	jle	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rbx
	movq	-64(%rbp), %r14
	movl	-56(%rbp), %r13d
	movl	-52(%rbp), %edi
	callq	_be32_to_cpu
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_rdsdebug
	movq	_s_iw_rx_cq_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_iw_stats_inc
	movq	8(%r12), %rbx
	movq	%r12, %rdi
	callq	_rds_iw_ring_oldest
	leaq	(%rbx,%rax,4), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rds_iw_recv_unmap_page
	movq	%r15, %rdi
	callq	_rds_conn_up
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_rds_conn_connecting
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rcx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_rds_iw_process_recv
	jmp	LBB0_7
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wc wr_id 0x%llx status %u byte_len %u imm_data %u\n"

	.comm	_s_iw_rx_cq_event,4,2           ## @s_iw_rx_cq_event
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"recv completion on %pI4 had status %u, disconnecting and reconnecting\n"

	.no_dead_strip	_rds_poll_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_poll_cq
_rds_poll_cq:                           ; @rds_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, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x0, #16]
	add	x2, sp, #8
	mov	w1, #1
	bl	_ib_poll_cq
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.1:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _s_iw_rx_cq_event@GOTPAGE
Lloh3:
	ldr	x27, [x27, _s_iw_rx_cq_event@GOTPAGEOFF]
Lloh4:
	adrp	x28, _IB_WC_SUCCESS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x21
	bl	_rds_iw_conn_error
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_rds_iw_ring_free
	ldr	w0, [x20, #16]
	add	x2, sp, #8
	mov	w1, #1
	bl	_ib_poll_cq
	cmp	x0, #0
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [sp, #24]
	ldr	x25, [sp, #8]
	ldp	w26, w0, [sp, #16]
	bl	_be32_to_cpu
	mov	x4, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_rdsdebug
	ldr	w0, [x27]
	bl	_rds_iw_stats_inc
	ldr	x24, [x20, #8]
	mov	x0, x20
	bl	_rds_iw_ring_oldest
	add	x24, x24, x0, lsl #2
	mov	x0, x20
	mov	x1, x24
	bl	_rds_iw_recv_unmap_page
	mov	x0, x21
	bl	_rds_conn_up
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_rds_conn_connecting
	cbz	x0, LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [sp, #8]
	ldr	x8, [x28]
	cmp	x3, x8
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #16]
	mov	x0, x21
	mov	x1, x24
	mov	x3, x19
	bl	_rds_iw_process_recv
	b	LBB0_3
LBB0_8:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wc wr_id 0x%llx status %u byte_len %u imm_data %u\n"

	.comm	_s_iw_rx_cq_event,4,2           ; @s_iw_rx_cq_event
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"recv completion on %pI4 had status %u, disconnecting and reconnecting\n"

	.no_dead_strip	_rds_poll_cq
.subsections_via_symbols
