	.file	"extr_can_network_example_master_main.c_can_control_task.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Driver started"
.LC1:
	.string	"Driver stopped"
	.text
	.p2align 4
	.type	can_control_task, @function
can_control_task:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR ctrl_task_sem[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	lea	rbp, 4[rsp]
	call	xSemaphoreTake@PLT
	mov	eax, DWORD PTR NO_OF_ITERS[rip]
	test	eax, eax
	jle	.L2
	xor	r13d, r13d
	mov	r12, rsp
	lea	rbp, 4[rsp]
	lea	rbx, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	add	r13d, 1
	call	can_start@PLT
	mov	edi, eax
	call	ESP_ERROR_CHECK@PLT
	mov	edi, DWORD PTR EXAMPLE_TAG[rip]
	mov	rsi, rbx
	call	ESP_LOGI@PLT
	mov	eax, DWORD PTR TX_SEND_PINGS[rip]
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR tx_task_queue[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR RX_RECEIVE_PING_RESP[rip]
	mov	DWORD PTR 4[rsp], eax
	call	xQueueSend@PLT
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR rx_task_queue[rip]
	mov	rsi, rbp
	call	xQueueSend@PLT
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR ctrl_task_sem[rip]
	call	xSemaphoreTake@PLT
	mov	eax, DWORD PTR TX_SEND_START_CMD[rip]
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR tx_task_queue[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR RX_RECEIVE_DATA[rip]
	mov	DWORD PTR 4[rsp], eax
	call	xQueueSend@PLT
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR rx_task_queue[rip]
	mov	rsi, rbp
	call	xQueueSend@PLT
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR ctrl_task_sem[rip]
	call	xSemaphoreTake@PLT
	mov	eax, DWORD PTR TX_SEND_STOP_CMD[rip]
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR tx_task_queue[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR RX_RECEIVE_STOP_RESP[rip]
	mov	DWORD PTR 4[rsp], eax
	call	xQueueSend@PLT
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR rx_task_queue[rip]
	mov	rsi, rbp
	call	xQueueSend@PLT
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR ctrl_task_sem[rip]
	call	xSemaphoreTake@PLT
	xor	eax, eax
	call	can_stop@PLT
	mov	edi, eax
	call	ESP_ERROR_CHECK@PLT
	mov	edi, DWORD PTR EXAMPLE_TAG[rip]
	lea	rsi, .LC1[rip]
	call	ESP_LOGI@PLT
	mov	edi, DWORD PTR ITER_DELAY_MS[rip]
	call	pdMS_TO_TICKS@PLT
	mov	edi, eax
	call	vTaskDelay@PLT
	cmp	DWORD PTR NO_OF_ITERS[rip], r13d
	jg	.L3
.L2:
	mov	eax, DWORD PTR TX_TASK_EXIT[rip]
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	rsi, r12
	mov	edi, DWORD PTR tx_task_queue[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR RX_TASK_EXIT[rip]
	mov	DWORD PTR 4[rsp], eax
	call	xQueueSend@PLT
	mov	edx, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR rx_task_queue[rip]
	mov	rsi, rbp
	call	xQueueSend@PLT
	mov	edi, DWORD PTR done_sem[rip]
	call	xSemaphoreGive@PLT
	xor	edi, edi
	call	vTaskDelete@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	can_control_task, .-can_control_task
	.comm	tx_task_queue,4,4
	.comm	rx_task_queue,4,4
	.comm	portMAX_DELAY,4,4
	.comm	done_sem,4,4
	.comm	ctrl_task_sem,4,4
	.comm	TX_TASK_EXIT,4,4
	.comm	TX_SEND_STOP_CMD,4,4
	.comm	TX_SEND_START_CMD,4,4
	.comm	TX_SEND_PINGS,4,4
	.comm	RX_TASK_EXIT,4,4
	.comm	RX_RECEIVE_STOP_RESP,4,4
	.comm	RX_RECEIVE_PING_RESP,4,4
	.comm	RX_RECEIVE_DATA,4,4
	.comm	NO_OF_ITERS,4,4
	.comm	ITER_DELAY_MS,4,4
	.comm	EXAMPLE_TAG,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_can_network_example_master_main.c_can_control_task.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Driver started\000"
	.align	2
.LC1:
	.ascii	"Driver stopped\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_control_task, %function
can_control_task:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L12
	ldr	r5, .L12+4
	ldr	r3, .L12+8
	ldr	fp, .L12+12
	sub	sp, sp, #20
	ldr	r1, [r4]
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	xSemaphoreTake
	ldr	r2, [fp]
	cmp	r2, #0
	ble	.L10
	mov	r10, #0
	ldr	r8, .L12+16
	ldr	r6, .L12+20
	add	r9, sp, #4
	add	r7, sp, #8
.L3:
	bl	can_start
	bl	ESP_ERROR_CHECK
	ldr	r3, .L12+24
	ldr	r1, .L12+28
	ldr	r0, [r3]
	bl	ESP_LOGI
	ldr	r2, .L12+32
	mov	r1, r9
	ldr	r0, [r2]
	ldr	r2, .L12+36
	str	r0, [sp, #4]
	ldr	r3, [r2]
	ldr	r0, [r8]
	ldr	r2, [r4]
	str	r3, [sp, #8]
	bl	xQueueSend
	ldr	r2, [r4]
	mov	r1, r7
	ldr	r0, [r6]
	bl	xQueueSend
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	xSemaphoreTake
	ldr	r2, .L12+40
	mov	r1, r9
	ldr	r0, [r2]
	ldr	r2, .L12+44
	str	r0, [sp, #4]
	ldr	r3, [r2]
	ldr	r0, [r8]
	ldr	r2, [r4]
	str	r3, [sp, #8]
	bl	xQueueSend
	ldr	r2, [r4]
	mov	r1, r7
	ldr	r0, [r6]
	bl	xQueueSend
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	xSemaphoreTake
	ldr	r2, .L12+48
	mov	r1, r9
	ldr	r0, [r2]
	ldr	r2, .L12+52
	str	r0, [sp, #4]
	ldr	r3, [r2]
	ldr	r0, [r8]
	ldr	r2, [r4]
	str	r3, [sp, #8]
	bl	xQueueSend
	ldr	r2, [r4]
	mov	r1, r7
	ldr	r0, [r6]
	bl	xQueueSend
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	xSemaphoreTake
	bl	can_stop
	bl	ESP_ERROR_CHECK
	ldr	r3, .L12+24
	ldr	r1, .L12+56
	ldr	r0, [r3]
	bl	ESP_LOGI
	ldr	r3, .L12+60
	add	r10, r10, #1
	ldr	r0, [r3]
	bl	pdMS_TO_TICKS
	bl	vTaskDelay
	ldr	r3, [fp]
	cmp	r3, r10
	bgt	.L3
.L2:
	ldr	r2, .L12+64
	ldr	r3, .L12+68
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r9
	str	r2, [sp, #4]
	ldr	r0, [r8]
	ldr	r2, [r4]
	str	r3, [sp, #8]
	bl	xQueueSend
	ldr	r2, [r4]
	mov	r1, r7
	ldr	r0, [r6]
	bl	xQueueSend
	ldr	r3, .L12+72
	ldr	r0, [r3]
	bl	xSemaphoreGive
	mov	r0, #0
	bl	vTaskDelete
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r8, .L12+16
	ldr	r6, .L12+20
	add	r9, sp, #4
	add	r7, sp, #8
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	portMAX_DELAY
	.word	ctrl_task_sem
	.word	.LC2
	.word	NO_OF_ITERS
	.word	tx_task_queue
	.word	rx_task_queue
	.word	EXAMPLE_TAG
	.word	.LC0
	.word	TX_SEND_PINGS
	.word	RX_RECEIVE_PING_RESP
	.word	TX_SEND_START_CMD
	.word	RX_RECEIVE_DATA
	.word	TX_SEND_STOP_CMD
	.word	RX_RECEIVE_STOP_RESP
	.word	.LC1
	.word	ITER_DELAY_MS
	.word	TX_TASK_EXIT
	.word	RX_TASK_EXIT
	.word	done_sem
	.size	can_control_task, .-can_control_task
	.comm	tx_task_queue,4,4
	.comm	rx_task_queue,4,4
	.comm	portMAX_DELAY,4,4
	.comm	done_sem,4,4
	.comm	ctrl_task_sem,4,4
	.comm	TX_TASK_EXIT,4,4
	.comm	TX_SEND_STOP_CMD,4,4
	.comm	TX_SEND_START_CMD,4,4
	.comm	TX_SEND_PINGS,4,4
	.comm	RX_TASK_EXIT,4,4
	.comm	RX_RECEIVE_STOP_RESP,4,4
	.comm	RX_RECEIVE_PING_RESP,4,4
	.comm	RX_RECEIVE_DATA,4,4
	.comm	NO_OF_ITERS,4,4
	.comm	ITER_DELAY_MS,4,4
	.comm	EXAMPLE_TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
