	.file	"909072.c"
	.intel_syntax noprefix
	.text
	.globl	rand_b
	.type	rand_b, @function
rand_b:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rand_b, .-rand_b
	.globl	rand_z
	.type	rand_z, @function
rand_z:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 8
	.cfi_offset 3, -24
	call	rand@PLT
	mov	ebx, eax
	call	rand@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rand_z, .-rand_z
	.section	.rodata
.LC0:
	.string	"deadlock"
	.text
	.globl	deadlock
	.type	deadlock, @function
deadlock:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L6:
	jmp	.L6
	.cfi_endproc
.LFE8:
	.size	deadlock, .-deadlock
	.section	.rodata
.LC1:
	.string	"checking error"
	.text
	.globl	checking_error
	.type	checking_error, @function
checking_error:
.LFB9:
	.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 stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	checking_error, .-checking_error
	.globl	ts_singlestate
	.type	ts_singlestate, @function
ts_singlestate:
.LFB10:
	.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	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], -100
	cmp	DWORD PTR -8[rbp], 0
	js	.L9
	cmp	DWORD PTR -4[rbp], -100
	jl	.L9
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L11
.L9:
	call	checking_error
	jmp	.L11
.L26:
	call	rand_b
	test	eax, eax
	je	.L12
	cmp	DWORD PTR -12[rbp], 1
	jne	.L13
	cmp	DWORD PTR -8[rbp], 100
	jle	.L14
.L13:
	mov	eax, 0
	call	deadlock
.L14:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L15
	cmp	DWORD PTR -4[rbp], -100
	jl	.L15
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L11
.L15:
	call	checking_error
	jmp	.L11
.L12:
	call	rand_b
	test	eax, eax
	je	.L16
	cmp	DWORD PTR -12[rbp], 2
	jne	.L17
	cmp	DWORD PTR -4[rbp], 19
	jle	.L18
.L17:
	mov	eax, 0
	call	deadlock
.L18:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L19
	cmp	DWORD PTR -4[rbp], -100
	jl	.L19
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L11
.L19:
	call	checking_error
	jmp	.L11
.L16:
	call	rand_b
	test	eax, eax
	je	.L20
	cmp	DWORD PTR -12[rbp], 2
	je	.L21
	mov	eax, 0
	call	deadlock
.L21:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L22
	cmp	DWORD PTR -4[rbp], -100
	jl	.L22
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L11
.L22:
	call	checking_error
	jmp	.L11
.L20:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L23
	cmp	DWORD PTR -8[rbp], 100
	jg	.L24
.L23:
	mov	eax, 0
	call	deadlock
.L24:
	mov	DWORD PTR -12[rbp], 3
	cmp	DWORD PTR -8[rbp], 0
	js	.L25
	cmp	DWORD PTR -4[rbp], -100
	jl	.L25
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L11
.L25:
	call	checking_error
.L11:
	call	rand_b
	test	eax, eax
	jne	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ts_singlestate, .-ts_singlestate
	.globl	ts_restructured
	.type	ts_restructured, @function
ts_restructured:
.LFB11:
	.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	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], -100
	cmp	DWORD PTR -8[rbp], 0
	js	.L28
	cmp	DWORD PTR -4[rbp], -100
	jl	.L28
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L29
.L28:
	call	checking_error
.L29:
	call	rand_b
	test	eax, eax
	je	.L30
	jmp	.L31
.L43:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L32
	cmp	DWORD PTR -8[rbp], 98
	jle	.L33
.L32:
	mov	eax, 0
	call	deadlock
.L33:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L34
	cmp	DWORD PTR -4[rbp], -100
	jl	.L34
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L36
.L34:
	call	checking_error
	jmp	.L36
.L40:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L37
	cmp	DWORD PTR -4[rbp], 19
	jg	.L37
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	eax, 19
	jle	.L38
.L37:
	mov	eax, 0
	call	deadlock
.L38:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L39
	cmp	DWORD PTR -4[rbp], -100
	jl	.L39
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L36
.L39:
	call	checking_error
.L36:
	call	rand_b
	test	eax, eax
	jne	.L40
	cmp	DWORD PTR -12[rbp], 2
	je	.L41
	mov	eax, 0
	call	deadlock
.L41:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L42
	cmp	DWORD PTR -4[rbp], -100
	jl	.L42
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L31
.L42:
	call	checking_error
