	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_rdma_rw_ctx_post
_isert_rdma_rw_ctx_post:                ## @isert_rdma_rw_ctx_post
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	24(%rdi), %r15
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_target_reverse_dma_direction
                                        ## kill: def $eax killed $eax def $rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%r13)
	je	LBB0_1
LBB0_12:
	leaq	4(%r13), %rdi
	movl	(%rbx), %esi
	movq	%r12, %r8
	callq	_rdma_rw_ctx_post
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_15
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	leaq	40(%r13), %rax
	leaq	32(%r13), %rcx
	movq	24(%r13), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_4
LBB0_3:
	leaq	16(%r13), %rax
	leaq	8(%r13), %rcx
	xorl	%edx, %edx
LBB0_4:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	(%rcx), %r12
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_isert_prot_cmd
	testq	%rax, %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.5:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	leaq	-120(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_isert_set_sig_attrs
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_8:
	leaq	4(%r13), %rdi
	movl	(%rbx), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r8d
	movl	12(%rax), %ecx
	subq	$8, %rsp
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	%r14
	callq	_rdma_rw_ctx_init
	addq	$32, %rsp
	jmp	LBB0_9
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_WARN_ON_ONCE
	leaq	4(%r13), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r8d
	movl	12(%rax), %ecx
	movl	20(%rax), %r9d
	movl	16(%rax), %eax
	subq	$8, %rsp
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	%rax
	callq	_rdma_rw_ctx_signature_init
	addq	$48, %rsp
LBB0_9:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	$1, (%r13)
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rdi
LBB0_14:
	movq	%r13, %rsi
	callq	_isert_err
LBB0_15:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cmd: %p failed to prepare RDMA res\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cmd: %p failed to post RDMA res\n"

	.no_dead_strip	_isert_rdma_rw_ctx_post
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_rdma_rw_ctx_post
_isert_rdma_rw_ctx_post:                ; @isert_rdma_rw_ctx_post
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x27, [x0, #24]
	add	x25, x27, #8
	mov	x0, x25
	bl	_target_reverse_dma_direction
	ldr	x8, [x22, #8]
	ldr	w23, [x8]
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_1:
	add	x0, x19, #4
	ldr	w1, [x22]
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	bl	_rdma_rw_ctx_post
	mov	x25, x0
	tbz	w0, #31, LBB0_14
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_3:
	mov	x24, x0
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	add	x8, x19, #40
	add	x9, x19, #32
	ldr	x10, [x19, #24]
	ldr	x10, [x10]
	str	x10, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
	add	x8, x19, #16
	add	x9, x19, #8
LBB0_6:
	ldr	x28, [x9]
	ldr	w26, [x8]
	mov	x0, x22
	mov	x1, x25
	bl	_isert_prot_cmd
	cbz	x0, LBB0_9
; %bb.7:
	add	x1, sp, #40
	mov	x0, x25
	bl	_isert_set_sig_attrs
	cbz	w0, LBB0_11
; %bb.8:
	mov	x25, x0
	b	LBB0_14
LBB0_9:
	add	x0, x19, #4
	ldr	w1, [x22]
	ldp	w4, w3, [x27, #8]
	str	w24, [sp]
	mov	x2, x23
	ldr	x5, [sp, #32]                   ; 8-byte Folded Reload
	mov	x6, x26
	mov	x7, x28
	bl	_rdma_rw_ctx_init
	mov	x25, x0
	tbnz	w0, #31, LBB0_12
LBB0_10:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_1
LBB0_11:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_WARN_ON_ONCE
	add	x0, x19, #4
	ldr	w1, [x22]
	ldp	w4, w3, [x27, #8]
	ldp	w6, w5, [x27, #16]
	str	w24, [sp, #16]
	str	x28, [sp, #8]
	add	x7, sp, #40
	str	w26, [sp]
	mov	x2, x23
	bl	_rdma_rw_ctx_signature_init
	mov	x25, x0
	tbz	w0, #31, LBB0_10
LBB0_12:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_13:
	mov	x1, x19
	bl	_isert_err
LBB0_14:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cmd: %p failed to prepare RDMA res\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cmd: %p failed to post RDMA res\n"

	.no_dead_strip	_isert_rdma_rw_ctx_post
.subsections_via_symbols
