	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_flash_set_vpp
_cp_flash_set_vpp:                      ## @cp_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
	movl	%esi, %eax
	movq	_syscon_regmap@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_INTCP_FLASHPROG_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CINTEGRATOR_FLMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_CINTEGRATOR_FLVPPEN@GOTPCREL(%rip), %rax
	movq	_CINTEGRATOR_FLWREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	jmp	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_syscon_regmap,4,2              ## @syscon_regmap
	.comm	_INTCP_FLASHPROG_OFFSET,4,2     ## @INTCP_FLASHPROG_OFFSET
	.comm	_CINTEGRATOR_FLMASK,4,2         ## @CINTEGRATOR_FLMASK
	.comm	_CINTEGRATOR_FLVPPEN,4,2        ## @CINTEGRATOR_FLVPPEN
	.comm	_CINTEGRATOR_FLWREN,4,2         ## @CINTEGRATOR_FLWREN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error setting CP VPP\n"

	.no_dead_strip	_cp_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 cp_flash_set_vpp
_cp_flash_set_vpp:                      ; @cp_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
	mov	x8, x1
Lloh0:
	adrp	x9, _syscon_regmap@GOTPAGE
Lloh1:
	ldr	x9, [x9, _syscon_regmap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _INTCP_FLASHPROG_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTCP_FLASHPROG_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _CINTEGRATOR_FLMASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CINTEGRATOR_FLMASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	cbz	w8, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _CINTEGRATOR_FLVPPEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CINTEGRATOR_FLVPPEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CINTEGRATOR_FLWREN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CINTEGRATOR_FLWREN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_regmap_update_bits
	cbz	w0, LBB0_4
LBB0_2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_err
LBB0_3:
	mov	w3, #0
	bl	_regmap_update_bits
	cbnz	w0, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_syscon_regmap,4,2              ; @syscon_regmap
	.comm	_INTCP_FLASHPROG_OFFSET,4,2     ; @INTCP_FLASHPROG_OFFSET
	.comm	_CINTEGRATOR_FLMASK,4,2         ; @CINTEGRATOR_FLMASK
	.comm	_CINTEGRATOR_FLVPPEN,4,2        ; @CINTEGRATOR_FLVPPEN
	.comm	_CINTEGRATOR_FLWREN,4,2         ; @CINTEGRATOR_FLWREN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error setting CP VPP\n"

	.no_dead_strip	_cp_flash_set_vpp
.subsections_via_symbols