.L31:
	call	rand_b
	test	eax, eax
	jne	.L43
	cmp	DWORD PTR -12[rbp], 1
	jne	.L44
	cmp	DWORD PTR -8[rbp], 100
	je	.L45
.L44:
	mov	eax, 0
	call	deadlock
.L45:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L46
	cmp	DWORD PTR -4[rbp], -100
	jl	.L46
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L48
.L46:
	call	checking_error
	jmp	.L48
.L52:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L49
	cmp	DWORD PTR -4[rbp], 19
	jg	.L49
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	eax, 19
	jle	.L50
.L49:
	mov	eax, 0
	call	deadlock
.L50:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L51
	cmp	DWORD PTR -4[rbp], -100
	jl	.L51
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L48
.L51:
	call	checking_error
.L48:
	call	rand_b
	test	eax, eax
	jne	.L52
	cmp	DWORD PTR -12[rbp], 2
	je	.L53
	mov	eax, 0
	call	deadlock
.L53:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L54
	cmp	DWORD PTR -4[rbp], -100
	jl	.L54
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L55
.L54:
	call	checking_error
.L55:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L56
	cmp	DWORD PTR -8[rbp], 100
	jg	.L57
.L56:
	mov	eax, 0
	call	deadlock
.L57:
	mov	DWORD PTR -12[rbp], 3
	cmp	DWORD PTR -8[rbp], 0
	js	.L58
	cmp	DWORD PTR -4[rbp], -100
	jl	.L58
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L114
.L58:
	call	checking_error
	jmp	.L114
.L30:
	call	rand_b
	test	eax, eax
	je	.L60
	cmp	DWORD PTR -12[rbp], 1
	jne	.L61
	cmp	DWORD PTR -8[rbp], 98
	jle	.L62
.L61:
	mov	eax, 0
	call	deadlock
.L62:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L63
	cmp	DWORD PTR -4[rbp], -100
	jl	.L63
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L65
.L63:
	call	checking_error
	jmp	.L65
.L76:
	call	rand_b
	test	eax, eax
	je	.L66
	cmp	DWORD PTR -12[rbp], 2
	jne	.L67
	cmp	DWORD PTR -4[rbp], 19
	jg	.L67
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	eax, 19
	jle	.L68
.L67:
	mov	eax, 0
	call	deadlock
.L68:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L69
	cmp	DWORD PTR -4[rbp], -100
	jl	.L69
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L65
.L69:
	call	checking_error
	jmp	.L65
.L66:
	cmp	DWORD PTR -12[rbp], 2
	je	.L70
	mov	eax, 0
	call	deadlock
.L70:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L71
	cmp	DWORD PTR -4[rbp], -100
	jl	.L71
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L72
.L71:
	call	checking_error
.L72:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L73
	cmp	DWORD PTR -8[rbp], 98
	jle	.L74
.L73:
	mov	eax, 0
	call	deadlock
.L74:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L75
	cmp	DWORD PTR -4[rbp], -100
	jl	.L75
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L65
.L75:
	call	checking_error
.L65:
	call	rand_b
	test	eax, eax
	jne	.L76
	cmp	DWORD PTR -12[rbp], 2
	jne	.L77
	cmp	DWORD PTR -4[rbp], 19
	jg	.L77
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	eax, 19
	jg	.L78
.L77:
	mov	eax, 0
	call	deadlock
.L78:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L79
	cmp	DWORD PTR -4[rbp], -100
	jl	.L79
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L81
.L79:
	call	checking_error
	jmp	.L81
.L88:
	cmp	DWORD PTR -12[rbp], 2
	je	.L82
	mov	eax, 0
	call	deadlock
.L82:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L83
	cmp	DWORD PTR -4[rbp], -100
	jl	.L83
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L84
.L83:
	call	checking_error
.L84:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L85
	cmp	DWORD PTR -8[rbp], 98
	jle	.L86
.L85:
	mov	eax, 0
	call	deadlock
.L86:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L87
	cmp	DWORD PTR -4[rbp], -100
	jl	.L87
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L81
.L87:
	call	checking_error
.L81:
	call	rand_b
	test	eax, eax
	jne	.L88
	cmp	DWORD PTR -12[rbp], 2
	je	.L89
	mov	eax, 0
	call	deadlock
