	.file	"29786.c"
	.intel_syntax noprefix
	.text
	.local	m_curfunc
	.comm	m_curfunc,8,8
	.local	m_nextfunc
	.comm	m_nextfunc,8,8
	.local	m_tempfunc
	.comm	m_tempfunc,8,8
	.local	m_bNoWait
	.comm	m_bNoWait,1,1
	.globl	testControl_update
	.type	testControl_update, @function
testControl_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
.L6:
	mov	BYTE PTR -9[rbp], 0
	mov	rax, QWORD PTR m_nextfunc[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR m_nextfunc[rip]
	mov	QWORD PTR m_curfunc[rip], rax
	mov	QWORD PTR m_nextfunc[rip], 0
	mov	BYTE PTR -9[rbp], 1
.L2:
	mov	BYTE PTR m_bNoWait[rip], 0
	mov	rax, QWORD PTR m_curfunc[rip]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR m_curfunc[rip]
	mov	QWORD PTR -8[rbp], rax
	movzx	eax, BYTE PTR -9[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	edi, eax
	call	rdx
.L3:
	movzx	eax, BYTE PTR m_bNoWait[rip]
	xor	eax, 1
	test	al, al
	jne	.L8
	jmp	.L6
.L8:
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	testControl_update, .-testControl_update
	.type	Goto, @function
Goto:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR m_nextfunc[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Goto, .-Goto
	.type	CheckState, @function
CheckState:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR m_curfunc[rip]
	cmp	QWORD PTR -8[rbp], rax
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	CheckState, .-CheckState
	.type	SetNextState, @function
SetNextState:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR m_tempfunc[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	SetNextState, .-SetNextState
	.type	GoNextState, @function
GoNextState:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR m_tempfunc[rip]
	mov	QWORD PTR m_nextfunc[rip], rax
	mov	QWORD PTR m_tempfunc[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	GoNextState, .-GoNextState
	.type	HasNextState, @function
HasNextState:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR m_tempfunc[rip]
	test	rax, rax
	setne	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	HasNextState, .-HasNextState
	.type	NoWait, @function
NoWait:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR m_bNoWait[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	NoWait, .-NoWait
	.section	.rodata
.LC0:
	.string	"S_START"
	.text
	.type	S_START, @function
S_START:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 0
	je	.L18
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L18:
	lea	rdi, S_0001[rip]
	call	Goto
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	S_START, .-S_START
	.section	.rodata
.LC1:
	.string	"S_END"
	.text
	.type	S_END, @function
S_END:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 0
	je	.L21
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	S_END, .-S_END
	.local	m_cnt
	.comm	m_cnt,4,4
	.section	.rodata
.LC2:
	.string	"S_0001"
.LC3:
	.string	"%d\n"
	.text
	.type	S_0001, @function
S_0001:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 0
	je	.L23
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, S_END[rip]
	call	SetNextState
.L23:
	mov	eax, DWORD PTR m_cnt[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR m_cnt[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR m_cnt[rip], edx
	cmp	eax, 9
	jle	.L26
	mov	eax, 0
	call	GoNextState
	jmp	.L22
.L26:
	nop
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	S_0001, .-S_0001
	.globl	testControl_start
	.type	testControl_start, @function
testControl_start:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, S_START[rip]
	call	Goto
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	testControl_start, .-testControl_start
	.globl	testControl_is_end
	.type	testControl_is_end, @function
testControl_is_end:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, S_END[rip]
	call	CheckState
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	testControl_is_end, .-testControl_is_end
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"29786.c"
	.text
	.local	m_curfunc
	.comm	m_curfunc,4,4
	.local	m_nextfunc
	.comm	m_nextfunc,4,4
	.local	m_tempfunc
	.comm	m_tempfunc,4,4
	.local	m_bNoWait
	.comm	m_bNoWait,1,1
	.align	2
	.global	testControl_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	testControl_update, %function
testControl_update:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
.L6:
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, .L9+4
	str	r3, [r2]
	ldr	r3, .L9
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	strb	r3, [fp, #-9]
.L2:
	ldr	r3, .L9+8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	mov	r0, r2
	blx	r3
.L3:
	ldr	r3, .L9+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L8
	b	.L6
.L8:
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	m_nextfunc
	.word	m_curfunc
	.word	m_bNoWait
	.size	testControl_update, .-testControl_update
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Goto, %function
Goto:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	m_nextfunc
	.size	Goto, .-Goto
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckState, %function
CheckState:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	m_curfunc
	.size	CheckState, .-CheckState
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetNextState, %function
SetNextState:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L20:
	.align	2
.L19:
	.word	m_tempfunc
	.size	SetNextState, .-SetNextState
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GoNextState, %function
GoNextState:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+4
	str	r3, [r2]
	ldr	r3, .L22
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	m_tempfunc
	.word	m_nextfunc
	.size	GoNextState, .-GoNextState
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HasNextState, %function
HasNextState:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L27:
	.align	2
.L26:
	.word	m_tempfunc
	.size	HasNextState, .-HasNextState
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	NoWait, %function
NoWait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L29
	mov	r2, #1
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L30:
	.align	2
.L29:
	.word	m_bNoWait
	.size	NoWait, .-NoWait
	.section	.rodata
	.align	2
.LC0:
	.ascii	"S_START\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	S_START, %function
S_START:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	ldr	r0, .L33
	bl	puts
.L32:
	ldr	r0, .L33+4
	bl	Goto
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	S_0001
	.size	S_START, .-S_START
	.section	.rodata
	.align	2
.LC1:
	.ascii	"S_END\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	S_END, %function
S_END:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	ldr	r0, .L38
	bl	puts
.L37:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC1
	.size	S_END, .-S_END
	.local	m_cnt
	.comm	m_cnt,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"S_0001\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	S_0001, %function
S_0001:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	ldr	r0, .L45
	bl	puts
	ldr	r0, .L45+4
	bl	SetNextState
.L41:
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+12
	bl	printf
	ldr	r3, .L45+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L45+8
	str	r2, [r1]
	cmp	r3, #9
	ble	.L44
	bl	GoNextState
	b	.L40
.L44:
	nop
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC2
	.word	S_END
	.word	m_cnt
	.word	.LC3
	.size	S_0001, .-S_0001
	.align	2
	.global	testControl_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	testControl_start, %function
testControl_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L48
	bl	Goto
	nop
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	S_START
	.size	testControl_start, .-testControl_start
	.align	2
	.global	testControl_is_end
	.syntax unified
	.arm
	.fpu softvfp
	.type	testControl_is_end, %function
testControl_is_end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L52
	bl	CheckState
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	S_END
	.size	testControl_is_end, .-testControl_is_end
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
