	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_create_fr_pool
_srp_create_fr_pool:                    ## @srp_create_fr_pool
	.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	%rsi, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	movq	%rdi, %r15
	movl	%ecx, %r13d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %rbx
	movl	%r12d, (%rax)
	movl	%r13d, 4(%rax)
	leaq	24(%rax), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	_IB_DEVICE_SG_GAPS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.5:
	movq	_IB_MR_TYPE_MEM_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_4:
	movq	_IB_MR_TYPE_SG_GAPS@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_14
## %bb.7:
	movl	%r13d, %ebx
	movl	(%rax), %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_ib_alloc_mr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, 8(%r12)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	incl	%r13d
	addq	$16, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r13d
	jl	LBB0_8
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_srp_destroy_fr_pool
LBB0_12:
	movl	%r14d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_desc,4,2                       ## @desc
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_DEVICE_SG_GAPS_REG,4,2      ## @IB_DEVICE_SG_GAPS_REG
	.comm	_IB_MR_TYPE_SG_GAPS,4,2         ## @IB_MR_TYPE_SG_GAPS
	.comm	_IB_MR_TYPE_MEM_REG,4,2         ## @IB_MR_TYPE_MEM_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ib_alloc_mr() failed. Try to reduce max_cmd_per_lun, max_sect or ch_count\n"

	.no_dead_strip	_srp_create_fr_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_create_fr_pool
_srp_create_fr_pool:                    ; @srp_create_fr_pool
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ENOMEM@GOTPAGEOFF]
	ldr	w24, [x27]
Lloh2:
	adrp	x8, _desc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _desc@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_struct_size
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	stp	w23, w21, [x0], #24
	bl	_spin_lock_init
	add	x23, x20, #8
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x9, _IB_DEVICE_SG_GAPS_REG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_DEVICE_SG_GAPS_REG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _IB_MR_TYPE_MEM_REG@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IB_MR_TYPE_MEM_REG@GOTPAGEOFF]
Lloh13:
	adrp	x11, _IB_MR_TYPE_SG_GAPS@GOTPAGE
Lloh14:
	ldr	x11, [x11, _IB_MR_TYPE_SG_GAPS@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w28, #0
	ldr	w24, [x8]
	ldr	x25, [x20, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_ib_alloc_mr
	mov	x26, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x26, [x25, #8]
	mov	x0, x25
	mov	x1, x23
	bl	_list_add_tail
	add	w28, w28, #1
	add	x25, x25, #16
	ldr	w8, [x20]
	cmp	w28, w8
	b.lt	LBB0_4
LBB0_6:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_8:
	neg	w21, w24
	b	LBB0_12
LBB0_9:
	mov	x0, x26
	bl	_PTR_ERR
	mov	x21, x0
	ldr	w8, [x27]
	cmn	w0, w8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_11:
	mov	x0, x20
	bl	_srp_destroy_fr_pool
LBB0_12:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_desc,4,2                       ; @desc
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_DEVICE_SG_GAPS_REG,4,2      ; @IB_DEVICE_SG_GAPS_REG
	.comm	_IB_MR_TYPE_SG_GAPS,4,2         ; @IB_MR_TYPE_SG_GAPS
	.comm	_IB_MR_TYPE_MEM_REG,4,2         ; @IB_MR_TYPE_MEM_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ib_alloc_mr() failed. Try to reduce max_cmd_per_lun, max_sect or ch_count\n"

	.no_dead_strip	_srp_create_fr_pool
.subsections_via_symbols
