	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function versatile_flash_set_vpp
_versatile_flash_set_vpp:               ## @versatile_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
	movq	_VERSATILE_SYS_FLASH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%esi, %esi
	setne	%cl
	movl	%eax, %esi
	movl	$1, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_syscon_regmap,4,2              ## @syscon_regmap
	.comm	_VERSATILE_SYS_FLASH_OFFSET,4,2 ## @VERSATILE_SYS_FLASH_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error setting Versatile VPP\n"

	.no_dead_strip	_versatile_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 versatile_flash_set_vpp
_versatile_flash_set_vpp:               ; @versatile_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]
Lloh3:
	adrp	x8, _VERSATILE_SYS_FLASH_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERSATILE_SYS_FLASH_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, #0
	cset	w3, ne
	mov	x1, x8
	mov	w2, #1
	bl	_regmap_update_bits
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_err
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_syscon_regmap,4,2              ; @syscon_regmap
	.comm	_VERSATILE_SYS_FLASH_OFFSET,4,2 ; @VERSATILE_SYS_FLASH_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error setting Versatile VPP\n"

	.no_dead_strip	_versatile_flash_set_vpp
.subsections_via_symbols
