	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpddr_chip_setup
_lpddr_chip_setup:                      ## @lpddr_chip_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_PFOW_MANUFACTURER_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_map_read
	movl	%eax, %edi
	callq	_CMDVAL
	movq	%rax, 16(%r14)
	movq	_PFOW_DEVICE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_map_read
	movl	%eax, %edi
	callq	_CMDVAL
	movq	%rax, 8(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 64(%rcx)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 56(%rcx)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 48(%rcx)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 40(%rcx)
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 32(%rcx)
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_lpddr_info_query
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PFOW_MANUFACTURER_ID,8,3       ## @PFOW_MANUFACTURER_ID
	.comm	_PFOW_DEVICE_ID,8,3             ## @PFOW_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DevSizeShift"

L_.str.1:                               ## @.str.1
	.asciz	"TotalBlocksNum"

L_.str.2:                               ## @.str.2
	.asciz	"BufSizeShift"

L_.str.3:                               ## @.str.3
	.asciz	"HWPartsNum"

L_.str.4:                               ## @.str.4
	.asciz	"UniformBlockSizeShift"

L_.str.5:                               ## @.str.5
	.asciz	"SuspEraseSupp"

L_.str.6:                               ## @.str.6
	.asciz	"SingleWordProgTime"

L_.str.7:                               ## @.str.7
	.asciz	"ProgBufferTime"

L_.str.8:                               ## @.str.8
	.asciz	"BlockEraseTime"

	.no_dead_strip	_lpddr_chip_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpddr_chip_setup
_lpddr_chip_setup:                      ; @lpddr_chip_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _PFOW_MANUFACTURER_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PFOW_MANUFACTURER_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_map_read
	bl	_CMDVAL
	str	x0, [x19, #16]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _PFOW_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PFOW_DEVICE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_map_read
	bl	_CMDVAL
	str	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #64]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #56]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #48]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #40]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #32]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #24]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #16]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8, #8]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_lpddr_info_query
	ldr	x8, [x19]
	str	x0, [x8]
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PFOW_MANUFACTURER_ID,8,3       ; @PFOW_MANUFACTURER_ID
	.comm	_PFOW_DEVICE_ID,8,3             ; @PFOW_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DevSizeShift"

l_.str.1:                               ; @.str.1
	.asciz	"TotalBlocksNum"

l_.str.2:                               ; @.str.2
	.asciz	"BufSizeShift"

l_.str.3:                               ; @.str.3
	.asciz	"HWPartsNum"

l_.str.4:                               ; @.str.4
	.asciz	"UniformBlockSizeShift"

l_.str.5:                               ; @.str.5
	.asciz	"SuspEraseSupp"

l_.str.6:                               ; @.str.6
	.asciz	"SingleWordProgTime"

l_.str.7:                               ; @.str.7
	.asciz	"ProgBufferTime"

l_.str.8:                               ; @.str.8
	.asciz	"BlockEraseTime"

	.no_dead_strip	_lpddr_chip_setup
.subsections_via_symbols
