	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpddr2_nvm_pfow_present
_lpddr2_nvm_pfow_present:               ## @lpddr2_nvm_pfow_present
	.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, %r15
	movq	_lpdd2_nvm_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_ow_enable
	movq	_PFOW_QUERY_STRING_P@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ow_reg_add
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_map_read
	movl	%eax, %r14d
	movq	_PFOW_QUERY_STRING_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ow_reg_add
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_map_read
	movl	%eax, %r13d
	movq	_PFOW_QUERY_STRING_O@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ow_reg_add
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_map_read
	movl	%eax, %r12d
	movq	_PFOW_QUERY_STRING_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ow_reg_add
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_map_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$80, %edi
	callq	_build_map_word
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_map_word_equal
	testl	%eax, %eax
	setne	%r14b
	movl	$70, %edi
	callq	_build_map_word
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_map_word_equal
	testl	%eax, %eax
	setne	%bl
	movl	$79, %edi
	callq	_build_map_word
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_map_word_equal
	testl	%eax, %eax
	setne	%r12b
	movl	$87, %edi
	callq	_build_map_word
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_map_word_equal
	testl	%eax, %eax
	setne	%al
	andb	%r12b, %al
	andb	%r14b, %bl
	andb	%al, %bl
	movzbl	%bl, %r14d
	movq	%r15, %rdi
	callq	_ow_disable
	movq	_lpdd2_nvm_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lpdd2_nvm_mutex,4,2            ## @lpdd2_nvm_mutex
	.comm	_PFOW_QUERY_STRING_P,4,2        ## @PFOW_QUERY_STRING_P
	.comm	_PFOW_QUERY_STRING_F,4,2        ## @PFOW_QUERY_STRING_F
	.comm	_PFOW_QUERY_STRING_O,4,2        ## @PFOW_QUERY_STRING_O
	.comm	_PFOW_QUERY_STRING_W,4,2        ## @PFOW_QUERY_STRING_W
	.no_dead_strip	_lpddr2_nvm_pfow_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpddr2_nvm_pfow_present
_lpddr2_nvm_pfow_present:               ; @lpddr2_nvm_pfow_present
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x19, _lpdd2_nvm_mutex@GOTPAGE
Lloh1:
	ldr	x19, [x19, _lpdd2_nvm_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_ow_enable
Lloh2:
	adrp	x8, _PFOW_QUERY_STRING_P@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PFOW_QUERY_STRING_P@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ow_reg_add
	mov	x1, x0
	mov	x0, x20
	bl	_map_read
	mov	x21, x0
Lloh5:
	adrp	x8, _PFOW_QUERY_STRING_F@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PFOW_QUERY_STRING_F@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ow_reg_add
	mov	x1, x0
	mov	x0, x20
	bl	_map_read
	mov	x22, x0
Lloh8:
	adrp	x8, _PFOW_QUERY_STRING_O@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PFOW_QUERY_STRING_O@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ow_reg_add
	mov	x1, x0
	mov	x0, x20
	bl	_map_read
	mov	x23, x0
Lloh11:
	adrp	x8, _PFOW_QUERY_STRING_W@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PFOW_QUERY_STRING_W@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ow_reg_add
	mov	x1, x0
	mov	x0, x20
	bl	_map_read
	mov	x24, x0
	mov	w0, #80
	bl	_build_map_word
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_map_word_equal
	mov	x21, x0
	mov	w0, #70
	bl	_build_map_word
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_map_word_equal
	mov	x22, x0
	mov	w0, #79
	bl	_build_map_word
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_map_word_equal
	mov	x23, x0
	mov	w0, #87
	bl	_build_map_word
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_map_word_equal
	cmp	w0, #0
	ccmp	w23, #0, #4, ne
	ccmp	w22, #0, #4, ne
	ccmp	w21, #0, #4, ne
	cset	w21, ne
	mov	x0, x20
	bl	_ow_disable
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_lpdd2_nvm_mutex,4,2            ; @lpdd2_nvm_mutex
	.comm	_PFOW_QUERY_STRING_P,4,2        ; @PFOW_QUERY_STRING_P
	.comm	_PFOW_QUERY_STRING_F,4,2        ; @PFOW_QUERY_STRING_F
	.comm	_PFOW_QUERY_STRING_O,4,2        ; @PFOW_QUERY_STRING_O
	.comm	_PFOW_QUERY_STRING_W,4,2        ; @PFOW_QUERY_STRING_W
	.no_dead_strip	_lpddr2_nvm_pfow_present
.subsections_via_symbols
