	.file	"extr_stm32f4xx_fsmc.c_FSMC_NANDECCCmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	FSMC_NANDECCCmd
	.type	FSMC_NANDECCCmd, @function
FSMC_NANDECCCmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	IS_FSMC_NAND_BANK@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rdi, rbp
	call	IS_FUNCTIONAL_STATE@PLT
	mov	edi, eax
	call	assert_param@PLT
	cmp	QWORD PTR DISABLE[rip], rbp
	je	.L2
	cmp	QWORD PTR FSMC_Bank2_NAND[rip], rbx
	mov	eax, DWORD PTR PCR_ECCEN_SET[rip]
	je	.L8
	mov	rdx, QWORD PTR FSMC_Bank3[rip]
	or	DWORD PTR [rdx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, QWORD PTR FSMC_Bank2[rip]
	or	DWORD PTR [rdx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR FSMC_Bank2_NAND[rip], rbx
	mov	eax, DWORD PTR PCR_ECCEN_RESET[rip]
	je	.L9
	mov	rdx, QWORD PTR FSMC_Bank3[rip]
	and	DWORD PTR [rdx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdx, QWORD PTR FSMC_Bank2[rip]
	and	DWORD PTR [rdx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	FSMC_NANDECCCmd, .-FSMC_NANDECCCmd
	.comm	PCR_ECCEN_SET,4,4
	.comm	PCR_ECCEN_RESET,4,4
	.comm	FSMC_Bank3,8,8
	.comm	FSMC_Bank2_NAND,8,8
	.comm	FSMC_Bank2,8,8
	.comm	DISABLE,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_stm32f4xx_fsmc.c_FSMC_NANDECCCmd.c"
	.text
	.align	2
	.global	FSMC_NANDECCCmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	FSMC_NANDECCCmd, %function
FSMC_NANDECCCmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	IS_FSMC_NAND_BANK
	bl	assert_param
	mov	r0, r4
	bl	IS_FUNCTIONAL_STATE
	bl	assert_param
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L2
	ldr	r2, [r2]
	ldr	r3, .L8+8
	cmp	r2, r5
	ldr	r1, [r3]
	ldreq	r3, .L8+12
	ldrne	r3, .L8+16
	ldr	r2, [r3]
	ldr	r3, [r2]
	orr	r3, r3, r1
	str	r3, [r2]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, [r2]
	ldr	r3, .L8+20
	cmp	r2, r5
	ldr	r1, [r3]
	ldreq	r3, .L8+12
	ldrne	r3, .L8+16
	ldr	r2, [r3]
	ldr	r3, [r2]
	and	r3, r3, r1
	str	r3, [r2]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	DISABLE
	.word	FSMC_Bank2_NAND
	.word	PCR_ECCEN_SET
	.word	FSMC_Bank2
	.word	FSMC_Bank3
	.word	PCR_ECCEN_RESET
	.size	FSMC_NANDECCCmd, .-FSMC_NANDECCCmd
	.comm	PCR_ECCEN_SET,4,4
	.comm	PCR_ECCEN_RESET,4,4
	.comm	FSMC_Bank3,4,4
	.comm	FSMC_Bank2_NAND,4,4
	.comm	FSMC_Bank2,4,4
	.comm	DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
