	.file	"extr_stm32f4xx_can.c_CAN_Receive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CAN_Receive
	.type	CAN_Receive, @function
CAN_Receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	IS_CAN_ALL_PERIPH@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rdi, r12
	call	IS_CAN_FIFO@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rax, r12
	sal	rax, 5
	add	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rcx, rdx
	and	ecx, 4
	cmp	rcx, QWORD PTR CAN_Id_Standard[rip]
	mov	QWORD PTR [rbx], rcx
	mov	ecx, edx
	je	.L8
	shr	ecx, 3
	mov	DWORD PTR 12[rbx], ecx
.L3:
	and	edx, 2
	mov	QWORD PTR 16[rbx], rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rcx, rdx
	movzx	edx, dh
	and	ecx, 15
	mov	QWORD PTR 32[rbx], rdx
	mov	rdx, QWORD PTR 40[rbx]
	mov	QWORD PTR 24[rbx], rcx
	movzx	ecx, BYTE PTR 16[rax]
	mov	QWORD PTR [rdx], rcx
	movzx	ecx, BYTE PTR 17[rax]
	cmp	QWORD PTR CAN_FIFO0[rip], r12
	mov	QWORD PTR 8[rdx], rcx
	movzx	ecx, BYTE PTR 18[rax]
	mov	QWORD PTR 16[rdx], rcx
	movzx	ecx, BYTE PTR 19[rax]
	mov	QWORD PTR 24[rdx], rcx
	movzx	ecx, BYTE PTR 24[rax]
	mov	QWORD PTR 32[rdx], rcx
	movzx	ecx, BYTE PTR 25[rax]
	mov	QWORD PTR 40[rdx], rcx
	movzx	ecx, BYTE PTR 26[rax]
	mov	QWORD PTR 48[rdx], rcx
	movzx	eax, BYTE PTR 27[rax]
	mov	QWORD PTR 56[rdx], rax
	je	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR CAN_RF1R_RFOM1[rip]
	or	DWORD PTR 0[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	shr	ecx, 21
	mov	DWORD PTR 8[rbx], ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR CAN_RF0R_RFOM0[rip]
	or	DWORD PTR 4[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	CAN_Receive, .-CAN_Receive
	.comm	CAN_RF1R_RFOM1,4,4
	.comm	CAN_RF0R_RFOM0,4,4
	.comm	CAN_Id_Standard,8,8
	.comm	CAN_FIFO0,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_can.c_CAN_Receive.c"
	.text
	.align	2
	.global	CAN_Receive
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_Receive, %function
CAN_Receive:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r0
	mov	r4, r2
	bl	IS_CAN_ALL_PERIPH
	bl	assert_param
	mov	r0, r5
	bl	IS_CAN_FIFO
	bl	assert_param
	ldr	r3, [r6, #8]
	ldr	r1, .L8
	ldr	r2, [r3, r5, lsl #4]
	ldr	r0, [r1]
	and	r1, r2, #4
	cmp	r1, r0
	str	r1, [r4]
	add	r3, r3, r5, lsl #4
	lsreq	r1, r2, #21
	lsrne	r1, r2, #3
	streq	r1, [r4, #4]
	strne	r1, [r4, #8]
	ldr	r1, [r3, #4]
	and	r2, r2, #2
	str	r2, [r4, #12]
	lsr	r2, r1, #8
	and	r2, r2, #255
	str	r2, [r4, #20]
	ldr	ip, [r4, #24]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	and	r1, r1, #15
	str	r1, [r4, #16]
	str	r2, [ip]
	ldrb	r2, [r3, #9]	@ zero_extendqisi2
	ldr	r1, .L8+4
	str	r2, [ip, #4]
	ldrb	r2, [r3, #10]	@ zero_extendqisi2
	ldr	r1, [r1]
	str	r2, [ip, #8]
	ldrb	r2, [r3, #11]	@ zero_extendqisi2
	cmp	r1, r5
	str	r2, [ip, #12]
	ldrb	r2, [r3, #12]	@ zero_extendqisi2
	str	r2, [ip, #16]
	ldrb	r2, [r3, #13]	@ zero_extendqisi2
	str	r2, [ip, #20]
	ldrb	r2, [r3, #14]	@ zero_extendqisi2
	str	r2, [ip, #24]
	ldrb	r3, [r3, #15]	@ zero_extendqisi2
	ldreq	r2, .L8+8
	str	r3, [ip, #28]
	ldreq	r2, [r2]
	ldreq	r3, [r6, #4]
	ldrne	r2, .L8+12
	orreq	r3, r3, r2
	ldrne	r3, [r6]
	streq	r3, [r6, #4]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r6]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	CAN_Id_Standard
	.word	CAN_FIFO0
	.word	CAN_RF0R_RFOM0
	.word	CAN_RF1R_RFOM1
	.size	CAN_Receive, .-CAN_Receive
	.comm	CAN_RF1R_RFOM1,4,4
	.comm	CAN_RF0R_RFOM0,4,4
	.comm	CAN_Id_Standard,4,4
	.comm	CAN_FIFO0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
