	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_erase_dataflash                ## -- Begin function erase_dataflash
	.p2align	4, 0x90
_erase_dataflash:                       ## @erase_dataflash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movq	_DataFlashInst@GOTPCREL(%rip), %rdi
	leaq	-4(%rbp), %rsi
	callq	_AT91F_DataflashSelect
	cmpl	$-1, -4(%rbp)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_AT91F_DataFlashErase
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DataFlashInst,4,2              ## @DataFlashInst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_erase_dataflash                ; -- Begin function erase_dataflash
	.p2align	2
_erase_dataflash:                       ; @erase_dataflash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	w0, [x29, #-4]
Lloh0:
	adrp	x0, _DataFlashInst@GOTPAGE
Lloh1:
	ldr	x0, [x0, _DataFlashInst@GOTPAGEOFF]
	sub	x1, x29, #4
	bl	_AT91F_DataflashSelect
	ldur	w8, [x29, #-4]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	bl	_AT91F_DataFlashErase
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DataFlashInst,4,2              ; @DataFlashInst
.subsections_via_symbols
