Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <inttypes.h>

uint32_t N, A, B;
uint32_t X[114514];

int main(void) {
	uint32_t i;
	uint64_t answer = 0;
	if (scanf("%" SCNu32 "%" SCNu32 "%" SCNu32, &N, &A, &B) != 3) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%"  SCNu32, &X[i]) != 1) return 1;
	}
	for (i = 1; i < N; i++) {
		uint64_t c1 = (uint64_t)A * (X[i] - X[i - 1]);
		uint64_t c2 = B;
		answer += c1 <= c2 ? c1 : c2;
	}
	printf("%" PRIu64 "\n", answer);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u%u%u"
.LC1:
	.string	"%u"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	B(%rip), %rcx
	leaq	A(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	je	.L4
	xorl	%ebx, %ebx
	leaq	X(%rip), %rbp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %edx
	addl	$1, %ebx
	cmpl	%ebx, %edx
	jbe	.L17
.L6:
	movl	%ebx, %eax
	movq	%r12, %rdi
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	cmpl	$1, %edx
	jbe	.L4
	movl	A(%rip), %r9d
	movl	B(%rip), %esi
	leal	-1(%rdx), %r10d
	cmpl	$3, %edx
	jbe	.L11
	leaq	-8+X(%rip), %rbx
	movl	0(%rbp), %r12d
	movl	$3, %edi
	xorl	%r8d, %r8d
	leaq	4(%rbx), %r11
.L8:
	movl	(%rbx,%rdi,4), %r13d
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	(%r11,%rdi,4), %r12d
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	movq	%rax, %rcx
	movl	%r12d, %eax
	subl	%r13d, %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addq	%rcx, %rax
	movl	%edi, %ecx
	addq	$2, %rdi
	addq	%rax, %r8
	leal	-1(%rdi), %eax
	cmpl	%eax, %r10d
	ja	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	leal	-1(%rcx), %edi
	movl	0(%rbp,%rax,4), %eax
	subl	0(%rbp,%rdi,4), %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addl	$1, %ecx
	addq	%rax, %r8
	cmpl	%ecx, %edx
	ja	.L9
.L10:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	xorl	%r8d, %r8d
	jmp	.L10
.L11:
	xorl	%r8d, %r8d
	movl	$1, %ecx
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 458056
X:
	.zero	458056
	.globl	B
	.align 4
	.type	B, @object
	.size	B, 4
B:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u%u%u"
.LC1:
	.string	"%u"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	B(%rip), %rcx
	leaq	A(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	je	.L4
	xorl	%ebx, %ebx
	leaq	X(%rip), %rbp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %edx
	addl	$1, %ebx
	cmpl	%ebx, %edx
	jbe	.L17
.L6:
	movl	%ebx, %eax
	movq	%r12, %rdi
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	cmpl	$1, %edx
	jbe	.L4
	movl	A(%rip), %r9d
	movl	B(%rip), %esi
	leal	-1(%rdx), %r10d
	cmpl	$3, %edx
	jbe	.L11
	leaq	-8+X(%rip), %rbx
	movl	0(%rbp), %r12d
	movl	$3, %edi
	xorl	%r8d, %r8d
	leaq	4(%rbx), %r11
.L8:
	movl	(%rbx,%rdi,4), %r13d
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	(%r11,%rdi,4), %r12d
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	movq	%rax, %rcx
	movl	%r12d, %eax
	subl	%r13d, %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addq	%rcx, %rax
	movl	%edi, %ecx
	addq	$2, %rdi
	addq	%rax, %r8
	leal	-1(%rdi), %eax
	cmpl	%eax, %r10d
	ja	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	leal	-1(%rcx), %edi
	movl	0(%rbp,%rax,4), %eax
	subl	0(%rbp,%rdi,4), %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addl	$1, %ecx
	addq	%rax, %r8
	cmpl	%ecx, %edx
	ja	.L9
.L10:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	xorl	%r8d, %r8d
	jmp	.L10
.L11:
	xorl	%r8d, %r8d
	movl	$1, %ecx
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 458056
X:
	.zero	458056
	.globl	B
	.align 4
	.type	B, @object
	.size	B, 4
B:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u%u%u"
.LC1:
	.string	"%u"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	B(%rip), %rcx
	leaq	A(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	je	.L4
	xorl	%ebx, %ebx
	leaq	X(%rip), %rbp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %edx
	addl	$1, %ebx
	cmpl	%ebx, %edx
	jbe	.L17
.L6:
	movl	%ebx, %eax
	movq	%r12, %rdi
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	cmpl	$1, %edx
	jbe	.L4
	movl	A(%rip), %r9d
	movl	B(%rip), %esi
	leal	-1(%rdx), %r10d
	cmpl	$3, %edx
	jbe	.L11
	leaq	-8+X(%rip), %rbx
	movl	0(%rbp), %r12d
	movl	$3, %edi
	xorl	%r8d, %r8d
	leaq	4(%rbx), %r11
.L8:
	movl	(%rbx,%rdi,4), %r13d
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	(%r11,%rdi,4), %r12d
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	movq	%rax, %rcx
	movl	%r12d, %eax
	subl	%r13d, %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addq	%rcx, %rax
	movl	%edi, %ecx
	addq	$2, %rdi
	addq	%rax, %r8
	leal	-1(%rdi), %eax
	cmpl	%eax, %r10d
	ja	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	leal	-1(%rcx), %edi
	movl	0(%rbp,%rax,4), %eax
	subl	0(%rbp,%rdi,4), %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addl	$1, %ecx
	addq	%rax, %r8
	cmpl	%ecx, %edx
	ja	.L9
.L10:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	xorl	%r8d, %r8d
	jmp	.L10
.L11:
	xorl	%r8d, %r8d
	movl	$1, %ecx
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 458056
X:
	.zero	458056
	.globl	B
	.align 4
	.type	B, @object
	.size	B, 4
B:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
```c
#include <stdio.h>
#include <inttypes.h>

uint32_t N, A, B;
uint32_t X[114514];

int main(void) {
	uint32_t i;
	uint64_t answer = 0;
	if (scanf("%" SCNu32 "%" SCNu32 "%" SCNu32, &N, &A, &B) != 3) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%"  SCNu32, &X[i]) != 1) return 1;
	}
	for (i = 1; i < N; i++) {
		uint64_t c1 = (uint64_t)A * (X[i] - X[i - 1]);
		uint64_t c2 = B;
		answer += c1 <= c2 ? c1 : c2;
	}
	printf("%" PRIu64 "\n", answer);
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <inttypes.h>

uint32_t N, A, B;
uint32_t X[114514];

int main(void) {
	uint32_t i;
	uint64_t answer = 0;
	if (scanf("%" SCNu32 "%" SCNu32 "%" SCNu32, &N, &A, &B) != 3) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%"  SCNu32, &X[i]) != 1) return 1;
	}
	for (i = 1; i < N; i++) {
		uint64_t c1 = (uint64_t)A * (X[i] - X[i - 1]);
		uint64_t c2 = B;
		answer += c1 <= c2 ? c1 : c2;
	}
	printf("%" PRIu64 "\n", answer);
	return 0;
}
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

7 1 100
40 43 45 3 108 115 124
 7 1 2
24 35 40 26 72 99 103
 7 1 100
40 43 45 3 108 196 37
 7 1 100
40 67 45 3 146 196 37
 7 1 101
40 67 45 3 146 196 37
 7 2 101
40 67 45 3 146 196 37
 7 2 101
40 67 30 4 146 147 37
 7 2 101
40 105 30 4 146 147 37
 7 2 101
20 105 33 1 146 3 37
 7 2 101
20 19 33 1 146 3 37

221
 12
 393
 477
 481
 558
 460
 507
 573
 500

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <inttypes.h>

uint32_t N, A, B;
uint32_t X[114514];

int main(void) {
	uint32_t i;
	uint64_t answer = 0;
	if (scanf("%" SCNu32 "%" SCNu32 "%" SCNu32, &N, &A, &B) != 3) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%"  SCNu32, &X[i]) != 1) return 1;
	}
	for (i = 1; i < N; i++) {
		uint64_t c1 = (uint64_t)A * (X[i] - X[i - 1]);
		uint64_t c2 = B;
		answer += c1 <= c2 ? c1 : c2;
	}
	printf("%" PRIu64 "\n", answer);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u%u%u"
.LC1:
	.string	"%u"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	B(%rip), %rcx
	leaq	A(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	je	.L4
	xorl	%ebx, %ebx
	leaq	X(%rip), %rbp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %edx
	addl	$1, %ebx
	cmpl	%ebx, %edx
	jbe	.L17
.L6:
	movl	%ebx, %eax
	movq	%r12, %rdi
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	cmpl	$1, %edx
	jbe	.L4
	movl	A(%rip), %r9d
	movl	B(%rip), %esi
	leal	-1(%rdx), %r10d
	cmpl	$3, %edx
	jbe	.L11
	leaq	-8+X(%rip), %rbx
	movl	0(%rbp), %r12d
	movl	$3, %edi
	xorl	%r8d, %r8d
	leaq	4(%rbx), %r11
.L8:
	movl	(%rbx,%rdi,4), %r13d
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	(%r11,%rdi,4), %r12d
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	movq	%rax, %rcx
	movl	%r12d, %eax
	subl	%r13d, %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addq	%rcx, %rax
	movl	%edi, %ecx
	addq	$2, %rdi
	addq	%rax, %r8
	leal	-1(%rdi), %eax
	cmpl	%eax, %r10d
	ja	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	leal	-1(%rcx), %edi
	movl	0(%rbp,%rax,4), %eax
	subl	0(%rbp,%rdi,4), %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addl	$1, %ecx
	addq	%rax, %r8
	cmpl	%ecx, %edx
	ja	.L9
.L10:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	xorl	%r8d, %r8d
	jmp	.L10
.L11:
	xorl	%r8d, %r8d
	movl	$1, %ecx
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 458056
X:
	.zero	458056
	.globl	B
	.align 4
	.type	B, @object
	.size	B, 4
B:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u%u%u"
.LC1:
	.string	"%u"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	B(%rip), %rcx
	leaq	A(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	je	.L4
	xorl	%ebx, %ebx
	leaq	X(%rip), %rbp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %edx
	addl	$1, %ebx
	cmpl	%ebx, %edx
	jbe	.L17
.L6:
	movl	%ebx, %eax
	movq	%r12, %rdi
	leaq	0(%rbp,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	cmpl	$1, %edx
	jbe	.L4
	movl	A(%rip), %r9d
	movl	B(%rip), %esi
	leal	-1(%rdx), %r10d
	cmpl	$3, %edx
	jbe	.L11
	leaq	-8+X(%rip), %rbx
	movl	0(%rbp), %r12d
	movl	$3, %edi
	xorl	%r8d, %r8d
	leaq	4(%rbx), %r11
.L8:
	movl	(%rbx,%rdi,4), %r13d
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	(%r11,%rdi,4), %r12d
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	movq	%rax, %rcx
	movl	%r12d, %eax
	subl	%r13d, %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addq	%rcx, %rax
	movl	%edi, %ecx
	addq	$2, %rdi
	addq	%rax, %r8
	leal	-1(%rdi), %eax
	cmpl	%eax, %r10d
	ja	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	leal	-1(%rcx), %edi
	movl	0(%rbp,%rax,4), %eax
	subl	0(%rbp,%rdi,4), %eax
	imulq	%r9, %rax
	cmpq	%rsi, %rax
	cmova	%rsi, %rax
	addl	$1, %ecx
	addq	%rax, %r8
	cmpl	%ecx, %edx
	ja	.L9
.L10:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	xorl	%r8d, %r8d
	jmp	.L10
.L11:
	xorl	%r8d, %r8d
	movl	$1, %ecx
	jmp	.L9
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	X
	.bss
	.align 32
	.type	X, @object
	.size	X, 458056
X:
	.zero	458056
	.globl	B
	.align 4
	.type	B, @object
	.size	B, 4
B:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```