	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvm_set_rqd_ppalist
_nvm_set_rqd_ppalist:                   ## @nvm_set_rqd_ppalist
	.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
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_NVM_PLANE_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r15)
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
	movl	(%rdx), %eax
	movl	%eax, 20(%rbx)
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_3:
	movq	8(%r15), %rdi
	movl	%r14d, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %rdx
	callq	_nvm_dev_dma_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %ecx
	movl	(%rbx), %eax
	imull	%ecx, %eax
	movl	%eax, (%rbx)
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.6:
	movl	%r14d, %r8d
	leaq	-1(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	andl	$3, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r12d
	andl	$-4, %r12d
	leaq	(,%r8,8), %r13
	movq	%r8, %r11
	shlq	$4, %r11
	leaq	(,%r8,4), %rsi
	leaq	(%rsi,%rsi,2), %r9
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	addq	$4, %r14
	cmpq	%r8, %r15
	je	LBB0_17
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$3, -56(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %r10
	movq	%r14, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rcx
	movl	%edi, (%rcx,%rdx)
	movq	8(%rbx), %rcx
	addq	%rsi, %rcx
	leal	1(%rdi), %eax
	movl	%eax, (%rdx,%rcx)
	movq	8(%rbx), %rax
	addq	%r13, %rax
	leal	2(%rdi), %ecx
	movl	%ecx, (%rdx,%rax)
	movq	8(%rbx), %rax
	addq	%r9, %rax
	leal	3(%rdi), %ecx
	movl	%ecx, (%rdx,%rax)
	addq	$4, %rdi
	addq	%r11, %rdx
	cmpq	%r12, %rdi
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r10, %rcx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, %rdx
	imulq	%r8, %rdx
	addq	%r15, %rdx
	shlq	$2, %rdx
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	%edi, (%rax,%rdx)
	incl	%edi
	addq	%rsi, %rdx
	decq	%r10
	jne	LBB0_15
	jmp	LBB0_16
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_PLANE_SINGLE,4,2           ## @NVM_PLANE_SINGLE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate dma memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvm_set_rqd_ppalist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvm_set_rqd_ppalist
_nvm_set_rqd_ppalist:                   ; @nvm_set_rqd_ppalist
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x1
	mov	x21, x0
	cmp	w3, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _NVM_PLANE_SINGLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVM_PLANE_SINGLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x2]
	str	w8, [x19, #20]
	b	LBB0_12
LBB0_3:
	ldr	x0, [x21, #8]
	str	w20, [x19]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #16
	bl	_nvm_dev_dma_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x19]
	mul	w9, w9, w8
	str	w9, [x19]
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x9, #0
	mov	x10, #0
	mov	w11, w20
	lsl	x12, x11, #2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	add	x9, x9, #4
	cmp	x10, x11
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x13, #0
	mov	x14, x9
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x19, #8]
	str	w13, [x15, x14]
	add	x13, x13, #1
	add	x14, x14, x12
	cmp	x8, x13
	b.ne	LBB0_9
	b	LBB0_6
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_PLANE_SINGLE,4,2           ; @NVM_PLANE_SINGLE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate dma memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvm_set_rqd_ppalist
.subsections_via_symbols
