	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lpddr_cmdset                   ## -- Begin function lpddr_cmdset
	.p2align	4, 0x90
_lpddr_cmdset:                          ## @lpddr_cmdset
	.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	%rdi, %r15
	movq	(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 88(%rax)
	movq	_MTD_NORFLASH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_lpddr_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 80(%rbx)
	movq	%rax, 72(%rbx)
	movq	_MTD_CAP_NORFLASH@GOTPCREL(%rip), %rax
	movq	_MTD_BIT_WRITEABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rax), %ecx
	movl	%ecx, 68(%rbx)
	movq	_lpddr_erase@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_lpddr_write_buffers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_lpddr_writev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_lpddr_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_lpddr_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%r15, %rdi
	callq	_map_is_linear
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_lpddr_point@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_lpddr_unpoint@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
LBB0_4:
	movq	32(%r13), %rax
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	$1, %esi
	movl	%edx, (%rbx)
	movb	4(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 4(%rbx)
	movb	8(%rax), %cl
	shll	%cl, %esi
	movl	%esi, 8(%rbx)
	movl	12(%r13), %edi
	movl	(%r14), %edx
	movl	$24, %esi
	callq	_kmalloc_array
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	12(%r13), %eax
	movq	32(%r13), %rcx
	cltd
	idivl	12(%rcx)
	testl	%eax, %eax
	jle	LBB0_14
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rbx
	movl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_FL_READY@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	(%r12,%r12,2), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r15
	movq	$0, 8(%rcx,%rax,8)
	movl	$0, 16(%rcx,%rax,8)
	movq	%r15, %rdi
	callq	_mutex_init
	movq	32(%r13), %rax
	cmpl	$0, 12(%rax)
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	shlq	$5, %rcx
	movups	(%rax,%rcx), %xmm0
	movups	16(%rax,%rcx), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	movzbl	16(%r13), %ecx
	movl	%r15d, %eax
	shll	%cl, %eax
	addl	%eax, (%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	%r12, 16(%rbx)
	leaq	8(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	4(%rbx), %rdi
	callq	_mutex_init
	addq	$32, %rbx
	incl	%r15d
	movq	32(%r13), %rax
	cmpl	12(%rax), %r15d
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MTD_NORFLASH,8,3               ## @MTD_NORFLASH
	.comm	_lpddr_read,4,2                 ## @lpddr_read
	.comm	_MTD_CAP_NORFLASH,4,2           ## @MTD_CAP_NORFLASH
	.comm	_MTD_BIT_WRITEABLE,4,2          ## @MTD_BIT_WRITEABLE
	.comm	_lpddr_erase,4,2                ## @lpddr_erase
	.comm	_lpddr_write_buffers,4,2        ## @lpddr_write_buffers
	.comm	_lpddr_writev,4,2               ## @lpddr_writev
	.comm	_lpddr_lock,4,2                 ## @lpddr_lock
	.comm	_lpddr_unlock,4,2               ## @lpddr_unlock
	.comm	_lpddr_point,4,2                ## @lpddr_point
	.comm	_lpddr_unpoint,4,2              ## @lpddr_unpoint
	.comm	_FL_READY,4,2                   ## @FL_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lpddr_cmdset                   ; -- Begin function lpddr_cmdset
	.p2align	2
_lpddr_cmdset:                          ; @lpddr_cmdset
	.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	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #96
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
	str	x21, [x19, #88]
Lloh2:
	adrp	x8, _MTD_NORFLASH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MTD_NORFLASH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _lpddr_read@GOTPAGE
Lloh6:
	ldr	x9, [x9, _lpddr_read@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x19, #80]
	str	x8, [x19, #72]
Lloh8:
	adrp	x8, _MTD_CAP_NORFLASH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTD_CAP_NORFLASH@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MTD_BIT_WRITEABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MTD_BIT_WRITEABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh14:
	adrp	x9, _lpddr_erase@GOTPAGE
Lloh15:
	ldr	x9, [x9, _lpddr_erase@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
Lloh17:
	adrp	x8, _lpddr_write_buffers@GOTPAGE
Lloh18:
	ldr	x8, [x8, _lpddr_write_buffers@GOTPAGEOFF]
Lloh19:
	adrp	x9, _lpddr_writev@GOTPAGE
Lloh20:
	ldr	x9, [x9, _lpddr_writev@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
Lloh23:
	adrp	x8, _lpddr_lock@GOTPAGE
Lloh24:
	ldr	x8, [x8, _lpddr_lock@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _lpddr_unlock@GOTPAGE
Lloh27:
	ldr	x9, [x9, _lpddr_unlock@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	mov	x0, x21
	bl	_map_is_linear
	cbz	x0, LBB0_3
; %bb.2:
Lloh29:
	adrp	x8, _lpddr_point@GOTPAGE
Lloh30:
	ldr	x8, [x8, _lpddr_point@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _lpddr_unpoint@GOTPAGE
Lloh33:
	ldr	x9, [x9, _lpddr_unpoint@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
LBB0_3:
	ldr	x8, [x20, #32]
	ldr	d0, [x8]
	movi.2s	v1, #1
	ushl.2s	v0, v1, v0
	str	d0, [x19]
	ldr	w8, [x8, #8]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w0, [x20, #12]
	ldr	w2, [x22]
	mov	w1, #24
	bl	_kmalloc_array
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x20, #12]
	ldr	x9, [x20, #32]
	ldr	w9, [x9, #12]
	sdiv	w23, w8, w9
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x21, x0
	mov	x24, #0
	ldr	x25, [x20, #24]
	mov	w26, #24
Lloh35:
	adrp	x27, _FL_READY@GOTPAGE
Lloh36:
	ldr	x27, [x27, _FL_READY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	cmp	x24, x23
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	madd	x22, x24, x26, x21
	str	xzr, [x22, #8]
	str	wzr, [x22, #16]
	mov	x0, x22
	bl	_mutex_init
	ldr	x8, [x20, #32]
	ldr	w8, [x8, #12]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w28, #0
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #24]
	add	x8, x8, x24, lsl #5
	ldp	q0, q1, [x8]
	stp	q0, q1, [x25]
	ldr	w8, [x20, #16]
	lsl	w8, w28, w8
	ldr	w9, [x25]
	add	w8, w9, w8
	str	w8, [x25]
	ldr	w8, [x27]
	stp	w8, w8, [x25, #24]
	str	x22, [x25, #16]
	add	x0, x25, #8
	bl	_init_waitqueue_head
	add	x0, x25, #4
	bl	_mutex_init
	add	x25, x25, #32
	add	w28, w28, #1
	ldr	x8, [x20, #32]
	ldr	w8, [x8, #12]
	cmp	w28, w8
	b.lt	LBB0_9
	b	LBB0_6
LBB0_10:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MTD_NORFLASH,8,3               ; @MTD_NORFLASH
	.comm	_lpddr_read,4,2                 ; @lpddr_read
	.comm	_MTD_CAP_NORFLASH,4,2           ; @MTD_CAP_NORFLASH
	.comm	_MTD_BIT_WRITEABLE,4,2          ; @MTD_BIT_WRITEABLE
	.comm	_lpddr_erase,4,2                ; @lpddr_erase
	.comm	_lpddr_write_buffers,4,2        ; @lpddr_write_buffers
	.comm	_lpddr_writev,4,2               ; @lpddr_writev
	.comm	_lpddr_lock,4,2                 ; @lpddr_lock
	.comm	_lpddr_unlock,4,2               ; @lpddr_unlock
	.comm	_lpddr_point,4,2                ; @lpddr_point
	.comm	_lpddr_unpoint,4,2              ; @lpddr_unpoint
	.comm	_FL_READY,4,2                   ; @FL_READY
.subsections_via_symbols