.L89:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L90
	cmp	DWORD PTR -4[rbp], -100
	jl	.L90
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L91
.L90:
	call	checking_error
.L91:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L92
	cmp	DWORD PTR -8[rbp], 100
	je	.L93
.L92:
	mov	eax, 0
	call	deadlock
.L93:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L94
	cmp	DWORD PTR -4[rbp], -100
	jl	.L94
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L95
.L94:
	call	checking_error
	jmp	.L95
.L60:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L96
	cmp	DWORD PTR -8[rbp], 100
	je	.L97
.L96:
	mov	eax, 0
	call	deadlock
.L97:
	mov	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L98
	cmp	DWORD PTR -4[rbp], -100
	jl	.L98
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L100
.L98:
	call	checking_error
	jmp	.L100
.L104:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L101
	cmp	DWORD PTR -4[rbp], 19
	jg	.L101
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	eax, 19
	jle	.L102
.L101:
	mov	eax, 0
	call	deadlock
.L102:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L103
	cmp	DWORD PTR -4[rbp], -100
	jl	.L103
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L100
.L103:
	call	checking_error
.L100:
	call	rand_b
	test	eax, eax
	jne	.L104
	cmp	DWORD PTR -12[rbp], 2
	jne	.L105
	cmp	DWORD PTR -4[rbp], 19
	jg	.L105
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	eax, 19
	jg	.L106
.L105:
	mov	eax, 0
	call	deadlock
.L106:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L107
	cmp	DWORD PTR -4[rbp], -100
	jl	.L107
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L95
.L107:
	call	checking_error
.L95:
	cmp	DWORD PTR -12[rbp], 2
	je	.L108
	mov	eax, 0
	call	deadlock
.L108:
	mov	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -8[rbp], 0
	js	.L109
	cmp	DWORD PTR -4[rbp], -100
	jl	.L109
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L110
.L109:
	call	checking_error
.L110:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L111
	cmp	DWORD PTR -8[rbp], 100
	jg	.L112
.L111:
	mov	eax, 0
	call	deadlock
.L112:
	mov	DWORD PTR -12[rbp], 3
	cmp	DWORD PTR -8[rbp], 0
	js	.L113
	cmp	DWORD PTR -4[rbp], -100
	jl	.L113
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 201
	cmp	DWORD PTR -8[rbp], eax
	jle	.L114
.L113:
	call	checking_error
.L114:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ts_restructured, .-ts_restructured
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	ts_singlestate
	call	ts_restructured
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.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	"909072.c"
	.text
	.align	2
	.global	rand_b
	.syntax unified
	.arm
	.fpu softvfp
	.type	rand_b, %function
rand_b:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	rand_b, .-rand_b
	.align	2
	.global	rand_z
	.syntax unified
	.arm
	.fpu softvfp
	.type	rand_z, %function
rand_z:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	bl	rand
	mov	r4, r0
	bl	rand
	mov	r3, r0
	sub	r3, r4, r3
	mov	r0, r3
	pop	{r4, r5, fp, pc}
	.size	rand_z, .-rand_z
	.section	.rodata
	.align	2
.LC0:
	.ascii	"deadlock\000"
	.text
	.align	2
	.global	deadlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	deadlock, %function
deadlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
.L6:
	b	.L6
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	deadlock, .-deadlock
	.section	.rodata
	.align	2
.LC1:
	.ascii	"checking error\000"
	.text
	.align	2
	.global	checking_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	checking_error, %function
checking_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L10+4
	bl	fwrite
	mov	r0, #2
	bl	exit
.L11:
	.align	2
.L10:
	.word	stderr
	.word	.LC1
	.size	checking_error, .-checking_error
	.align	2
	.global	ts_singlestate
	.syntax unified
	.arm
	.fpu softvfp
	.type	ts_singlestate, %function
ts_singlestate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #99
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L13
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L13
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L15
.L13:
	bl	checking_error
	b	.L15
.L30:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	ble	.L18
.L17:
	bl	deadlock
.L18:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L19
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L15
.L19:
	bl	checking_error
	b	.L15
.L16:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L21
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L22
.L21:
	bl	deadlock
.L22:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L23
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L23
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L15
.L23:
	bl	checking_error
	b	.L15
.L20:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L25
	bl	deadlock
.L25:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L26
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L26
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L15
.L26:
	bl	checking_error
	b	.L15
