	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_flash_set_vpp
_ap_flash_set_vpp:                      ## @ap_flash_set_vpp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_syscon_regmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_INTEGRATOR_SC_CTRLS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTEGRATOR_SC_CTRL_FLVPPEN@GOTPCREL(%rip), %rax
	movq	_INTEGRATOR_SC_CTRL_FLWP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_3:
	movq	_INTEGRATOR_SC_CTRLC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTEGRATOR_SC_CTRL_FLVPPEN@GOTPCREL(%rip), %rax
	movq	_INTEGRATOR_SC_CTRL_FLWP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_syscon_regmap,4,2              ## @syscon_regmap
	.comm	_INTEGRATOR_SC_CTRLS_OFFSET,4,2 ## @INTEGRATOR_SC_CTRLS_OFFSET
	.comm	_INTEGRATOR_SC_CTRL_FLVPPEN,4,2 ## @INTEGRATOR_SC_CTRL_FLVPPEN
	.comm	_INTEGRATOR_SC_CTRL_FLWP,4,2    ## @INTEGRATOR_SC_CTRL_FLWP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error enabling AP VPP\n"

	.comm	_INTEGRATOR_SC_CTRLC_OFFSET,4,2 ## @INTEGRATOR_SC_CTRLC_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"error disabling AP VPP\n"

	.no_dead_strip	_ap_flash_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_flash_set_vpp
_ap_flash_set_vpp:                      ; @ap_flash_set_vpp
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _syscon_regmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _syscon_regmap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w1, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _INTEGRATOR_SC_CTRLS_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEGRATOR_SC_CTRLS_OFFSET@GOTPAGEOFF]
Lloh5:
	adrp	x9, _INTEGRATOR_SC_CTRL_FLVPPEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INTEGRATOR_SC_CTRL_FLVPPEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _INTEGRATOR_SC_CTRL_FLWP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INTEGRATOR_SC_CTRL_FLWP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbz	w0, LBB0_5
; %bb.2:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_err
LBB0_3:
Lloh14:
	adrp	x8, _INTEGRATOR_SC_CTRLC_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTEGRATOR_SC_CTRLC_OFFSET@GOTPAGEOFF]
Lloh16:
	adrp	x9, _INTEGRATOR_SC_CTRL_FLVPPEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INTEGRATOR_SC_CTRL_FLVPPEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	ldr	w8, [x9]
Lloh20:
	adrp	x9, _INTEGRATOR_SC_CTRL_FLWP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _INTEGRATOR_SC_CTRL_FLWP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbz	w0, LBB0_5
; %bb.4:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_err
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_syscon_regmap,4,2              ; @syscon_regmap
	.comm	_INTEGRATOR_SC_CTRLS_OFFSET,4,2 ; @INTEGRATOR_SC_CTRLS_OFFSET
	.comm	_INTEGRATOR_SC_CTRL_FLVPPEN,4,2 ; @INTEGRATOR_SC_CTRL_FLVPPEN
	.comm	_INTEGRATOR_SC_CTRL_FLWP,4,2    ; @INTEGRATOR_SC_CTRL_FLWP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error enabling AP VPP\n"

	.comm	_INTEGRATOR_SC_CTRLC_OFFSET,4,2 ; @INTEGRATOR_SC_CTRLC_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"error disabling AP VPP\n"

	.no_dead_strip	_ap_flash_set_vpp
.subsections_via_symbols
