	.file	"extr_can_self_test_example_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	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR ctrl_sem[rip]
	call	xSemaphoreTake@PLT
	mov	eax, DWORD PTR NO_OF_ITERS[rip]
	test	eax, eax
	jle	.L2
	xor	ebp, ebp
	lea	rbx, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	add	ebp, 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	edi, DWORD PTR rx_sem[rip]
	call	xSemaphoreGive@PLT
	mov	edi, DWORD PTR tx_sem[rip]
	call	xSemaphoreGive@PLT
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	edi, DWORD PTR ctrl_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, 100
	call	pdMS_TO_TICKS@PLT
	mov	edi, eax
	call	vTaskDelay@PLT
	cmp	DWORD PTR NO_OF_ITERS[rip], ebp
	jg	.L3
.L2:
	mov	edi, DWORD PTR done_sem[rip]
	call	xSemaphoreGive@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	vTaskDelete@PLT
	.cfi_endproc
.LFE0:
	.size	can_control_task, .-can_control_task
	.comm	tx_sem,4,4
	.comm	rx_sem,4,4
	.comm	portMAX_DELAY,4,4
	.comm	done_sem,4,4
	.comm	ctrl_sem,4,4
	.comm	NO_OF_ITERS,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_self_test_example_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"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_control_task, %function
can_control_task:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L7
	ldr	r6, .L7+4
	ldr	r10, .L7+8
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	xSemaphoreTake
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r5, .L7+12
	ldr	fp, .L7+16
	ldr	r9, .L7+20
	ldr	r8, .L7+24
.L3:
	bl	can_start
	bl	ESP_ERROR_CHECK
	mov	r1, r9
	ldr	r0, [r5]
	bl	ESP_LOGI
	ldr	r0, [fp]
	bl	xSemaphoreGive
	ldr	r3, .L7+28
	add	r4, r4, #1
	ldr	r0, [r3]
	bl	xSemaphoreGive
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	xSemaphoreTake
	bl	can_stop
	bl	ESP_ERROR_CHECK
	mov	r1, r8
	ldr	r0, [r5]
	bl	ESP_LOGI
	mov	r0, #100
	bl	pdMS_TO_TICKS
	bl	vTaskDelay
	ldr	r3, [r10]
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r3, .L7+32
	ldr	r0, [r3]
	bl	xSemaphoreGive
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r0, #0
	b	vTaskDelete
.L8:
	.align	2
.L7:
	.word	portMAX_DELAY
	.word	ctrl_sem
	.word	NO_OF_ITERS
	.word	EXAMPLE_TAG
	.word	rx_sem
	.word	.LC0
	.word	.LC1
	.word	tx_sem
	.word	done_sem
	.size	can_control_task, .-can_control_task
	.comm	tx_sem,4,4
	.comm	rx_sem,4,4
	.comm	portMAX_DELAY,4,4
	.comm	done_sem,4,4
	.comm	ctrl_sem,4,4
	.comm	NO_OF_ITERS,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
