	.file	"extr_stm32f4xx_can.c_CAN_Transmit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CAN_Transmit
	.type	CAN_Transmit, @function
CAN_Transmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	IS_CAN_ALL_PERIPH@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	edi, DWORD PTR [rbx]
	call	IS_CAN_IDTYPE@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	IS_CAN_RTR@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	IS_CAN_DLC@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR CAN_TSR_TME0[rip]
	mov	ecx, eax
	and	ecx, edx
	cmp	edx, ecx
	je	.L2
	mov	edx, DWORD PTR CAN_TSR_TME1[rip]
	mov	ecx, eax
	mov	r12, QWORD PTR CAN_TxStatus_NoMailBox[rip]
	and	ecx, edx
	cmp	edx, ecx
	je	.L7
	mov	edx, DWORD PTR CAN_TSR_TME2[rip]
	and	eax, edx
	cmp	edx, eax
	je	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, r12
	mov	r12d, 1
.L3:
	cmp	r12, rax
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	r13, r12
	mov	edx, DWORD PTR TMIDxR_TXRQ[rip]
	sal	r13, 4
	add	rax, r13
	and	DWORD PTR [rax], edx
	mov	eax, DWORD PTR CAN_Id_Standard[rip]
	cmp	DWORD PTR [rbx], eax
	je	.L13
	mov	edi, DWORD PTR 20[rbx]
	call	IS_CAN_EXTID@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR [rbx]
	or	edx, DWORD PTR 4[rbx]
	add	rax, r13
	lea	ecx, 0[0+rsi*8]
	or	edx, ecx
	or	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], edx
