	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_create_flow            ## -- Begin function ibv_cmd_create_flow
	.p2align	4, 0x90
_ibv_cmd_create_flow:                   ## @ibv_cmd_create_flow
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movslq	(%rsi), %rax
	leaq	28(,%rax,8), %rbx
	movq	%rbx, %rdi
	callq	_alloca
	movq	%rax, %r14
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %eax
	movl	%eax, 24(%r14)
	movl	(%r12), %eax
	movl	%eax, (%r14)
	movups	4(%r12), %xmm0
	movups	%xmm0, 8(%r14)
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	leaq	20(%r12), %rbx
	movq	%r14, %r13
	addq	$28, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ib_spec_to_kern_spec
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	movl	4(%r14), %eax
	addl	%ecx, %eax
	movl	%eax, 4(%r14)
	addq	%rcx, %r13
	movslq	(%rbx), %rcx
	addq	%rcx, %rbx
	incl	%r15d
	cmpl	(%r12), %r15d
	jl	LBB0_4
	jmp	LBB0_9
LBB0_2:
	movl	4(%r14), %eax
LBB0_9:
	movslq	%eax, %rbx
	addq	$28, %rbx
	movq	_CREATE_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movl	$4, %r9d
	callq	_IBV_INIT_CMD_RESP_EX_VCMD
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_write
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.10:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movq	(%r15), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	-48(%rbp), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_7:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_CREATE_FLOW,4,2                ## @CREATE_FLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_create_flow            ; -- Begin function ibv_cmd_create_flow
	.p2align	2
_ibv_cmd_create_flow:                   ; @ibv_cmd_create_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x1
	mov	x20, x0
	ldrsw	x8, [x1]
	lsl	x8, x8, #3
	add	x23, x8, #28
	mov	x0, x23
	bl	_alloca
	mov	x21, x0
	mov	w0, #16
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	w8, [x20, #8]
	str	w8, [x21, #24]
	ldr	w8, [x22]
	str	w8, [x21]
	ldur	q0, [x22, #4]
	stur	q0, [x21, #8]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.2:
	mov	w25, #0
	add	x23, x22, #20
	add	x24, x21, #28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_ib_spec_to_kern_spec
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	ldr	w8, [x21, #4]
	add	w8, w8, w9
	str	w8, [x21, #4]
	add	x24, x24, x9
	ldrsw	x9, [x23]
	add	x23, x23, x9
	add	w25, w25, #1
	ldr	w9, [x22]
	cmp	w25, w9
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	ldr	w8, [x21, #4]
LBB0_6:
	sxtw	x8, w8
	add	x22, x8, #28
Lloh0:
	adrp	x8, _CREATE_FLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CREATE_FLOW@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	mov	w5, #4
	bl	_IBV_INIT_CMD_RESP_EX_VCMD
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_write
	cmp	x0, x22
	b.ne	LBB0_9
; %bb.7:
	add	x0, sp, #8
	mov	w1, #4
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	x8, [x20]
	str	x8, [x19, #8]
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
LBB0_9:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_CREATE_FLOW,4,2                ; @CREATE_FLOW
.subsections_via_symbols
