	.file	"31819.c"
	.intel_syntax noprefix
	.text
	.globl	f2u
	.type	f2u, @function
f2u:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -4[rbp], xmm0
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f2u, .-f2u
	.globl	u2f
	.type	u2f, @function
u2f:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	u2f, .-u2f
	.globl	myi2f
	.type	myi2f, @function
myi2f:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -20[rbp], -2147483648
	jne	.L6
	mov	DWORD PTR -16[rbp], 158
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L6:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L8
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L8:
	cmp	DWORD PTR -8[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -20[rbp]
	neg	eax
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
.L10:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L12:
	add	DWORD PTR -16[rbp], 1
	sal	DWORD PTR -12[rbp]
.L11:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jns	.L12
	mov	eax, 157
	sub	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 8
	and	eax, 1
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L13
	mov	eax, DWORD PTR -12[rbp]
	movzx	eax, al
	cmp	eax, 128
	je	.L14
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 128
	test	eax, eax
	jne	.L15
.L14:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	shr	eax, 9
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L15:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	shr	eax, 9
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movzx	eax, al
	cmp	eax, 128
	je	.L17
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 128
	test	eax, eax
	je	.L18
.L17:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	shr	eax, 9
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 8388608
	test	eax, eax
	je	.L7
	add	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L18:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	shr	eax, 9
	mov	DWORD PTR -12[rbp], eax
.L7:
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 31
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 23
	or	eax, edx
	or	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	myi2f, .-myi2f
	.section	.rodata
.LC0:
	.string	"Original int is %d\n"
.LC1:
	.string	"Our conversion is %f\n"
	.align 8
.LC2:
	.string	"Sys conversion in hex is %x and our conversion in hex is  %x\n"
	.align 8
.LC3:
	.string	" Mismatch:\noriginal int %08X --> sys %08X , ours %08X\n"
.LC4:
	.string	"Success Test"
	.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, 16
	mov	DWORD PTR -12[rbp], 100
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movd	eax, xmm1
	movd	xmm0, eax
	call	f2u
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	myi2f
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	u2f
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	je	.L23
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	add	DWORD PTR -12[rbp], 1
.L22:
	cmp	DWORD PTR -12[rbp], 109
	jbe	.L24
	lea	rdi, .LC4[rip]
	call	puts@PLT
	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	"31819.c"
	.text
	.align	2
	.global	f2u
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2u, %function
f2u:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]	@ float
	ldr	r3, [fp, #-16]	@ float
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	f2u, .-f2u
	.align	2
	.global	u2f
	.syntax unified
	.arm
	.fpu softvfp
	.type	u2f, %function
u2f:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	u2f, .-u2f
	.align	2
	.global	myi2f
	.syntax unified
	.arm
	.fpu softvfp
	.type	myi2f, %function
myi2f:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	asr	r3, r3, #31
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #-2147483648
	bne	.L6
	mov	r3, #158
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L10
.L9:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L12
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #157
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #8
	and	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	cmp	r3, #128
	beq	.L14
	ldr	r3, [fp, #-16]
	and	r3, r3, #128
	cmp	r3, #0
	bne	.L15
.L14:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	lsr	r3, r3, #9
	str	r3, [fp, #-16]
	b	.L7
.L15:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	lsr	r3, r3, #9
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L7
.L13:
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	cmp	r3, #128
	beq	.L17
	ldr	r3, [fp, #-16]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L18
.L17:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	lsr	r3, r3, #9
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r3, r3, #8388608
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L18:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	lsr	r3, r3, #9
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #31
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #23
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	orr	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	myi2f, .-myi2f
	.global	__aeabi_i2f
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Original int is %d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC1:
	.ascii	"Our conversion is %f\012\000"
	.align	2
.LC2:
	.ascii	"Sys conversion in hex is %x and our conversion in h"
	.ascii	"ex is  %x\012\000"
	.align	2
.LC3:
	.ascii	" Mismatch:\012original int %08X --> sys %08X , ours"
	.ascii	" %08X\012\000"
	.align	2
.LC4:
	.ascii	"Success Test\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
	mov	r3, #100
	str	r3, [fp, #-16]
	b	.L22
.L24:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	f2u
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	myi2f
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L26
	bl	printf
	ldr	r0, [fp, #-8]
	bl	u2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L26+4
	bl	printf
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L26+8
	bl	printf
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L23
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L26+12
	bl	printf
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L22:
	ldr	r3, [fp, #-16]
	cmp	r3, #109
	bls	.L24
	ldr	r0, .L26+16
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
