	.file	"extr_stm32f0xx_flash.c_FLASH_OB_Erase.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	FLASH_OB_Erase
	.type	FLASH_OB_Erase, @function
FLASH_OB_Erase:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	eax, eax
	mov	ebx, DWORD PTR OB_RDP_Level_0[rip]
	call	FLASH_OB_GetRDP@PLT
	mov	edi, DWORD PTR FLASH_ER_PRG_TIMEOUT[rip]
	cmp	rax, QWORD PTR RESET[rip]
	mov	eax, 0
	cmovne	ebx, eax
	call	FLASH_WaitForLastOperation@PLT
	cmp	QWORD PTR FLASH_COMPLETE[rip], rax
	je	.L9
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdx, QWORD PTR FLASH[rip]
	mov	eax, DWORD PTR [rdx]
	or	eax, DWORD PTR FLASH_CR_OPTER[rip]
	mov	DWORD PTR [rdx], eax
	or	eax, DWORD PTR FLASH_CR_STRT[rip]
	mov	DWORD PTR [rdx], eax
	mov	edi, DWORD PTR FLASH_ER_PRG_TIMEOUT[rip]
	call	FLASH_WaitForLastOperation@PLT
	cmp	QWORD PTR FLASH_COMPLETE[rip], rax
	je	.L10
	cmp	QWORD PTR FLASH_TIMEOUT[rip], rax
	je	.L1
.L6:
	mov	edx, DWORD PTR FLASH_CR_OPTPG[rip]
	mov	rcx, QWORD PTR FLASH[rip]
	not	edx
	and	DWORD PTR [rcx], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdx, QWORD PTR FLASH[rip]
	mov	eax, DWORD PTR FLASH_CR_OPTER[rip]
	not	eax
	and	eax, DWORD PTR [rdx]
	mov	DWORD PTR [rdx], eax
	or	eax, DWORD PTR FLASH_CR_OPTPG[rip]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR OB[rip]
	mov	DWORD PTR [rax], ebx
	mov	edi, DWORD PTR FLASH_ER_PRG_TIMEOUT[rip]
	call	FLASH_WaitForLastOperation@PLT
	cmp	QWORD PTR FLASH_TIMEOUT[rip], rax
	jne	.L6
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	FLASH_OB_Erase, .-FLASH_OB_Erase
	.comm	RESET,8,8
	.comm	OB_RDP_Level_0,4,4
	.comm	OB,8,8
	.comm	FLASH_TIMEOUT,8,8
	.comm	FLASH_ER_PRG_TIMEOUT,4,4
	.comm	FLASH_CR_STRT,4,4
	.comm	FLASH_CR_OPTPG,4,4
	.comm	FLASH_CR_OPTER,4,4
	.comm	FLASH_COMPLETE,8,8
	.comm	FLASH,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_stm32f0xx_flash.c_FLASH_OB_Erase.c"
	.text
	.align	2
	.global	FLASH_OB_Erase
	.syntax unified
	.arm
	.fpu softvfp
	.type	FLASH_OB_Erase, %function
FLASH_OB_Erase:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r3]
	bl	FLASH_OB_GetRDP
	mov	r2, r0
	ldr	r3, .L8+4
	ldr	r5, .L8+8
	ldr	r3, [r3]
	ldr	r0, [r5]
	cmp	r2, r3
	movne	r4, #0
	bl	FLASH_WaitForLastOperation
	ldr	r6, .L8+12
	ldr	r3, [r6]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L8+16
	ldr	r8, .L8+20
	ldr	r2, [r7]
	ldr	r0, [r8]
	ldr	r3, [r2]
	ldr	r1, .L8+24
	orr	r3, r3, r0
	str	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r1, r3
	str	r3, [r2]
	ldr	r0, [r5]
	bl	FLASH_WaitForLastOperation
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L7
	ldr	r3, .L8+28
	ldr	r3, [r3]
	cmp	r3, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r7]
	ldr	r1, .L8+32
	ldr	r3, [r2]
	ldr	r1, [r1]
	bic	r3, r3, r1
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r2, [r7]
	ldr	r1, [r8]
	ldr	r3, [r2]
	ldr	r6, .L8+32
	bic	r3, r3, r1
	str	r3, [r2]
	ldr	r0, .L8+36
	ldr	r1, [r6]
	ldr	r0, [r0]
	orr	r3, r1, r3
	str	r3, [r2]
	str	r4, [r0]
	ldr	r0, [r5]
	bl	FLASH_WaitForLastOperation
	ldr	r3, .L8+28
	ldr	r3, [r3]
	cmp	r3, r0
	ldrne	r2, [r7]
	ldrne	r1, [r6]
	ldrne	r3, [r2]
	bicne	r3, r3, r1
	strne	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	OB_RDP_Level_0
	.word	RESET
	.word	FLASH_ER_PRG_TIMEOUT
	.word	FLASH_COMPLETE
	.word	FLASH
	.word	FLASH_CR_OPTER
	.word	FLASH_CR_STRT
	.word	FLASH_TIMEOUT
	.word	FLASH_CR_OPTPG
	.word	OB
	.size	FLASH_OB_Erase, .-FLASH_OB_Erase
	.comm	RESET,4,4
	.comm	OB_RDP_Level_0,4,4
	.comm	OB,4,4
	.comm	FLASH_TIMEOUT,4,4
	.comm	FLASH_ER_PRG_TIMEOUT,4,4
	.comm	FLASH_CR_STRT,4,4
	.comm	FLASH_CR_OPTPG,4,4
	.comm	FLASH_CR_OPTER,4,4
	.comm	FLASH_COMPLETE,4,4
	.comm	FLASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