.L6:
	mov	rsi, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rax]
	or	edx, DWORD PTR TMIDxR_TXRQ[rip]
	and	esi, 15
	and	ecx, -16
	mov	QWORD PTR 8[rbx], rsi
	or	ecx, esi
	mov	rsi, QWORD PTR 24[rbx]
	mov	DWORD PTR 4[rax], ecx
	mov	edi, DWORD PTR 16[rsi]
	mov	ecx, DWORD PTR 24[rsi]
	sal	edi, 16
	sal	ecx, 24
	or	ecx, edi
	mov	edi, DWORD PTR 8[rsi]
	or	ecx, DWORD PTR [rsi]
	sal	edi, 8
	or	ecx, edi
	mov	edi, DWORD PTR 48[rsi]
	mov	DWORD PTR 8[rax], ecx
	mov	ecx, DWORD PTR 56[rsi]
	sal	edi, 16
	sal	ecx, 24
	or	ecx, edi
	or	ecx, DWORD PTR 32[rsi]
	mov	rsi, QWORD PTR 40[rsi]
	mov	DWORD PTR [rax], edx
	sal	esi, 8
	or	ecx, esi
	mov	DWORD PTR 12[rax], ecx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR CAN_TxStatus_NoMailBox[rip]
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 16[rbx]
	call	IS_CAN_STDID@PLT
	mov	edi, eax
	call	assert_param@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 16[rbx]
	add	rax, r13
	sal	edx, 21
	or	edx, DWORD PTR 4[rbx]
	or	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, r12
	mov	r12d, 2
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	CAN_Transmit, .-CAN_Transmit
	.comm	TMIDxR_TXRQ,4,4
	.comm	CAN_TxStatus_NoMailBox,8,8
	.comm	CAN_TSR_TME2,4,4
	.comm	CAN_TSR_TME1,4,4
	.comm	CAN_TSR_TME0,4,4
	.comm	CAN_Id_Standard,4,4
	.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_Transmit.c"
	.text
	.align	2
	.global	CAN_Transmit
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_Transmit, %function
CAN_Transmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r7, r0
	bl	IS_CAN_ALL_PERIPH
	bl	assert_param
	ldr	r0, [r4]
	bl	IS_CAN_IDTYPE
	bl	assert_param
	ldr	r0, [r4, #4]
	bl	IS_CAN_RTR
	bl	assert_param
	ldr	r0, [r4, #8]
	bl	IS_CAN_DLC
	bl	assert_param
	ldr	r2, .L14
	ldr	r3, [r7]
	ldr	r2, [r2]
	bics	r2, r2, r3
	beq	.L2
	ldr	r2, .L14+4
	ldr	r1, .L14+8
	ldr	r2, [r2]
	ldr	r5, [r1]
	bics	r2, r2, r3
	beq	.L7
	ldr	r2, .L14+12
	ldr	r2, [r2]
	bics	r3, r2, r3
	beq	.L12
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r3, r5
	mov	r5, #1
.L3:
	cmp	r5, r3
	beq	.L1
	ldr	r2, [r7, #4]
	ldr	r6, .L14+16
	ldr	r3, [r2, r5, lsl #4]
	ldr	r0, [r6]
	ldr	r1, .L14+20
	and	r3, r3, r0
	ldr	r1, [r1]
	ldr	r0, [r4]
	lsl	r8, r5, #4
	cmp	r0, r1
	str	r3, [r2, r5, lsl #4]
	beq	.L13
	ldr	r0, [r4, #16]
	bl	IS_CAN_EXTID
	bl	assert_param
	ldr	r3, [r7, #4]
	ldr	r2, [r4, #4]
	ldr	lr, [r4]
	ldr	r1, [r4, #16]
	orr	lr, lr, r2
	ldr	r2, [r3, r5, lsl #4]
	orr	lr, lr, r1, lsl #3
	orr	lr, lr, r2
	add	r1, r3, r8
	str	lr, [r3, r5, lsl #4]
.L6:
	ldr	r0, [r4, #8]
	ldr	ip, [r4, #20]
	and	r0, r0, #15
	str	r0, [r4, #8]
	ldr	r2, [ip, #8]
	ldr	r3, [ip, #24]
	ldr	r4, [r6]
	ldr	r7, [ip, #12]
	ldr	r6, [ip, #28]
	orr	lr, r4, lr
	lsl	r2, r2, #16
	ldr	r4, [ip]
	lsl	r3, r3, #16
	orr	r2, r2, r7, lsl #24
	orr	r3, r3, r6, lsl #24
	ldr	r6, [ip, #16]
	orr	r2, r2, r4
	ldr	r4, [r1, #4]
	ldr	r7, [ip, #4]
	orr	r3, r3, r6
	ldr	r6, [ip, #20]
	bic	ip, r4, #15
	orr	r0, ip, r0
	orr	r2, r2, r7, lsl #8
	orr	r3, r3, r6, lsl #8
	stmib	r1, {r0, r2, r3}
	str	lr, [r1]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L14+8
	mov	r5, #0
	ldr	r3, [r3]
	b	.L3
.L13:
	ldr	r0, [r4, #12]
	bl	IS_CAN_STDID
	bl	assert_param
	ldr	r3, [r7, #4]
	ldr	r1, [r4, #12]
	ldr	lr, [r4, #4]
	ldr	r2, [r3, r5, lsl #4]
	orr	lr, lr, r1, lsl #21
	orr	lr, lr, r2
	add	r1, r3, r8
	str	lr, [r3, r5, lsl #4]
	b	.L6
.L12:
	mov	r3, r5
	mov	r5, #2
	b	.L3
.L15:
	.align	2
.L14:
	.word	CAN_TSR_TME0
	.word	CAN_TSR_TME1
	.word	CAN_TxStatus_NoMailBox
	.word	CAN_TSR_TME2
	.word	TMIDxR_TXRQ
	.word	CAN_Id_Standard
	.size	CAN_Transmit, .-CAN_Transmit
	.comm	TMIDxR_TXRQ,4,4
	.comm	CAN_TxStatus_NoMailBox,4,4
	.comm	CAN_TSR_TME2,4,4
	.comm	CAN_TSR_TME1,4,4
	.comm	CAN_TSR_TME0,4,4
	.comm	CAN_Id_Standard,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
