	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_rdma_send_complete         ## -- Begin function rds_rdma_send_complete
	.p2align	4, 0x90
_rds_rdma_send_complete:                ## @rds_rdma_send_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_RDS_MSG_ON_SOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.2:
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.3:
	movq	24(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_rds_rs_to_sk
	movl	%eax, %edi
	callq	_sock_hold
	movl	%r14d, (%r12)
	movq	%r15, %rdi
	callq	_spin_lock
	addq	$4, %r12
	leaq	4(%r15), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	je	LBB0_5
## %bb.7:
	movq	%r15, %rdi
	callq	_rds_wake_sk_sleep
	movq	%r15, %rdi
	callq	_rds_rs_to_sk
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_put                       ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDS_MSG_ON_SOCK,4,2            ## @RDS_MSG_ON_SOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_rdma_send_complete         ; -- Begin function rds_rdma_send_complete
	.p2align	2
_rds_rdma_send_complete:                ; @rds_rdma_send_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _RDS_MSG_ON_SOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDS_MSG_ON_SOCK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_6
; %bb.4:
	ldr	x21, [x19, #8]
	mov	x0, x21
	bl	_rds_rs_to_sk
	bl	_sock_hold
	str	w20, [x22], #4
	mov	x0, x21
	bl	_spin_lock
	add	x1, x21, #4
	mov	x0, x22
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	x21, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_rds_wake_sk_sleep
	mov	x0, x21
	bl	_rds_rs_to_sk
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sock_put
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDS_MSG_ON_SOCK,4,2            ; @RDS_MSG_ON_SOCK
.subsections_via_symbols