.L24:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	bgt	.L28
.L27:
	bl	deadlock
.L28:
	mov	r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L29
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L29
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L15
.L29:
	bl	checking_error
.L15:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ts_singlestate, .-ts_singlestate
	.align	2
	.global	ts_restructured
	.syntax unified
	.arm
	.fpu softvfp
	.type	ts_restructured, %function
ts_restructured:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #99
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L32
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L32
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L33
.L32:
	bl	checking_error
.L33:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	b	.L35
.L47:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L36
	ldr	r3, [fp, #-12]
	cmp	r3, #98
	ble	.L37
.L36:
	bl	deadlock
.L37:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L38
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L38
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L40
.L38:
	bl	checking_error
	b	.L40
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L41
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L41
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #19
	ble	.L42
.L41:
	bl	deadlock
.L42:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L43
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L43
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L40
.L43:
	bl	checking_error
.L40:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L45
	bl	deadlock
.L45:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L46
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L46
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L35
.L46:
	bl	checking_error
.L35:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L48
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	beq	.L49
.L48:
	bl	deadlock
.L49:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L50
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L50
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L52
.L50:
	bl	checking_error
	b	.L52
.L56:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L53
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L53
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #19
	ble	.L54
.L53:
	bl	deadlock
.L54:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L55
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L55
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L52
.L55:
	bl	checking_error
.L52:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L57
	bl	deadlock
.L57:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L58
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L58
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L59
.L58:
	bl	checking_error
.L59:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L60
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	bgt	.L61
.L60:
	bl	deadlock
.L61:
	mov	r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L62
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L62
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L118
.L62:
	bl	checking_error
	b	.L118
.L34:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L65
	ldr	r3, [fp, #-12]
	cmp	r3, #98
	ble	.L66
.L65:
	bl	deadlock
.L66:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L67
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L67
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L69
.L67:
	bl	checking_error
	b	.L69
.L80:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L71
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L71
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #19
	ble	.L72
.L71:
	bl	deadlock
.L72:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L73
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L73
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L69
.L73:
	bl	checking_error
	b	.L69
.L70:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L74
	bl	deadlock
.L74:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L75
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L75
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L76
.L75:
	bl	checking_error
.L76:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L77
	ldr	r3, [fp, #-12]
	cmp	r3, #98
	ble	.L78
.L77:
	bl	deadlock
.L78:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L79
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L79
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L69
.L79:
	bl	checking_error
.L69:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L81
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L81
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #19
	bgt	.L82
.L81:
	bl	deadlock
.L82:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L83
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L83
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L85
.L83:
	bl	checking_error
	b	.L85
.L92:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L86
	bl	deadlock
.L86:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L87
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L87
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L88
.L87:
	bl	checking_error
.L88:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L89
	ldr	r3, [fp, #-12]
	cmp	r3, #98
	ble	.L90
.L89:
	bl	deadlock
.L90:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L91
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L91
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L85
.L91:
	bl	checking_error
.L85:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L92
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L93
	bl	deadlock
.L93:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L94
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L94
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L95
.L94:
	bl	checking_error
.L95:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L96
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	beq	.L97
.L96:
	bl	deadlock
.L97:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L98
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L98
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L99
.L98:
	bl	checking_error
	b	.L99
.L64:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L100
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	beq	.L101
.L100:
	bl	deadlock
.L101:
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L102
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L102
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L104
.L102:
	bl	checking_error
	b	.L104
.L108:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L105
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L105
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #19
	ble	.L106
.L105:
	bl	deadlock
.L106:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L107
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L107
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L104
.L107:
	bl	checking_error
.L104:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L108
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L109
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L109
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #19
	bgt	.L110
.L109:
	bl	deadlock
.L110:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L111
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L111
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L99
.L111:
	bl	checking_error
.L99:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L112
	bl	deadlock
.L112:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L113
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L113
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L114
.L113:
	bl	checking_error
.L114:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L115
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	bgt	.L116
.L115:
	bl	deadlock
.L116:
	mov	r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L117
	ldr	r3, [fp, #-8]
	cmn	r3, #100
	blt	.L117
	ldr	r3, [fp, #-8]
	add	r3, r3, #201
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L118
.L117:
	bl	checking_error
.L118:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ts_restructured, .-ts_restructured
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	ts_singlestate
	bl	ts_restructured
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
