	.file	"extr_stm32f0xx_can.c_CAN_OperatingModeRequest.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CAN_OperatingModeRequest
	.type	CAN_OperatingModeRequest, @function
CAN_OperatingModeRequest:
.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_CAN_ALL_PERIPH@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rdi, rbp
	call	IS_CAN_OPERATING_MODE@PLT
	mov	edi, eax
	call	assert_param@PLT
	cmp	QWORD PTR CAN_OperatingMode_Initialization[rip], rbp
	je	.L17
	cmp	QWORD PTR CAN_OperatingMode_Normal[rip], rbp
	je	.L18
	cmp	QWORD PTR CAN_OperatingMode_Sleep[rip], rbp
	mov	rax, QWORD PTR CAN_ModeStatus_Failed[rip]
	je	.L19
.L1:
	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
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR CAN_MCR_SLEEP[rip]
	or	rax, QWORD PTR CAN_MCR_INRQ[rip]
	not	rax
	and	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR CAN_MODE_MASK[rip]
	test	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR CAN_ModeStatus_Success[rip]
	cmovne	rax, QWORD PTR CAN_ModeStatus_Failed[rip]
	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
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR CAN_MCR_SLEEP[rip]
	mov	edx, DWORD PTR 8[rbx]
	and	edx, DWORD PTR CAN_MODE_MASK[rip]
	not	rax
	and	rax, QWORD PTR [rbx]
	or	rax, QWORD PTR CAN_MCR_INRQ[rip]
	cmp	DWORD PTR CAN_MSR_INAK[rip], edx
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR CAN_ModeStatus_Failed[rip]
	jne	.L1
.L13:
	mov	rax, QWORD PTR CAN_ModeStatus_Success[rip]
	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
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR CAN_MCR_INRQ[rip]
	mov	edx, DWORD PTR CAN_MODE_MASK[rip]
	and	edx, DWORD PTR 8[rbx]
	not	rax
	and	rax, QWORD PTR [rbx]
	or	rax, QWORD PTR CAN_MCR_SLEEP[rip]
	cmp	DWORD PTR CAN_MSR_SLAK[rip], edx
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR CAN_ModeStatus_Failed[rip]
	je	.L13
	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	CAN_OperatingModeRequest, .-CAN_OperatingModeRequest
	.comm	INAK_TIMEOUT,8,8
	.comm	CAN_OperatingMode_Sleep,8,8
	.comm	CAN_OperatingMode_Normal,8,8
	.comm	CAN_OperatingMode_Initialization,8,8
	.comm	CAN_ModeStatus_Success,8,8
	.comm	CAN_ModeStatus_Failed,8,8
	.comm	CAN_MSR_SLAK,4,4
	.comm	CAN_MSR_INAK,4,4
	.comm	CAN_MODE_MASK,4,4
	.comm	CAN_MCR_SLEEP,8,8
	.comm	CAN_MCR_INRQ,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_can.c_CAN_OperatingModeRequest.c"
	.text
	.align	2
	.global	CAN_OperatingModeRequest
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_OperatingModeRequest, %function
CAN_OperatingModeRequest:
	@ 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_CAN_ALL_PERIPH
	bl	assert_param
	mov	r0, r4
	bl	IS_CAN_OPERATING_MODE
	bl	assert_param
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L18
	ldr	r3, .L21+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L19
	ldr	r3, .L21+8
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L20
.L9:
	ldr	r3, .L21+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L19:
	ldr	r3, .L21+16
	ldr	r2, .L21+20
	ldr	r1, .L21+24
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r3, [r5]
	ldr	r1, [r5, #4]
	orr	r2, r2, ip
	bic	r3, r3, r2
	tst	r0, r1
	str	r3, [r5]
	bne	.L9
.L14:
	ldr	r3, .L21+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, .L21+20
	ldr	r0, .L21+24
	ldr	r2, [r3]
	ldr	ip, .L21+16
	ldr	r1, .L21+32
	ldr	r3, [r5]
	ldr	r0, [r0]
	bic	r3, r3, r2
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r2, [r5, #4]
.L16:
	and	r2, r2, r0
	orr	r3, r3, ip
	cmp	r1, r2
	str	r3, [r5]
	bne	.L9
	b	.L14
.L20:
	ldr	r3, .L21+16
	ldr	r2, .L21+24
	ldr	r0, [r3]
	ldr	ip, .L21+20
	ldr	r1, .L21+36
	ldr	r3, [r5]
	ldr	r2, [r2]
	bic	r3, r3, r0
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r0, [r5, #4]
	b	.L16
.L22:
	.align	2
.L21:
	.word	CAN_OperatingMode_Initialization
	.word	CAN_OperatingMode_Normal
	.word	CAN_OperatingMode_Sleep
	.word	CAN_ModeStatus_Failed
	.word	CAN_MCR_INRQ
	.word	CAN_MCR_SLEEP
	.word	CAN_MODE_MASK
	.word	CAN_ModeStatus_Success
	.word	CAN_MSR_INAK
	.word	CAN_MSR_SLAK
	.size	CAN_OperatingModeRequest, .-CAN_OperatingModeRequest
	.comm	INAK_TIMEOUT,4,4
	.comm	CAN_OperatingMode_Sleep,4,4
	.comm	CAN_OperatingMode_Normal,4,4
	.comm	CAN_OperatingMode_Initialization,4,4
	.comm	CAN_ModeStatus_Success,4,4
	.comm	CAN_ModeStatus_Failed,4,4
	.comm	CAN_MSR_SLAK,4,4
	.comm	CAN_MSR_INAK,4,4
	.comm	CAN_MODE_MASK,4,4
	.comm	CAN_MCR_SLEEP,4,4
	.comm	CAN_MCR_INRQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
