	.file	"70449325.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -10485760[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -10485776[rbp], 0
	mov	QWORD PTR -10485768[rbp], 0
	lea	rax, -10485760[rbp]
	mov	edx, 10485744
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -10485784[rbp], 0
	jmp	.L2
.L3:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR -10485784[rbp]
	cdqe
	mov	BYTE PTR -10485776[rbp+rax], dl
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	add	DWORD PTR -10485784[rbp], edx
	add	DWORD PTR -10485784[rbp], 1
.L2:
	cmp	DWORD PTR -10485784[rbp], 10485759
	jle	.L3
	mov	DWORD PTR -10485780[rbp], 0
	jmp	.L4
.L5:
	add	DWORD PTR -10485780[rbp], 1
.L4:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L5
	mov	ecx, DWORD PTR -10485780[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, edx
	sal	eax, 20
	cdqe
	movzx	eax, BYTE PTR -10485776[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -10485780[rbp]
	add	eax, edx
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	foo, .-foo
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	test	eax, eax
	je	.L9
	call	abort@PLT
.L9:
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	test	eax, eax
	je	.L10
	call	abort@PLT
.L10:
	mov	eax, 0
	call	foo
	test	eax, eax
	jg	.L11
	call	abort@PLT
.L11:
	jmp	.L11
	.cfi_endproc
.LFE7:
	.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	"70449325.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 10485776
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #10485760
	sub	sp, sp, #16
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L8+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	b	.L2
.L3:
	bl	rand
	mov	r1, r0
	ldr	r3, .L8+8
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	and	r2, r2, #255
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	add	r3, r1, r3
	sub	r3, r3, #4
	strb	r2, [r3]
	bl	rand
	mov	r1, r0
	ldr	r3, .L8+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	add	r3, r2, r3
	str	r3, [r1, #-12]
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-12]
.L2:
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	cmp	r3, #10485760
	blt	.L3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L4
.L5:
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L4:
	bl	rand
	mov	r1, r0
	ldr	r3, .L8+8
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L5
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r1, [r3, #-8]
	ldr	r3, .L8+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #20
	sub	r2, fp, #10485760
	sub	r2, r2, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #10485760
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r2, r3
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	10485756
	.word	1431655766
	.word	1374389535
	.word	1717986919
	.size	foo, .-foo
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigfillset
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	bl	abort
.L11:
	sub	r3, fp, #136
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	bl	abort
.L12:
	bl	foo
	mov	r3, r0
	cmp	r3, #0
	bgt	.L13
	bl	abort
.L13:
	b	.L13
.L16:
	.align	2
.L15:
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
