	.file	"1178.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -32768[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 96
	mov	DWORD PTR -32836[rbp], edi
	mov	DWORD PTR -32840[rbp], esi
	mov	DWORD PTR -32844[rbp], edx
	mov	QWORD PTR -32856[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -32840[rbp], 32841
	je	.L2
	cmp	DWORD PTR -32840[rbp], 32841
	jg	.L24
	cmp	DWORD PTR -32840[rbp], 6410
	je	.L4
	cmp	DWORD PTR -32840[rbp], 6410
	jg	.L24
	cmp	DWORD PTR -32840[rbp], 6406
	je	.L5
	cmp	DWORD PTR -32840[rbp], 6407
	je	.L6
	jmp	.L24
.L5:
	mov	DWORD PTR -32812[rbp], -1
	mov	eax, DWORD PTR -32812[rbp]
	mov	DWORD PTR -32816[rbp], eax
	jmp	.L7
.L4:
	mov	DWORD PTR -32812[rbp], -1
	mov	eax, DWORD PTR -32812[rbp]
	mov	DWORD PTR -32816[rbp], eax
	jmp	.L7
.L2:
	mov	DWORD PTR -32812[rbp], -1
	mov	eax, DWORD PTR -32812[rbp]
	mov	DWORD PTR -32816[rbp], eax
	jmp	.L7
.L6:
	mov	DWORD PTR -32816[rbp], 1
	mov	DWORD PTR -32812[rbp], 2
	nop
.L7:
	cmp	DWORD PTR -32816[rbp], 0
	js	.L9
	mov	rax, QWORD PTR -32856[rbp]
	mov	QWORD PTR -32800[rbp], rax
	mov	DWORD PTR -32808[rbp], 0
	jmp	.L10
.L15:
	mov	eax, DWORD PTR -32808[rbp]
	sal	rax, 4
	add	rax, rbp
	sub	rax, 32780
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -32820[rbp], xmm0
	mov	eax, DWORD PTR -32820[rbp]
	cmp	eax, 1065287679
	jbe	.L11
	mov	eax, DWORD PTR -32820[rbp]
	test	eax, eax
	jns	.L12
	mov	eax, 0
	jmp	.L14
.L12:
	mov	eax, -1
	jmp	.L14
.L11:
	movss	xmm1, DWORD PTR -32820[rbp]
	movss	xmm0, DWORD PTR .LC0[rip]
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	addss	xmm0, xmm1
	movss	DWORD PTR -32820[rbp], xmm0
	mov	eax, DWORD PTR -32820[rbp]
.L14:
	mov	edx, DWORD PTR -32816[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32800[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -32844[rbp]
	cdqe
	add	QWORD PTR -32800[rbp], rax
	add	DWORD PTR -32808[rbp], 1
.L10:
	mov	eax, DWORD PTR -32808[rbp]
	cmp	eax, DWORD PTR -32836[rbp]
	jb	.L15
.L9:
	cmp	DWORD PTR -32812[rbp], 0
	js	.L1
	mov	rax, QWORD PTR -32856[rbp]
	mov	QWORD PTR -32792[rbp], rax
	mov	DWORD PTR -32804[rbp], 0
	jmp	.L17
.L22:
	mov	eax, DWORD PTR -32804[rbp]
	sal	rax, 4
	add	rax, rbp
	sub	rax, 32776
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -32820[rbp], xmm0
	mov	eax, DWORD PTR -32820[rbp]
	cmp	eax, 1065287679
	jbe	.L18
	mov	eax, DWORD PTR -32820[rbp]
	test	eax, eax
	jns	.L19
	mov	eax, 0
	jmp	.L21
.L19:
	mov	eax, -1
	jmp	.L21
.L18:
	movss	xmm1, DWORD PTR -32820[rbp]
	movss	xmm0, DWORD PTR .LC0[rip]
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	addss	xmm0, xmm1
	movss	DWORD PTR -32820[rbp], xmm0
	mov	eax, DWORD PTR -32820[rbp]
.L21:
	mov	edx, DWORD PTR -32812[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32792[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -32844[rbp]
	cdqe
	add	QWORD PTR -32792[rbp], rax
	add	DWORD PTR -32804[rbp], 1
.L17:
	mov	eax, DWORD PTR -32804[rbp]
	cmp	eax, DWORD PTR -32836[rbp]
	jb	.L22
	jmp	.L1
.L24:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.section	.rodata
	.align 4
.LC0:
	.long	1065287680
	.align 4
.LC1:
	.long	1191182336
	.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	"1178.c"
	.text
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.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 = 32816
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32768
	sub	sp, sp, #48
	sub	ip, fp, #32768
	sub	ip, ip, #4
	str	r0, [ip, #-36]
	sub	r0, fp, #32768
	sub	r0, r0, #4
	str	r1, [r0, #-40]
	sub	r1, fp, #32768
	sub	r1, r1, #4
	str	r2, [r1, #-44]
	sub	r2, fp, #32768
	sub	r2, r2, #4
	str	r3, [r2, #-48]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	ldr	r2, .L25+4
	cmp	r3, r2
	beq	.L2
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	ldr	r2, .L25+4
	cmp	r3, r2
	bgt	.L24
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	ldr	r2, .L25+8
	cmp	r3, r2
	beq	.L4
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	ldr	r2, .L25+8
	cmp	r3, r2
	bgt	.L24
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	ldr	r2, .L25+12
	cmp	r3, r2
	beq	.L5
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	ldr	r2, .L25+16
	cmp	r3, r2
	beq	.L6
	b	.L24
.L5:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	str	r3, [r2, #-28]
	b	.L7
.L4:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	str	r3, [r2, #-28]
	b	.L7
.L2:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	str	r3, [r2, #-28]
	b	.L7
.L6:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-28]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-24]
	nop
.L7:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	blt	.L9
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-48]
	str	r3, [r2, #-20]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	b	.L10
.L15:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	ldr	r3, [r2, r3, lsl #4]	@ float
	sub	r2, fp, #32768
	sub	r2, r2, #4
	str	r3, [r2, #-32]	@ float
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	ldr	r2, .L25+20
	cmp	r3, r2
	bls	.L11
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bge	.L12
	mov	r3, #0
	b	.L14
.L12:
	mov	r3, #255
	b	.L14
.L11:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]	@ float
	ldr	r1, .L25+24
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1191182336
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	str	r2, [r3, #-32]	@ float
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	and	r3, r3, #255
.L14:
	sub	r2, fp, #32768
	sub	r2, r2, #4
	ldr	r2, [r2, #-28]
	sub	r1, fp, #32768
	sub	r1, r1, #4
	ldr	r1, [r1, #-20]
	add	r2, r1, r2
	strb	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-44]
	sub	r2, fp, #32768
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #32768
	sub	r2, r2, #4
	ldr	r2, [r2, #-20]
	add	r3, r2, r3
	str	r3, [r1, #-20]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L10:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-36]
	cmp	r2, r3
	bcc	.L15
.L9:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	blt	.L1
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-48]
	str	r3, [r2, #-12]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L17
.L22:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]	@ float
	sub	r2, fp, #32768
	sub	r2, r2, #4
	str	r3, [r2, #-32]	@ float
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	ldr	r2, .L25+20
	cmp	r3, r2
	bls	.L18
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bge	.L19
	mov	r3, #0
	b	.L21
.L19:
	mov	r3, #255
	b	.L21
.L18:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]	@ float
	ldr	r1, .L25+24
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1191182336
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	str	r2, [r3, #-32]	@ float
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	and	r3, r3, #255
.L21:
	sub	r2, fp, #32768
	sub	r2, r2, #4
	ldr	r2, [r2, #-24]
	sub	r1, fp, #32768
	sub	r1, r1, #4
	ldr	r1, [r1, #-12]
	add	r2, r1, r2
	strb	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-44]
	sub	r2, fp, #32768
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #32768
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	add	r3, r2, r3
	str	r3, [r1, #-12]
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L17:
	sub	r3, fp, #32768
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #4
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-36]
	cmp	r2, r3
	bcc	.L22
	b	.L1
.L24:
	nop
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	32841
	.word	6410
	.word	6406
	.word	6407
	.word	1065287679
	.word	1065287680
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
