	.file	"extr_ctcm_fsms.c_dev_action_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.type	dev_action_start, @function
dev_action_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, DWORD PTR SETUP[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR [rdx]
	lea	rdx, .LC0[rip]
	call	CTCMY_DBF_DEV_NAME@PLT
	lea	rdi, 16[r12]
	call	fsm_deltimer@PLT
	mov	esi, DWORD PTR DEV_STATE_STARTWAIT_RXTX[rip]
	mov	rdi, rbp
	call	fsm_newstate@PLT
	mov	rdi, r12
	call	IS_MPC@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR [rax], 0
.L2:
	mov	ebx, DWORD PTR CTCM_READ[rip]
	cmp	ebx, DWORD PTR CTCM_WRITE[rip]
	jg	.L1
	movsx	rbp, ebx
	sal	rbp, 3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR CTC_EVENT_START[rip]
	add	ebx, 1
	mov	rax, QWORD PTR [rax+rbp]
	add	rbp, 8
	mov	edi, DWORD PTR [rax]
	mov	rdx, rax
	call	fsm_event@PLT
	cmp	DWORD PTR CTCM_WRITE[rip], ebx
	jge	.L4
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dev_action_start, .-dev_action_start
	.comm	SETUP,4,4
	.comm	DEV_STATE_STARTWAIT_RXTX,4,4
	.comm	CTC_EVENT_START,4,4
	.comm	CTCM_WRITE,4,4
	.comm	CTCM_READ,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_ctcm_fsms.c_dev_action_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dev_action_start, %function
dev_action_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L11
	ldr	r5, [r2]
	mov	r1, r2
	ldr	r0, [r3]
	ldr	r2, .L11+4
	bl	CTCMY_DBF_DEV_NAME
	add	r0, r5, #8
	bl	fsm_deltimer
	ldr	r3, .L11+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	fsm_newstate
	mov	r0, r5
	bl	IS_MPC
	cmp	r0, #0
	movne	r2, #0
	ldrne	r3, [r5, #4]
	ldr	r6, .L11+12
	strne	r2, [r3]
	ldr	r3, .L11+16
	ldr	r4, [r3]
	ldr	r3, [r6]
	cmp	r4, r3
	popgt	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L11+20
.L4:
	ldr	r3, [r5]
	ldr	r1, [r7]
	ldr	r2, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r0, [r2]
	bl	fsm_event
	ldr	r3, [r6]
	cmp	r3, r4
	bge	.L4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	SETUP
	.word	.LC0
	.word	DEV_STATE_STARTWAIT_RXTX
	.word	CTCM_WRITE
	.word	CTCM_READ
	.word	CTC_EVENT_START
	.size	dev_action_start, .-dev_action_start
	.comm	SETUP,4,4
	.comm	DEV_STATE_STARTWAIT_RXTX,4,4
	.comm	CTC_EVENT_START,4,4
	.comm	CTCM_WRITE,4,4
	.comm	CTCM_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
