	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_task_rdma_finalize        ## -- Begin function iser_task_rdma_finalize
	.p2align	4, 0x90
_iser_task_rdma_finalize:               ## @iser_task_rdma_finalize
	.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
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_scsi_prot_sg_count
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movq	_ISER_DIR_IN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_iser_unreg_rdma_mem
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_iser_dma_unmap_task_data
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	(%rbx), %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_iser_dma_unmap_task_data
LBB0_3:
	movq	16(%rbx), %rax
	movq	_ISER_DIR_OUT@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_iser_unreg_rdma_mem
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_iser_dma_unmap_task_data
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	(%rbx), %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iser_dma_unmap_task_data       ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISER_DIR_IN,8,3                ## @ISER_DIR_IN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_ISER_DIR_OUT,8,3               ## @ISER_DIR_OUT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_task_rdma_finalize        ; -- Begin function iser_task_rdma_finalize
	.p2align	2
_iser_task_rdma_finalize:               ; @iser_task_rdma_finalize
	.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	x19, x0
	ldr	w0, [x0, #24]
	bl	_scsi_prot_sg_count
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x21, _ISER_DIR_IN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISER_DIR_IN@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	x8, [x8, x1, lsl #3]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_iser_unreg_rdma_mem
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
Lloh2:
	adrp	x22, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_iser_dma_unmap_task_data
	cbz	w20, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x22]
	mov	x0, x19
	bl	_iser_dma_unmap_task_data
LBB0_3:
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x21, _ISER_DIR_OUT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ISER_DIR_OUT@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	x8, [x8, x1, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_iser_unreg_rdma_mem
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
Lloh6:
	adrp	x22, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_iser_dma_unmap_task_data
	cbz	w20, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x22]
	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	_iser_dma_unmap_task_data
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISER_DIR_IN,8,3                ; @ISER_DIR_IN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_ISER_DIR_OUT,8,3               ; @ISER_DIR_OUT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
.subsections_via_symbols
