	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpddr_info_query
_lpddr_info_query:                      ## @lpddr_info_query
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_map_bankwidth
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %r14d
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_lpddr_get_qinforec_pos
	movq	%rax, %r15
	movq	_LPDDR_INFO_QUERY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_CMD
	movq	_PFOW_COMMAND_CODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_map_write
	movl	$-1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	notl	%eax
	movslq	%eax, %rdi
	andq	%r15, %rdi
	callq	_CMD
	movq	_PFOW_COMMAND_ADDRESS_L@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_map_write
	movl	%r14d, %ecx
	shrq	%cl, %r15
	movq	%r15, %rdi
	callq	_CMD
	movq	_PFOW_COMMAND_ADDRESS_H@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_map_write
	movq	_LPDDR_START_EXECUTION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_CMD
	movq	_PFOW_COMMAND_EXECUTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_map_write
	movl	$-20, %ebx
	movq	_PFOW_DSR@GOTPCREL(%rip), %r14
	movq	_DSR_READY_STATUS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_map_read
	movl	%eax, %edi
	callq	_CMDVAL
	testl	%eax, (%r15)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
LBB0_3:
	movq	_PFOW_COMMAND_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_map_read
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CMDVAL                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LPDDR_INFO_QUERY,8,3           ## @LPDDR_INFO_QUERY
	.comm	_PFOW_COMMAND_CODE,8,3          ## @PFOW_COMMAND_CODE
	.comm	_PFOW_COMMAND_ADDRESS_L,8,3     ## @PFOW_COMMAND_ADDRESS_L
	.comm	_PFOW_COMMAND_ADDRESS_H,8,3     ## @PFOW_COMMAND_ADDRESS_H
	.comm	_LPDDR_START_EXECUTION,8,3      ## @LPDDR_START_EXECUTION
	.comm	_PFOW_COMMAND_EXECUTE,8,3       ## @PFOW_COMMAND_EXECUTE
	.comm	_PFOW_DSR,8,3                   ## @PFOW_DSR
	.comm	_DSR_READY_STATUS,4,2           ## @DSR_READY_STATUS
	.comm	_PFOW_COMMAND_DATA,8,3          ## @PFOW_COMMAND_DATA
	.no_dead_strip	_lpddr_info_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpddr_info_query
_lpddr_info_query:                      ; @lpddr_info_query
	.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, x1
	mov	x19, x0
	bl	_map_bankwidth
	lsl	w21, w0, #3
	mov	x0, x19
	mov	x1, x20
	bl	_lpddr_get_qinforec_pos
	mov	x20, x0
Lloh0:
	adrp	x8, _LPDDR_INFO_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPDDR_INFO_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_CMD
	mov	x1, x0
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PFOW_COMMAND_CODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PFOW_COMMAND_CODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_map_write
	mov	w8, #-1
	lsl	w8, w8, w21
	mvn	w8, w8
	sxtw	x8, w8
	and	x0, x20, x8
	bl	_CMD
	mov	x1, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PFOW_COMMAND_ADDRESS_L@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PFOW_COMMAND_ADDRESS_L@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_map_write
	lsr	x0, x20, x21
	bl	_CMD
	mov	x1, x0
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _PFOW_COMMAND_ADDRESS_H@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PFOW_COMMAND_ADDRESS_H@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_map_write
Lloh12:
	adrp	x8, _LPDDR_START_EXECUTION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LPDDR_START_EXECUTION@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	bl	_CMD
	mov	x1, x0
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _PFOW_COMMAND_EXECUTE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PFOW_COMMAND_EXECUTE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_map_write
	mov	w20, #-20
Lloh18:
	adrp	x21, _PFOW_DSR@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PFOW_DSR@GOTPAGEOFF]
Lloh20:
	adrp	x22, _DSR_READY_STATUS@GOTPAGE
Lloh21:
	ldr	x22, [x22, _DSR_READY_STATUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_map_read
	bl	_CMDVAL
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	adds	w20, w20, #1
	b.lo	LBB0_1
LBB0_3:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _PFOW_COMMAND_DATA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PFOW_COMMAND_DATA@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_map_read
	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
	b	_CMDVAL
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LPDDR_INFO_QUERY,8,3           ; @LPDDR_INFO_QUERY
	.comm	_PFOW_COMMAND_CODE,8,3          ; @PFOW_COMMAND_CODE
	.comm	_PFOW_COMMAND_ADDRESS_L,8,3     ; @PFOW_COMMAND_ADDRESS_L
	.comm	_PFOW_COMMAND_ADDRESS_H,8,3     ; @PFOW_COMMAND_ADDRESS_H
	.comm	_LPDDR_START_EXECUTION,8,3      ; @LPDDR_START_EXECUTION
	.comm	_PFOW_COMMAND_EXECUTE,8,3       ; @PFOW_COMMAND_EXECUTE
	.comm	_PFOW_DSR,8,3                   ; @PFOW_DSR
	.comm	_DSR_READY_STATUS,4,2           ; @DSR_READY_STATUS
	.comm	_PFOW_COMMAND_DATA,8,3          ; @PFOW_COMMAND_DATA
	.no_dead_strip	_lpddr_info_query
.subsections_via_symbols
