	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLASH_ErasePage                ## -- Begin function FLASH_ErasePage
	.p2align	4, 0x90
_FLASH_ErasePage:                       ## @FLASH_ErasePage
	.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
	movl	%edi, %ebx
	callq	_IS_FLASH_ADDRESS
	movl	%eax, %edi
	callq	_ASSERT
	movq	_EraseTimeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_FLASH_WaitForLastOperation
	movq	_FLASH_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_FLASH_CR_PER@GOTPCREL(%rip), %r12
	movq	_FLASH@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	orl	(%r12), %ecx
	movl	%ebx, 8(%rax)
	movq	_FLASH_CR_STRT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%r15), %edi
	callq	_FLASH_WaitForLastOperation
	movq	_FLASH_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rcx
	jmp	LBB0_4
LBB0_3:
	movl	(%r12), %edx
	notl	%edx
	movq	(%r14), %rcx
	andl	%edx, 4(%rcx)
LBB0_4:
	movq	_FLASH_SR_EOP@GOTPCREL(%rip), %rdx
	movq	_FLASH_SR_PGERR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_FLASH_SR_WRPERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	%esi, (%rcx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLASH_COMPLETE,8,3             ## @FLASH_COMPLETE
	.comm	_EraseTimeout,4,2               ## @EraseTimeout
	.comm	_FLASH_CR_PER,4,2               ## @FLASH_CR_PER
	.comm	_FLASH,8,3                      ## @FLASH
	.comm	_FLASH_CR_STRT,4,2              ## @FLASH_CR_STRT
	.comm	_FLASH_TIMEOUT,8,3              ## @FLASH_TIMEOUT
	.comm	_FLASH_SR_EOP,4,2               ## @FLASH_SR_EOP
	.comm	_FLASH_SR_PGERR,4,2             ## @FLASH_SR_PGERR
	.comm	_FLASH_SR_WRPERR,4,2            ## @FLASH_SR_WRPERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLASH_ErasePage                ; -- Begin function FLASH_ErasePage
	.p2align	2
_FLASH_ErasePage:                       ; @FLASH_ErasePage
	.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	x19, x0
	bl	_IS_FLASH_ADDRESS
	bl	_ASSERT
Lloh0:
	adrp	x20, _EraseTimeout@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EraseTimeout@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_FLASH_WaitForLastOperation
Lloh2:
	adrp	x8, _FLASH_COMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLASH_COMPLETE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
Lloh5:
	adrp	x22, _FLASH_CR_PER@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FLASH_CR_PER@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh7:
	adrp	x21, _FLASH@GOTPAGE
Lloh8:
	ldr	x21, [x21, _FLASH@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w10, [x9, #4]
Lloh9:
	adrp	x11, _FLASH_CR_STRT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _FLASH_CR_STRT@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh11:
	ldr	w10, [x11]
	orr	w8, w10, w8
	stp	w8, w19, [x9, #4]
	ldr	w0, [x20]
	bl	_FLASH_WaitForLastOperation
Lloh12:
	adrp	x8, _FLASH_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLASH_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	b	LBB0_4
LBB0_3:
	ldr	w9, [x22]
	ldr	x8, [x21]
	ldr	w10, [x8, #4]
	bic	w9, w10, w9
	str	w9, [x8, #4]
LBB0_4:
Lloh15:
	adrp	x9, _FLASH_SR_EOP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FLASH_SR_EOP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _FLASH_SR_PGERR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FLASH_SR_PGERR@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _FLASH_SR_WRPERR@GOTPAGE
Lloh22:
	ldr	x10, [x10, _FLASH_SR_WRPERR@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8]
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FLASH_COMPLETE,8,3             ; @FLASH_COMPLETE
	.comm	_EraseTimeout,4,2               ; @EraseTimeout
	.comm	_FLASH_CR_PER,4,2               ; @FLASH_CR_PER
	.comm	_FLASH,8,3                      ; @FLASH
	.comm	_FLASH_CR_STRT,4,2              ; @FLASH_CR_STRT
	.comm	_FLASH_TIMEOUT,8,3              ; @FLASH_TIMEOUT
	.comm	_FLASH_SR_EOP,4,2               ; @FLASH_SR_EOP
	.comm	_FLASH_SR_PGERR,4,2             ; @FLASH_SR_PGERR
	.comm	_FLASH_SR_WRPERR,4,2            ; @FLASH_SR_WRPERR
.subsections_via_symbols
