	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_iw_send_unmap_rm
_rds_iw_send_unmap_rm:                  ## @rds_iw_send_unmap_rm
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rsi), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_rdsdebug
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_unmap_sg
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rds_iw_send_unmap_rdma
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rds_iw_send_rdma_complete
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_s_recv_rdma_bytes@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_s_send_rdma_bytes@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_rds_stats_add
LBB0_5:
	movq	%rbx, %rdi
	callq	_rds_message_unmapped
	movq	%rbx, %rdi
	callq	_rds_message_put
	movq	$0, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ic %p send %p rm %p\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_s_send_rdma_bytes,4,2          ## @s_send_rdma_bytes
	.comm	_s_recv_rdma_bytes,4,2          ## @s_recv_rdma_bytes
	.no_dead_strip	_rds_iw_send_unmap_rm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_iw_send_unmap_rm
_rds_iw_send_unmap_rm:                  ; @rds_iw_send_unmap_rm
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_rdsdebug
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldp	w2, w1, [x20, #24]
Lloh2:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_ib_dma_unmap_sg
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	bl	_rds_iw_send_unmap_rdma
	mov	x0, x20
	mov	x1, x21
	bl	_rds_iw_send_rdma_complete
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _s_recv_rdma_bytes@GOTPAGE
Lloh6:
	ldr	x9, [x9, _s_recv_rdma_bytes@GOTPAGEOFF]
Lloh7:
	adrp	x10, _s_send_rdma_bytes@GOTPAGE
Lloh8:
	ldr	x10, [x10, _s_send_rdma_bytes@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_rds_stats_add
LBB0_2:
	mov	x0, x20
	bl	_rds_message_unmapped
	mov	x0, x20
	bl	_rds_message_put
	str	xzr, [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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ic %p send %p rm %p\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_s_send_rdma_bytes,4,2          ; @s_send_rdma_bytes
	.comm	_s_recv_rdma_bytes,4,2          ; @s_recv_rdma_bytes
	.no_dead_strip	_rds_iw_send_unmap_rm
.subsections_via_symbols
