	.file	"140552.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Number: "
.LC1:
	.string	"%llu"
.LC4:
	.string	"card_number_reduced: %llu\n"
.LC5:
	.string	"flag_number: %llu\n"
.LC6:
	.string	"n: %d\n"
.LC7:
	.string	"n_final: %d\n"
.LC8:
	.string	"odd_sum: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
.L9:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	js	.L2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movsd	QWORD PTR -56[rbp], xmm2
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
.L3:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	divsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC3[rip]
	jnb	.L4
	cvttsd2si	rcx, xmm0
	jmp	.L5
.L4:
	movsd	xmm1, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rcx, xmm0
	movabs	rax, -9223372036854775808
	xor	rcx, rax
.L5:
	movabs	rdx, -3689348814741910323
	mov	rax, rcx
	mul	rdx
	shr	rdx, 3
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, edx
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 3
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 1
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rax
	cmp	rax, 9
	jbe	.L7
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, [rax+rax]
	movabs	rdx, -3689348814741910323
	mov	rax, rcx
	mul	rdx
	shr	rdx, 3
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	ecx, edx
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rax
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 3
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -40[rbp], eax
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -16[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -40[rbp], eax
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -40[rbp], eax
.L8:
	add	DWORD PTR -36[rbp], 1
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1138753536
	.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	"140552.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Number: \000"
	.align	2
.LC1:
	.ascii	"%llu\000"
	.global	__aeabi_ul2d
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2ulz
	.global	__aeabi_uldivmod
	.align	2
.LC2:
	.ascii	"card_number_reduced: %llu\012\000"
	.align	2
.LC3:
	.ascii	"flag_number: %llu\012\000"
	.align	2
.LC4:
	.ascii	"n: %d\012\000"
	.align	2
.LC5:
	.ascii	"n_final: %d\012\000"
	.align	2
.LC6:
	.ascii	"odd_sum: %d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #52
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r0, .L8+4
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L5:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_ul2d
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L8+12
	bl	pow
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2ulz
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r3, r2
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+16
	bl	printf
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+20
	bl	printf
	ldr	r1, [fp, #-72]
	ldr	r0, .L8+24
	bl	printf
	ldr	r3, [fp, #-72]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	cmp	r3, #0
	cmpeq	r2, #9
	bls	.L3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r0, r6
	mov	r1, r7
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r10, r2
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r0, r8
	mov	r1, r9
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	add	r2, r10, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	b	.L4
.L3:
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	b	.L4
.L2:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-76]
.L4:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L5
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-72]
	ldr	r0, .L8+28
	bl	printf
	ldr	r1, [fp, #-76]
	ldr	r0, .L8+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	1076101120
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
