	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_post_send              ## -- Begin function ibv_cmd_post_send
	.p2align	4, 0x90
_ibv_cmd_post_send:                     ## @ibv_cmd_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r12, %rax
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r14d
	addl	(%rax), %ebx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_4:
	imull	$56, %r14d, %eax
	leal	(%rax,%rbx,4), %edi
	addl	$16, %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_alloca
	movq	%rax, %r13
	movq	_POST_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$4, %r8d
	callq	_IBV_INIT_CMD_RESP
	movl	16(%r15), %eax
	movl	%eax, 12(%r13)
	movl	%r14d, (%r13)
	movl	%ebx, 4(%r13)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$56, 8(%r13)
	testq	%r12, %r12
	je	LBB0_14
## %bb.5:
	movl	%r14d, %eax
	imulq	$56, %rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%rax,%r13), %r14
	addq	$16, %r14
	addq	$68, %r13
	movq	%r12, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rbx
	addq	$56, %r13
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	72(%rbx), %eax
	movl	%eax, (%r13)
	movl	(%rbx), %edx
	movl	%edx, -52(%r13)
	movl	4(%rbx), %eax
	movl	%eax, -48(%r13)
	movl	68(%rbx), %ecx
	movl	%ecx, -4(%r13)
	movl	64(%rbx), %ecx
	movl	%ecx, -8(%r13)
	movq	(%r15), %rcx
	movq	_IBV_QPT_UD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	56(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%r13)
	movl	52(%rbx), %eax
	movl	%eax, -16(%r13)
	movl	48(%rbx), %eax
	movl	%eax, -20(%r13)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_9
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	44(%rbx), %eax
	movl	%eax, -24(%r13)
	movl	40(%rbx), %eax
	movl	%eax, -28(%r13)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	$-131, %eax
	cmpl	$2, %eax
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movups	24(%rbx), %xmm0
	movups	%xmm0, -44(%r13)
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%edx, %edx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%rbx), %esi
	shll	$2, %edx
	movq	%r14, %rdi
	callq	_memcpy
	movslq	-52(%r13), %rax
	leaq	(%r14,%rax,4), %r14
	jmp	LBB0_13
LBB0_14:
	movl	$0, -48(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_write
	xorl	%r15d, %r15d
	cmpl	%ebx, %eax
	je	LBB0_16
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_16:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_24
## %bb.17:
	movl	%ecx, %eax
	decl	%eax
	je	LBB0_25
## %bb.18:
	addl	$-2, %ecx
	movl	%eax, %edx
	andl	$7, %edx
	je	LBB0_22
## %bb.19:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r12
	incl	%esi
	cmpl	%esi, %edx
	jne	LBB0_20
## %bb.21:
	subl	%esi, %eax
LBB0_22:
	cmpl	$7, %ecx
	jb	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %r12
	addl	$-8, %eax
	jne	LBB0_23
	jmp	LBB0_25
LBB0_24:
	testl	%r15d, %r15d
	je	LBB0_26
LBB0_25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_26:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POST_SEND,4,2                  ## @POST_SEND
	.comm	_IBV_QPT_UD,8,3                 ## @IBV_QPT_UD
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_post_send              ; -- Begin function ibv_cmd_post_send
	.p2align	2
_ibv_cmd_post_send:                     ; @ibv_cmd_post_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	w25, #0
	mov	w24, #0
	mov	x8, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w24, #1
	ldr	w9, [x8]
	add	w25, w9, w25
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w24, #0
	mov	w25, #0
LBB0_4:
	mov	w26, #56
	mul	w8, w24, w26
	add	w8, w8, w25, lsl #2
	add	w22, w8, #16
	mov	x0, x22
	bl	_alloca
	mov	x23, x0
Lloh0:
	adrp	x8, _POST_SEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POST_SEND@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x22
	mov	w4, #4
	bl	_IBV_INIT_CMD_RESP
	ldr	w8, [x21, #16]
	stp	w24, w25, [x23]
	stp	w26, w8, [x23, #8]
	cbz	x20, LBB0_15
; %bb.5:
	umaddl	x8, w24, w26, x23
	add	x24, x8, #16
	add	x25, x23, #40
Lloh3:
	adrp	x26, _IBV_QPT_UD@GOTPAGE
Lloh4:
	ldr	x26, [x26, _IBV_QPT_UD@GOTPAGEOFF]
	mov	x27, x20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x27, [x27, #8]
	add	x25, x25, #56
	cbz	x27, LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27, #72]
	str	w8, [x25, #28]
	ldp	w8, w9, [x27]
	stp	w8, w9, [x25, #-24]
	ldr	d0, [x27, #64]
	stur	d0, [x25, #20]
	ldr	x10, [x21]
	ldr	x11, [x26]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x27, #56]
	ldr	w9, [x9]
	str	w9, [x25, #16]
	ldr	d0, [x27, #48]
	str	d0, [x25, #8]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w10, w9, #128
	cmp	w10, #3
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	d0, [x27, #40]
	str	d0, [x25]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w9, w9, #131
	cmp	w9, #2
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldur	q0, [x27, #24]
	stur	q0, [x25, #-16]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w8, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x27, #16]
	lsl	w2, w8, #2
	mov	x0, x24
	bl	_memcpy
	ldursw	x8, [x25, #-24]
	add	x24, x24, x8, lsl #2
	b	LBB0_6
LBB0_15:
	str	wzr, [sp, #8]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x22
	bl	_write
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w22
	csel	w21, wzr, w8, eq
	add	x0, sp, #8
	mov	w1, #4
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_18
; %bb.16:
	subs	w8, w8, #1
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x20, #8]
	subs	w8, w8, #1
	b.ne	LBB0_17
	b	LBB0_19
LBB0_18:
	cbz	w21, LBB0_20
LBB0_19:
	str	x20, [x19]
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POST_SEND,4,2                  ; @POST_SEND
	.comm	_IBV_QPT_UD,8,3                 ; @IBV_QPT_UD
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
