	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_post_send                 ## -- Begin function iser_post_send
	.p2align	4, 0x90
_iser_post_send:                        ## @iser_post_send
	.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, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movl	92(%rsi), %esi
	movq	_ISER_HEADERS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_sync_single_for_device
	movq	$0, 104(%rbx)
	leaq	88(%rbx), %rax
	movq	%rax, 128(%rbx)
	movq	80(%rbx), %rax
	movq	%rax, 116(%rbx)
	movq	_IB_WR_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	leaq	96(%rbx), %r12
	movl	%r15d, 112(%rbx)
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.3:
	addq	$40, %rbx
	jmp	LBB0_5
LBB0_4:
	cmpq	$0, 8(%rbx)
	cmoveq	%r12, %rbx
LBB0_5:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ib_post_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_iser_err
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISER_HEADERS_LEN,4,2           ## @ISER_HEADERS_LEN
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_IB_WR_SEND,4,2                 ## @IB_WR_SEND
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_post_send failed, ret:%d opcode:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_post_send                 ; -- Begin function iser_post_send
	.p2align	2
_iser_post_send:                        ; @iser_post_send
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	ldr	w1, [x1, #92]
Lloh0:
	adrp	x8, _ISER_HEADERS_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISER_HEADERS_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_ib_dma_sync_single_for_device
Lloh6:
	adrp	x8, _IB_WR_SEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_WR_SEND@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x22, x20
	str	w8, [x22, #96]!
	str	xzr, [x22, #8]
	sub	x8, x22, #8
	str	x8, [x22, #32]
	ldur	d0, [x22, #-16]
Lloh9:
	adrp	x8, _IB_SEND_SIGNALED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_SEND_SIGNALED@GOTPAGEOFF]
	stur	d0, [x22, #20]
Lloh11:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	str	w8, [x22, #16]
	ldur	x8, [x22, #-48]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, x20, #40
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csel	x1, x22, x20, eq
LBB0_3:
	ldr	w0, [x19]
	mov	x2, #0
	bl	_ib_post_send
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w2, [x22]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_iser_err
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISER_HEADERS_LEN,4,2           ; @ISER_HEADERS_LEN
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_IB_WR_SEND,4,2                 ; @IB_WR_SEND
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_post_send failed, ret:%d opcode:%d\n"

.subsections_via_symbols
