	.file	"423060.c"
	.intel_syntax noprefix
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 0
	jns	.L2
	mov	eax, -2147483648
	jmp	.L3
.L2:
	mov	eax, 2147483647
.L3:
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	jns	.L4
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jne	.L4
	mov	eax, 0
	jmp	.L23
.L4:
	mov	eax, DWORD PTR -148[rbp]
	sar	eax, 31
	xor	DWORD PTR -148[rbp], eax
	sub	DWORD PTR -148[rbp], eax
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -140[rbp], 0
	jmp	.L6
.L7:
	mov	edx, DWORD PTR -148[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -100[rbp], edx
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -148[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -140[rbp], edx
	cdqe
	mov	edx, DWORD PTR -100[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
.L6:
	cmp	DWORD PTR -148[rbp], 0
	jne	.L7
	cmp	DWORD PTR -140[rbp], 10
	jne	.L8
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	cmp	DWORD PTR -112[rbp], 0
	jns	.L9
	mov	eax, DWORD PTR -112[rbp]
	not	eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -112[rbp]
.L10:
	mov	DWORD PTR -132[rbp], eax
	jmp	.L11
.L12:
	mov	edx, DWORD PTR -132[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -100[rbp], edx
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -136[rbp], edx
	cdqe
	mov	edx, DWORD PTR -100[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
.L11:
	cmp	DWORD PTR -132[rbp], 0
	jne	.L12
	cmp	DWORD PTR -112[rbp], 0
	jns	.L13
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
.L13:
	mov	DWORD PTR -128[rbp], 0
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	DWORD PTR -108[rbp], eax
	mov	eax, 9
	sub	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jle	.L15
	mov	eax, 0
	jmp	.L23
.L15:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L25
	add	DWORD PTR -128[rbp], 1
.L14:
	cmp	DWORD PTR -128[rbp], 9
	jle	.L18
	jmp	.L8
.L25:
	nop
.L8:
	mov	DWORD PTR -124[rbp], 0
	mov	eax, DWORD PTR -140[rbp]
	sub	eax, 1
	mov	DWORD PTR -120[rbp], eax
	mov	DWORD PTR -116[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	QWORD PTR -160[rbp], xmm2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR -160[rbp]
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -124[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -124[rbp], eax
	sub	DWORD PTR -120[rbp], 1
	add	DWORD PTR -116[rbp], 1
.L19:
	cmp	DWORD PTR -120[rbp], 0
	jns	.L20
	cmp	DWORD PTR -112[rbp], 0
	jns	.L21
	mov	eax, DWORD PTR -124[rbp]
	neg	eax
	jmp	.L23
.L21:
	mov	eax, DWORD PTR -124[rbp]
.L23:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	reverse, .-reverse
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1076101120
	.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	"423060.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #136
	str	r0, [fp, #-144]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bge	.L2
	mov	r3, #-2147483648
	b	.L3
.L2:
	mvn	r3, #-2147483648
.L3:
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bge	.L4
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bne	.L4
	mov	r3, #0
	b	.L23
.L4:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-144]
	sub	r3, fp, #96
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L6
.L7:
	ldr	r2, [fp, #-144]
	ldr	r3, .L26+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-144]
	ldr	r2, .L26+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-140]
	add	r2, r3, #1
	str	r2, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-100]
	str	r2, [r3, #-84]
.L6:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-140]
	cmp	r3, #10
	bne	.L8
	sub	r3, fp, #56
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L9
	ldr	r3, [fp, #-112]
	mvn	r3, r3
	b	.L10
.L9:
	ldr	r3, [fp, #-112]
.L10:
	str	r3, [fp, #-132]
	b	.L11
.L12:
	ldr	r2, [fp, #-132]
	ldr	r3, .L26+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-132]
	ldr	r2, .L26+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-136]
	add	r2, r3, #1
	str	r2, [fp, #-136]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-100]
	str	r2, [r3, #-44]
.L11:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L13
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L13:
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L14
.L18:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-128]
	rsb	r3, r3, #9
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	ble	.L15
	mov	r3, #0
	b	.L23
.L15:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L14:
	ldr	r3, [fp, #-128]
	cmp	r3, #9
	ble	.L18
	b	.L8
.L25:
	nop
.L8:
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L19
.L20:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-116]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L26+8
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-124]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L19:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L20
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L21
	ldr	r3, [fp, #-124]
	rsb	r3, r3, #0
	b	.L23
.L21:
	ldr	r3, [fp, #-124]
.L23:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	1717986919
	.word	1076101120
	.size	reverse, .-reverse
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
