	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_rdma_init_srq
_nvmet_rdma_init_srq:                   ## @nvmet_rdma_init_srq
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	$4095, -72(%rbp)                ## imm = 0xFFF
	movq	32(%rdi), %rax
	incq	%rax
	movq	%rax, -56(%rbp)
	movq	_IB_SRQT_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	24(%rdi), %edi
	leaq	-80(%rbp), %rsi
	callq	_ib_create_srq
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_2:
	movl	$4095, %esi                     ## imm = 0xFFF
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nvmet_rdma_alloc_cmds
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_6:
	movq	%r14, 16(%r15)
	movq	$4095, (%r15)                   ## imm = 0xFFF
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_nvmet_rdma_post_recv
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rbx
	cmpq	$16380, %rbx                    ## imm = 0x3FFC
	jne	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %r12d
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_nvmet_rdma_free_cmds
LBB0_9:
	movq	%r14, %rdi
	callq	_ib_destroy_srq
LBB0_10:
	movl	%r12d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SRQT_BASIC,4,2              ## @IB_SRQT_BASIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SRQ requested but not supported.\n"

	.no_dead_strip	_nvmet_rdma_init_srq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_rdma_init_srq
_nvmet_rdma_init_srq:                   ; @nvmet_rdma_init_srq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	mov	w8, #4095
	ldr	x9, [x0, #32]
	add	x9, x9, #1
	str	x8, [sp, #8]
	stp	x9, xzr, [sp, #24]
Lloh0:
	adrp	x8, _IB_SRQT_BASIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SRQT_BASIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	w0, [x0, #24]
	mov	x1, sp
	bl	_ib_create_srq
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w21, #0
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	mov	w1, #4095
	mov	w2, #0
	bl	_nvmet_rdma_alloc_cmds
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_9
LBB0_4:
	mov	x22, #0
	str	x20, [x19, #16]
	mov	w23, #4095
	str	x23, [x19]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_nvmet_rdma_post_recv
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #4
	subs	x23, x23, #1
	b.ne	LBB0_5
; %bb.7:
	mov	w21, #0
	b	LBB0_10
LBB0_8:
	mov	x21, x0
	ldp	x2, x1, [x19]
	mov	x0, x19
	mov	w3, #0
	bl	_nvmet_rdma_free_cmds
LBB0_9:
	mov	x0, x20
	bl	_ib_destroy_srq
LBB0_10:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SRQT_BASIC,4,2              ; @IB_SRQT_BASIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SRQ requested but not supported.\n"

	.no_dead_strip	_nvmet_rdma_init_srq
.subsections_via_symbols
