	.file	"68888541.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Entrez le numero du compte\n> "
.LC1:
	.string	"%ld"
	.align 8
.LC2:
	.string	"\nLa longueur du numero de carte est de %ld"
.LC3:
	.string	"\n\nLa somme finale est de %ld\n"
.LC4:
	.string	"\nCarte non correcte"
.LC5:
	.string	"\nCarte correcte"
.LC7:
	.string	"\nIl s'agit d'une carte Visa"
.LC8:
	.string	"\nIl s'agit d'une MasterCard"
.LC9:
	.string	"\nIl s'agit d'une autre carte"
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L4:
	mov	rcx, QWORD PTR -64[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	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	and	eax, 1
	test	rax, rax
	je	.L3
	sal	QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	rsi, rax
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	add	rax, rax
	mov	rsi, rcx
	sub	rsi, rax
	mov	rcx, QWORD PTR -40[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	mov	QWORD PTR -40[rbp], rax
.L3:
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -48[rbp], rax
	mov	rcx, QWORD PTR -64[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 -64[rbp], rax
	add	QWORD PTR -56[rbp], 1
.L2:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -48[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
	test	rdx, rdx
	je	.L5
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -32[rbp], 12
	jle	.L7
	cmp	QWORD PTR -32[rbp], 16
	jg	.L7
	mov	rbx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rcx, xmm0
	mov	rax, rbx
	cqo
	idiv	rcx
	mov	rax, rdx
	cmp	rax, 4
	jne	.L7
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L7:
	cmp	QWORD PTR -32[rbp], 16
	jne	.L8
	mov	rcx, QWORD PTR -72[rbp]
	movabs	rdx, 811296384146066817
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 42
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	movabs	rdx, 100000000000000
	imul	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	cmp	rax, 54
	je	.L9
	mov	rcx, QWORD PTR -72[rbp]
	movabs	rdx, 811296384146066817
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 42
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	movabs	rdx, 100000000000000
	imul	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	cmp	rax, 55
	jne	.L8
.L9:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L8:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.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	"68888541.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Entrez le numero du compte\012> \000"
	.align	2
.LC1:
	.ascii	"%ld\000"
	.align	2
.LC2:
	.ascii	"\012La longueur du numero de carte est de %ld\000"
	.align	2
.LC3:
	.ascii	"\012\012La somme finale est de %ld\012\000"
	.align	2
.LC4:
	.ascii	"\012Carte non correcte\000"
	.align	2
.LC5:
	.ascii	"\012Carte correcte\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.global	__aeabi_idivmod
	.align	2
.LC6:
	.ascii	"\012Il s'agit d'une carte Visa\000"
	.align	2
.LC7:
	.ascii	"\012Il s'agit d'une MasterCard\000"
	.align	2
.LC8:
	.ascii	"\012Il s'agit d'une autre carte\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, .L12+4
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-20]
	ldr	r0, .L12+12
	bl	printf
	b	.L2
.L4:
	ldr	r2, [fp, #-36]
	ldr	r3, .L12+16
	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]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r3, .L12+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-24]
	ldr	r1, .L12+16
	smull	r0, r1, r3, r1
	asr	r1, r1, #2
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r2, .L12+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L4
	ldr	r1, [fp, #-28]
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L12+12
	bl	printf
	ldr	r1, [fp, #-28]
	ldr	r3, .L12+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L5
	ldr	r0, .L12+24
	bl	printf
	b	.L6
.L5:
	ldr	r0, .L12+28
	bl	printf
	ldr	r3, [fp, #-20]
	cmp	r3, #12
	ble	.L7
	ldr	r3, [fp, #-20]
	cmp	r3, #16
	bgt	.L7
	ldr	r4, [fp, #-40]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L12+32
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #4
	bne	.L7
	ldr	r0, .L12+36
	bl	printf
	b	.L6
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #16
	bne	.L8
	ldr	r1, [fp, #-40]
	mov	r3, #1073741825
	smull	r2, r3, r1, r3
	asr	r2, r3, #29
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #31
	sub	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #54
	beq	.L9
	ldr	r1, [fp, #-40]
	mov	r3, #1073741825
	smull	r2, r3, r1, r3
	asr	r2, r3, #29
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #31
	sub	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #55
	bne	.L8
.L9:
	ldr	r0, .L12+40
	bl	printf
	b	.L6
.L8:
	ldr	r0, .L12+44
	bl	printf
.L6:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1717986919
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1076101120
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
