	.file	"947659.c"
	.intel_syntax noprefix
	.text
	.globl	BITS
	.data
	.align 16
	.type	BITS, @object
	.size	BITS, 20
BITS:
	.long	16
	.long	8
	.long	4
	.long	2
	.long	1
	.globl	BASE32
	.align 32
	.type	BASE32, @object
	.size	BASE32, 33
BASE32:
	.string	"0123456789bcdefghjkmnpqrstuvwxyz"
	.text
	.globl	encodeGeoHash
	.type	encodeGeoHash, @function
encodeGeoHash:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	movss	DWORD PTR -116[rbp], xmm0
	movss	DWORD PTR -120[rbp], xmm1
	mov	QWORD PTR -128[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 1
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	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	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -92[rbp], 12
	mov	DWORD PTR -96[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -80[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L2
.L10:
	cmp	DWORD PTR -108[rbp], 0
	je	.L3
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -120[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L14
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, BITS[rip]
	mov	eax, DWORD PTR [rdx+rax]
	or	DWORD PTR -100[rbp], eax
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	jmp	.L6
.L14:
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L6
.L3:
	movsd	xmm1, QWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -116[rbp]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L15
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, BITS[rip]
	mov	eax, DWORD PTR [rdx+rax]
	or	DWORD PTR -100[rbp], eax
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -80[rbp], xmm0
	jmp	.L6
.L15:
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
.L6:
	cmp	DWORD PTR -108[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -104[rbp], 3
	jg	.L9
	add	DWORD PTR -104[rbp], 1
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rcx, BASE32[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -100[rbp], 0
.L2:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L10
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	encodeGeoHash, .-encodeGeoHash
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	-1068072960
	.align 8
.LC2:
	.long	0
	.long	1079410688
	.align 8
.LC3:
	.long	0
	.long	-1067024384
	.align 8
.LC4:
	.long	0
	.long	1080459264
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.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	"947659.c"
	.text
	.global	BITS
	.data
	.align	2
	.type	BITS, %object
	.size	BITS, 20
BITS:
	.word	16
	.word	8
	.word	4
	.word	2
	.word	1
	.global	BASE32
	.align	2
	.type	BASE32, %object
	.size	BASE32, 33
BASE32:
	.ascii	"0123456789bcdefghjkmnpqrstuvwxyz\000"
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_f2d
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encodeGeoHash
	.syntax unified
	.arm
	.fpu softvfp
	.type	encodeGeoHash, %function
encodeGeoHash:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]	@ float
	str	r1, [fp, #-116]	@ float
	str	r2, [fp, #-120]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-104]
	sub	r3, fp, #76
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #44
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #12
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r2, #0
	ldr	r3, .L16+4
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	ldr	r3, .L16+8
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	ldr	r3, .L16+12
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L16+16
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L2
.L10:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L3
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r0, [fp, #-116]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r2, .L16+20
	ldr	r3, [fp, #-100]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-96]
	orr	r3, r2, r3
	str	r3, [fp, #-96]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L6
.L14:
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L6
.L3:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r0, [fp, #-112]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r2, .L16+20
	ldr	r3, [fp, #-100]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-96]
	orr	r3, r2, r3
	str	r3, [fp, #-96]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L6
.L15:
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
.L6:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-100]
	cmp	r3, #3
	bgt	.L9
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L2
.L9:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r1, .L16+24
	ldr	r2, [fp, #-96]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
.L2:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	blt	.L10
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	-1068072960
	.word	1079410688
	.word	-1067024384
	.word	1080459264
	.word	BITS
	.word	BASE32
	.size	encodeGeoHash, .-encodeGeoHash
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
