	.file	"127046.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	limits, @object
	.size	limits, 72
limits:
	.quad	9
	.quad	189
	.quad	2889
	.quad	38889
	.quad	488889
	.quad	5888889
	.quad	68888889
	.quad	788888889
	.quad	8888888889
	.text
	.globl	findNthDigit
	.type	findNthDigit, @function
findNthDigit:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	cmp	DWORD PTR -52[rbp], 9
	jg	.L2
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L3
.L2:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L4
.L5:
	add	DWORD PTR -40[rbp], 1
.L4:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, limits[rip]
	mov	rax, QWORD PTR [rcx+rax]
	cmp	rdx, rax
	jg	.L5
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, limits[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 1
	sub	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	add	edx, 1
	movsx	rdi, edx
	cqo
	idiv	rdi
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 1
	sub	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	add	edx, 1
	movsx	rsi, edx
	cqo
	idiv	rsi
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L6
.L9:
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	DWORD PTR -36[rbp], edx
	cmp	QWORD PTR -32[rbp], 0
	je	.L10
	sub	QWORD PTR -32[rbp], 1
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
.L6:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	jmp	.L8
.L10:
	nop
.L8:
	mov	eax, DWORD PTR -36[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	findNthDigit, .-findNthDigit
	.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	"127046.c"
	.text
	.data
	.align	2
	.type	limits, %object
	.size	limits, 36
limits:
	.word	9
	.word	189
	.word	2889
	.word	38889
	.word	488889
	.word	5888889
	.word	68888889
	.word	788888889
	.word	298954297
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.text
	.align	2
	.global	findNthDigit
	.syntax unified
	.arm
	.fpu softvfp
	.type	findNthDigit, %function
findNthDigit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #9
	bgt	.L2
	ldr	r3, [fp, #-40]
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r2, .L11
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, .L11
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	sub	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L11+4
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]
	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, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L6
.L9:
	ldr	r2, [fp, #-28]
	ldr	r3, .L11+8
	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, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r2, .L11+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-28]
.L6:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L9
	b	.L8
.L10:
	nop
.L8:
	ldr	r3, [fp, #-24]
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	limits
	.word	1076101120
	.word	1717986919
	.size	findNthDigit, .-findNthDigit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
