	.file	"107952327.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
	call	rand_b
	mov	DWORD PTR -8[rbp], eax
	call	rand@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L9
	cmp	DWORD PTR -4[rbp], 5
	jle	.L10
.L9:
	mov	eax, 0
	call	deadlock
.L10:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L12
	cmp	DWORD PTR -12[rbp], 2
	jne	.L12
	cmp	DWORD PTR -4[rbp], 4
	jle	.L12
	call	checking_error
	jmp	.L12
.L21:
	call	rand_b
	test	eax, eax
	je	.L13
	cmp	DWORD PTR -12[rbp], 1
	jne	.L14
	cmp	DWORD PTR -4[rbp], 2
	jg	.L14
	cmp	DWORD PTR -8[rbp], 1
	je	.L15
.L14:
	mov	eax, 0
	call	deadlock
.L15:
	mov	DWORD PTR -8[rbp], 1
	add	DWORD PTR -4[rbp], 10
	mov	DWORD PTR -12[rbp], 2
	cmp	DWORD PTR -8[rbp], 0
	jne	.L12
	cmp	DWORD PTR -12[rbp], 2
	jne	.L12
	cmp	DWORD PTR -4[rbp], 4
	jle	.L12
	call	checking_error
	jmp	.L12
.L13:
	call	rand_b
	test	eax, eax
	je	.L16
	cmp	DWORD PTR -12[rbp], 1
	jne	.L17
	cmp	DWORD PTR -4[rbp], 2
	jg	.L17
	cmp	DWORD PTR -8[rbp], 0
	je	.L18
.L17:
	mov	eax, 0
	call	deadlock
.L18:
	sub	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -12[rbp], 2
	cmp	DWORD PTR -8[rbp], 0
	jne	.L12
	cmp	DWORD PTR -12[rbp], 2
	jne	.L12
	cmp	DWORD PTR -4[rbp], 4
	jle	.L12
	call	checking_error
	jmp	.L12
.L16:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L19
	cmp	DWORD PTR -4[rbp], 2
	jg	.L20
.L19:
	mov	eax, 0
	call	deadlock
.L20:
	mov	DWORD PTR -8[rbp], 0
	sub	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -12[rbp], 2
	cmp	DWORD PTR -8[rbp], 0
	jne	.L12
	cmp	DWORD PTR -12[rbp], 2
	jne	.L12
	cmp	DWORD PTR -4[rbp], 4
	jle	.L12
	call	checking_error
.L12:
	call	rand_b
	test	eax, eax
	jne	.L21
	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
	call	rand_b
	mov	DWORD PTR -8[rbp], eax
	call	rand@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L23
	cmp	DWORD PTR -4[rbp], 5
	jle	.L24
.L23:
	mov	eax, 0
	call	deadlock
.L24:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L25
	cmp	DWORD PTR -12[rbp], 2
	jne	.L25
	cmp	DWORD PTR -4[rbp], 4
	jle	.L25
	call	checking_error
.L25:
	cmp	DWORD PTR -4[rbp], 2
	jg	.L26
	cmp	DWORD PTR -8[rbp], 1
	jne	.L27
	cmp	DWORD PTR -12[rbp], 1
	jne	.L28
	cmp	DWORD PTR -4[rbp], 2
	jg	.L28
	cmp	DWORD PTR -8[rbp], 1
	je	.L29
.L28:
	mov	eax, 0
	call	deadlock
.L29:
	mov	DWORD PTR -8[rbp], 1
	add	DWORD PTR -4[rbp], 10
	mov	DWORD PTR -12[rbp], 2
	cmp	DWORD PTR -8[rbp], 0
	jne	.L35
	cmp	DWORD PTR -12[rbp], 2
	jne	.L35
	cmp	DWORD PTR -4[rbp], 4
	jle	.L35
	call	checking_error
	jmp	.L35
.L27:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L31
	cmp	DWORD PTR -4[rbp], 2
	jg	.L31
	cmp	DWORD PTR -8[rbp], 0
	je	.L32
.L31:
	mov	eax, 0
	call	deadlock
.L32:
	sub	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -12[rbp], 2
	cmp	DWORD PTR -8[rbp], 0
	jne	.L35
	cmp	DWORD PTR -12[rbp], 2
	jne	.L35
	cmp	DWORD PTR -4[rbp], 4
	jle	.L35
	call	checking_error
	jmp	.L35
.L26:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L33
	cmp	DWORD PTR -4[rbp], 2
	jg	.L34
.L33:
	mov	eax, 0
	call	deadlock
.L34:
	mov	DWORD PTR -8[rbp], 0
	sub	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -12[rbp], 2
	cmp	DWORD PTR -8[rbp], 0
	jne	.L35
	cmp	DWORD PTR -12[rbp], 2
	jne	.L35
	cmp	DWORD PTR -4[rbp], 4
	jle	.L35
	call	checking_error
.L35:
	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	"107952327.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]
	bl	rand_b
	str	r0, [fp, #-12]
	bl	rand
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L14
.L13:
	bl	deadlock
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L16
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L16
	bl	checking_error
	b	.L16
.L25:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L19
.L18:
	bl	deadlock
.L19:
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #10
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L16
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L16
	bl	checking_error
	b	.L16
.L17:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L21
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L21
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
.L21:
	bl	deadlock
.L22:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L16
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L16
	bl	checking_error
	b	.L16
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L23
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L24
.L23:
	bl	deadlock
.L24:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L16
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L16
	bl	checking_error
.L16:
	bl	rand_b
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	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]
	bl	rand_b
	str	r0, [fp, #-12]
	bl	rand
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L27
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L28
.L27:
	bl	deadlock
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L29
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L29
	bl	checking_error
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L30
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L31
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L32
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L32
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L33
.L32:
	bl	deadlock
.L33:
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #10
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L39
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L39
	bl	checking_error
	b	.L39
.L31:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L35
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L35
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L36
.L35:
	bl	deadlock
.L36:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L39
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L39
	bl	checking_error
	b	.L39
.L30:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L37
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L38
.L37:
	bl	deadlock
.L38:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L39
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L39
	bl	checking_error
.L39:
	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
