	.file	"813809.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" v[%d] = %d  "
.LC1:
	.string	"s1[%d] = %d  "
.LC2:
	.string	"s2[%d] = %d  "
	.text
	.globl	isbn_dv
	.type	isbn_dv, @function
isbn_dv:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -144[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -140[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -136[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -128[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -124[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -120[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -116[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -112[rbp], eax
	mov	DWORD PTR -156[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	edx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -156[rbp], 1
.L2:
	cmp	DWORD PTR -156[rbp], 8
	jle	.L3
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -152[rbp], 1
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -156[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	add	DWORD PTR -152[rbp], 1
	add	DWORD PTR -156[rbp], 1
.L4:
	cmp	DWORD PTR -156[rbp], 8
	jle	.L5
	mov	DWORD PTR -156[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -156[rbp], 1
.L6:
	cmp	DWORD PTR -156[rbp], 8
	jle	.L7
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -156[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	add	DWORD PTR -156[rbp], 1
.L8:
	cmp	DWORD PTR -156[rbp], 8
	jle	.L9
	mov	DWORD PTR -156[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -156[rbp], 1
.L10:
	cmp	DWORD PTR -156[rbp], 8
	jle	.L11
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 110
	cmp	eax, 10
	jbe	.L12
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 780903145
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, edx
	sub	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	jmp	.L13
.L12:
	mov	edx, 10
.L13:
	mov	DWORD PTR -148[rbp], edx
	mov	eax, DWORD PTR -148[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	isbn_dv, .-isbn_dv
	.section	.rodata
.LC3:
	.string	"%s"
.LC4:
	.string	"000000000"
.LC5:
	.string	"%s-X\n"
.LC6:
	.string	"%s-%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L19:
	lea	rax, -23[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -23[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L17
	lea	rax, -23[rbp]
	mov	rdi, rax
	call	isbn_dv
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 10
	jne	.L18
	lea	rax, -23[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L18:
	mov	edx, DWORD PTR -28[rbp]
	lea	rax, -23[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	lea	rax, -23[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"813809.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" v[%d] = %d  \000"
	.align	2
.LC1:
	.ascii	"s1[%d] = %d  \000"
	.align	2
.LC2:
	.ascii	"s2[%d] = %d  \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	isbn_dv
	.syntax unified
	.arm
	.fpu softvfp
	.type	isbn_dv, %function
isbn_dv:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-144]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-144]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-144]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-144]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-144]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-144]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-144]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L2
.L3:
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L2:
	ldr	r3, [fp, #-140]
	cmp	r3, #8
	ble	.L3
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1
	str	r3, [fp, #-140]
	b	.L4
.L5:
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-124]
	add	r2, r2, r3
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L4:
	ldr	r3, [fp, #-140]
	cmp	r3, #8
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L6
.L7:
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, .L16+8
	bl	printf
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L6:
	ldr	r3, [fp, #-140]
	cmp	r3, #8
	ble	.L7
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-140]
	b	.L8
.L9:
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	add	r2, r2, r3
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L8:
	ldr	r3, [fp, #-140]
	cmp	r3, #8
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L10
.L11:
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, .L16+12
	bl	printf
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L10:
	ldr	r3, [fp, #-140]
	cmp	r3, #8
	ble	.L11
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	sub	r3, r3, #110
	cmp	r3, #10
	bls	.L12
	ldr	r3, [fp, #-16]
	ldr	r2, .L16+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r1, r2, r3
	ldr	r3, .L16+20
	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
	b	.L13
.L12:
	mov	r2, #10
.L13:
	str	r2, [fp, #-132]
	ldr	r3, [fp, #-132]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	780903145
	.word	1717986919
	.size	isbn_dv, .-isbn_dv
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"000000000\000"
	.align	2
.LC6:
	.ascii	"%s-X\012\000"
	.align	2
.LC7:
	.ascii	"%s-%d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L21:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L24+4
	bl	__isoc99_scanf
	sub	r3, fp, #24
	ldr	r1, .L24+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #24
	mov	r0, r3
	bl	isbn_dv
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #10
	bne	.L20
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L24+12
	bl	printf
	b	.L19
.L20:
	sub	r3, fp, #24
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L24+16
	bl	printf
.L19:
	sub	r3, fp, #24
	ldr	r1, .L24+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
