	.file	"934202.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Repair demon failed the repair operation. Damn them to hell!"
	.text
	.type	fail_and_exit, @function
fail_and_exit:
.LFB6:
	.cfi_startproc
	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
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	fail_and_exit, .-fail_and_exit
	.section	.rodata
	.align 8
.LC1:
	.string	"Repair demon succeeded in the repair operation. Promote to heaven?"
	.text
	.type	pass_and_exit, @function
pass_and_exit:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	pass_and_exit, .-pass_and_exit
	.type	get_rand, @function
get_rand:
.LFB8:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 2147483647
	jne	.L4
	call	rand@PLT
	jmp	.L5
.L4:
	mov	eax, 2147483647
	cdq
	idiv	DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
.L8:
	call	rand@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jg	.L10
	jmp	.L8
.L10:
	nop
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -20[rbp]
	mov	eax, edx
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_rand, .-get_rand
	.section	.rodata
	.align 8
.LC2:
	.string	"Repair demon starting damned repair operations..."
	.align 8
.LC3:
	.string	"Incorrect argument passed to repair demon! FAILING\n"
.LC4:
	.string	"always succeed!"
.LC5:
	.string	"always fail!"
	.align 8
.LC6:
	.string	"\t Repair demon received state: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	call	getpid@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	cmp	DWORD PTR -20[rbp], 1
	jle	.L12
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 2
	jg	.L13
	cmp	QWORD PTR -8[rbp], 0
	jns	.L14
.L13:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L14:
	cmp	QWORD PTR -8[rbp], 1
	jne	.L15
	lea	rax, .LC4[rip]
	jmp	.L16
.L15:
	lea	rax, .LC5[rip]
.L16:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	edi, 5
	call	sleep@PLT
	cmp	QWORD PTR -8[rbp], 0
	jne	.L17
	mov	edi, 100
	call	get_rand
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 49
	jg	.L18
	call	fail_and_exit
.L18:
	call	pass_and_exit
	jmp	.L19
.L17:
	cmp	QWORD PTR -8[rbp], 1
	jne	.L20
	call	pass_and_exit
	jmp	.L19
.L20:
	call	fail_and_exit
.L19:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"934202.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Repair demon failed the repair operation. Damn them"
	.ascii	" to hell!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fail_and_exit, %function
fail_and_exit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mov	r0, #2
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	fail_and_exit, .-fail_and_exit
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Repair demon succeeded in the repair operation. Pro"
	.ascii	"mote to heaven?\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pass_and_exit, %function
pass_and_exit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	puts
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	pass_and_exit, .-pass_and_exit
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rand, %function
get_rand:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #-2147483647
	bne	.L8
	bl	rand
	mov	r3, r0
	b	.L9
.L8:
	ldr	r1, [fp, #-16]
	mvn	r0, #-2147483648
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
.L12:
	bl	rand
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L14
	b	.L12
.L14:
	nop
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_rand, .-get_rand
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Repair demon starting damned repair operations...\000"
	.align	2
.LC3:
	.ascii	"Incorrect argument passed to repair demon! FAILING\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"always succeed!\000"
	.align	2
.LC5:
	.ascii	"always fail!\000"
	.align	2
.LC6:
	.ascii	"\011 Repair demon received state: %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L26
	bl	puts
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L16
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bgt	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L18
.L17:
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L26+8
	bl	fwrite
	mov	r0, #3
	bl	exit
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L19
	ldr	r3, .L26+12
	b	.L20
.L19:
	ldr	r3, .L26+16
.L20:
	mov	r1, r3
	ldr	r0, .L26+20
	bl	printf
.L16:
	mov	r0, #5
	bl	sleep
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L21
	mov	r0, #100
	bl	get_rand
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	bgt	.L22
	bl	fail_and_exit
.L22:
	bl	pass_and_exit
	b	.L23
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L24
	bl	pass_and_exit
	b	.L23
.L24:
	bl	fail_and_exit
.L23:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
