	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_create_rwq_ind_table   ## -- Begin function ibv_cmd_create_rwq_ind_table
	.p2align	4, 0x90
_ibv_cmd_create_rwq_ind_table:          ## @ibv_cmd_create_rwq_ind_table
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	(%rsi), %rax
	movq	_IBV_CREATE_IND_TABLE_RESERVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_12
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	8(%rsi), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	leal	-16(%r8), %edx
	leal	(,%rax,4), %esi
	cmpl	%esi, %edx
	jl	LBB0_12
## %bb.2:
	movq	%r9, %r12
	movq	%rdi, %r15
	movq	32(%rbp), %r11
	movq	24(%rbp), %r9
	movq	16(%rbp), %r10
	cmpl	$31, %ecx
	je	LBB0_10
## %bb.3:
	cmpl	$2, %eax
	movl	$1, %edx
	cmovgel	%eax, %edx
	movq	16(%r13), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_5:
	andl	$2147483644, %edx               ## imm = 0x7FFFFFFC
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movl	(%rdi), %edi
	movl	%edi, 64(%rbx,%rsi,4)
	movq	8(%rcx,%rsi,8), %rdi
	movl	(%rdi), %edi
	movl	%edi, 68(%rbx,%rsi,4)
	movq	16(%rcx,%rsi,8), %rdi
	movl	(%rdi), %edi
	movl	%edi, 72(%rbx,%rsi,4)
	movq	24(%rcx,%rsi,8), %rdi
	movl	(%rdi), %edi
	movl	%edi, 76(%rbx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	(%rbx,%rsi,4), %rdx
	addq	$64, %rdx
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movl	(%rdi), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_9
LBB0_10:
	movq	_CREATE_RWQ_IND_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r11, (%rsp)
	movq	%rbx, %rdi
	movq	%r8, %rsi
	movq	%r12, %rdx
	movq	%r10, %r8
	callq	_IBV_INIT_CMD_RESP_EX_V
	movl	8(%r13), %eax
	movl	%eax, (%rbx)
	movq	$0, 8(%rbx)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_write
	cltq
	cmpq	%r12, %rax
	jne	LBB0_15
## %bb.11:
	movq	16(%rbp), %rbx
	movq	%rbx, %rdi
	movq	32(%rbp), %rsi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movq	24(%rbp), %rax
	cmpq	%rax, (%rbx)
	jae	LBB0_16
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	movl	12(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r15, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_CREATE_IND_TABLE_RESERVED,8,3 ## @IBV_CREATE_IND_TABLE_RESERVED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CREATE_RWQ_IND_TBL,4,2         ## @CREATE_RWQ_IND_TBL
	.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_create_rwq_ind_table   ; -- Begin function ibv_cmd_create_rwq_ind_table
	.p2align	2
_ibv_cmd_create_rwq_ind_table:          ; @ibv_cmd_create_rwq_ind_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _IBV_CREATE_IND_TABLE_RESERVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IBV_CREATE_IND_TABLE_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x25, x1
	sub	w10, w4, #16
	ldr	w8, [x1, #8]
	mov	w9, #1
	lsl	w9, w9, w8
	cmp	w10, w9, lsl #2
	b.ge	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x21, x7
	mov	x19, x6
	mov	x23, x5
	mov	x24, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x26, [x29, #16]
	cmp	w8, #31
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x25, #16]
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	add	x10, x24, #64
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	ldr	w11, [x11]
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
Lloh5:
	adrp	x8, _CREATE_RWQ_IND_TBL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CREATE_RWQ_IND_TBL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x4
	mov	x2, x23
	mov	x4, x19
	mov	x5, x21
	mov	x6, x26
	bl	_IBV_INIT_CMD_RESP_EX_V
	ldr	w8, [x25, #8]
	str	w8, [x24]
	str	xzr, [x24, #8]
	ldr	w0, [x22]
	mov	x1, x24
	mov	x2, x23
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x26
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	x8, [x19]
	cmp	x8, x21
	b.lo	LBB0_2
; %bb.10:
	mov	w0, #0
	ldr	d0, [x19, #8]
	str	d0, [x20, #8]
	str	x22, [x20]
	b	LBB0_4
LBB0_11:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_CREATE_IND_TABLE_RESERVED,8,3 ; @IBV_CREATE_IND_TABLE_RESERVED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CREATE_RWQ_IND_TBL,4,2         ; @CREATE_RWQ_IND_TBL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
