	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_fc_alloc_ls_iodlist
_nvmet_fc_alloc_ls_iodlist:             ## @nvmet_fc_alloc_ls_iodlist
	.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	%rdi, %r12
	movq	_NVMET_LS_CTX_COUNT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r12)
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.3:
	leaq	4(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$40, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_nvmet_fc_handle_ls_rqst_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r12, -8(%rbx)
	leaq	-40(%rbx), %r14
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	_NVME_FC_MAX_LS_BUFFER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %edi
	callq	_kcalloc
	movq	%rax, -32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r15), %rdx
	leaq	(%rdx,%rdx,2), %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	movq	%rax, -16(%rbx)
	movl	(%r12), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fc_dma_map_single
	movl	%eax, -24(%rbx)
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_fc_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	addq	$48, %rbx
	movq	_NVMET_LS_CTX_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_4
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_6:
	movq	-32(%rbx), %rax
LBB0_7:
	movq	%rax, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_list_del
	addq	$-88, %rbx
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:
	incl	%r13d
	movq	%r12, %r14
	movq	_NVME_FC_MAX_LS_BUFFER_SIZE@GOTPCREL(%rip), %r15
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	16(%rbx), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	callq	_fc_dma_unmap_single
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_list_del
	addq	$-48, %rbx
	decl	%r13d
	cmpl	$1, %r13d
	jg	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_LS_CTX_COUNT,4,2         ## @NVMET_LS_CTX_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nvmet_fc_handle_ls_rqst_work,4,2 ## @nvmet_fc_handle_ls_rqst_work
	.comm	_NVME_FC_MAX_LS_BUFFER_SIZE,4,2 ## @NVME_FC_MAX_LS_BUFFER_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_nvmet_fc_alloc_ls_iodlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_fc_alloc_ls_iodlist
_nvmet_fc_alloc_ls_iodlist:             ; @nvmet_fc_alloc_ls_iodlist
	.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
	mov	x19, x0
Lloh0:
	adrp	x25, _NVMET_LS_CTX_COUNT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NVMET_LS_CTX_COUNT@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	w1, #48
	bl	_kcalloc
	cbz	x0, LBB0_7
; %bb.1:
	str	x0, [x19, #8]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w24, #0
	add	x21, x19, #4
Lloh4:
	adrp	x27, _nvmet_fc_handle_ls_rqst_work@GOTPAGE
Lloh5:
	ldr	x27, [x27, _nvmet_fc_handle_ls_rqst_work@GOTPAGEOFF]
	sub	x20, x0, #48
Lloh6:
	adrp	x22, _NVME_FC_MAX_LS_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NVME_FC_MAX_LS_BUFFER_SIZE@GOTPAGEOFF]
	mov	w28, #48
Lloh8:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, #88
	ldr	w1, [x27]
	bl	_INIT_WORK
	str	x19, [x20, #80]
	add	x0, x20, #48
	mov	x1, x21
	bl	_list_add_tail
	ldr	w1, [x22]
	ldr	w2, [x26]
	mov	w0, #2
	bl	_kcalloc
	str	x0, [x20, #56]
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x2, [x22]
	madd	x1, x2, x28, x0
	str	x1, [x20, #72]
	ldr	w0, [x19]
	ldr	w3, [x23]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fc_dma_map_single
	mov	x1, x0
	str	w0, [x20, #64]
	ldr	w0, [x19]
	bl	_fc_dma_mapping_error
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x25]
	add	x20, x20, #48
	cmp	w24, w8
	b.lt	LBB0_3
LBB0_6:
	mov	w0, #0
	b	LBB0_14
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	ldr	x0, [x20, #56]
LBB0_9:
	bl	_kfree
	add	x0, x20, #48
	bl	_list_del
	cbz	w24, LBB0_12
; %bb.10:
	add	w21, w24, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x20, #16]
	ldr	w2, [x22]
	ldr	w3, [x23]
	bl	_fc_dma_unmap_single
	ldr	x0, [x20, #8]
	bl	_kfree
	mov	x0, x20
	bl	_list_del
	sub	x20, x20, #48
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_11
LBB0_12:
	mov	x0, x20
	bl	_kfree
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_LS_CTX_COUNT,4,2         ; @NVMET_LS_CTX_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nvmet_fc_handle_ls_rqst_work,4,2 ; @nvmet_fc_handle_ls_rqst_work
	.comm	_NVME_FC_MAX_LS_BUFFER_SIZE,4,2 ; @NVME_FC_MAX_LS_BUFFER_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_nvmet_fc_alloc_ls_iodlist
.subsections_via_symbols
