	.file	"extr_isn.c_ean2isn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"978"
.LC1:
	.string	"977"
.LC2:
	.string	"9790"
.LC3:
	.string	"979"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"cannot cast EAN13(%s) to %s for number: \"%s\""
	.align 8
.LC5:
	.string	"cannot cast %s to %s for number: \"%s\""
	.align 8
.LC6:
	.string	"value \"%s\" is out of range for %s type"
	.text
	.p2align 4
	.type	ean2isn, @function
ean2isn:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, esi
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12d, edi
	push	rbx
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 104
	mov	r8d, DWORD PTR INVALID[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAXEAN13LEN[rip]
	mov	rsi, rsp
	add	eax, 1
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L43:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L43
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L44
.L4:
	mov	ecx, r12d
	mov	edi, 1316134911
	mov	DWORD PTR -136[rbp], r8d
	mov	r15, rsp
	sar	ecx
	mov	DWORD PTR -132[rbp], ecx
	call	UINT64CONST@PLT
	mov	ecx, DWORD PTR -132[rbp]
	mov	r8d, DWORD PTR -136[rbp]
	cmp	eax, ecx
	jl	.L45
	mov	BYTE PTR 13[rsp], 0
	lea	rsi, 13[rsp]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	rax, ecx
	mov	edi, ecx
	sub	rsi, 1
	imul	rax, rax, 1717986919
	sar	edi, 31
	sar	rax, 34
	sub	eax, edi
	mov	edi, eax
	lea	eax, [rax+rax*4]
	add	eax, eax
	sub	ecx, eax
	mov	eax, ecx
	mov	ecx, edi
	add	eax, 48
	mov	BYTE PTR [rsi], al
	mov	eax, edx
	add	edx, 1
	test	edi, edi
	je	.L46
	cmp	edx, 13
	jne	.L12
.L13:
	mov	edx, 3
	mov	rsi, r15
	lea	rdi, .LC0[rip]
	call	strncmp@PLT
	mov	edx, DWORD PTR ISBN[rip]
	test	rax, rax
	jne	.L47
.L14:
	cmp	DWORD PTR ANY[rip], ebx
	je	.L19
	mov	eax, DWORD PTR EAN13[rip]
	cmp	eax, ebx
	je	.L19
	cmp	edx, ebx
	jne	.L48
.L19:
	mov	DWORD PTR 0[r13], r12d
	mov	eax, 1
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L49
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	.cfi_restore_state
	test	r14d, r14d
	je	.L6
.L41:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rcx, rsi
	cmp	eax, 12
	je	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	sub	rcx, 1
	mov	BYTE PTR [rcx], 48
	mov	eax, ecx
	not	eax
	add	eax, edx
	add	eax, esi
	cmp	eax, 11
	jbe	.L9
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L47:
	mov	edx, 3
	mov	rsi, r15
	lea	rdi, .LC1[rip]
	call	strncmp@PLT
	mov	edx, DWORD PTR ISSN[rip]
	test	rax, rax
	je	.L14
	mov	edx, 4
	mov	rsi, r15
	lea	rdi, .LC2[rip]
	call	strncmp@PLT
	mov	edx, DWORD PTR ISMN[rip]
	test	rax, rax
	je	.L14
	mov	edx, 3
	mov	rsi, r15
	lea	rdi, .LC3[rip]
	call	strncmp@PLT
	mov	edx, DWORD PTR ISBN[rip]
	test	rax, rax
	je	.L14
	cmp	BYTE PTR [r15], 48
	mov	edx, DWORD PTR EAN13[rip]
	jne	.L14
	mov	edx, DWORD PTR UPC[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L44:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L48:
	test	r14d, r14d
	jne	.L41
	mov	edi, DWORD PTR ERRCODE_INVALID_TEXT_REPRESENTATION[rip]
	mov	ebx, ebx
	mov	r12d, edx
	cmp	edx, eax
	je	.L22
	call	errcode@PLT
	mov	rax, QWORD PTR isn_names[rip]
	mov	rcx, r15
	lea	rdi, .LC4[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	movsx	rsi, DWORD PTR [rax+r12*4]
.L40:
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR EAN13_FORMAT[rip]
	lea	r12, -128[rbp]
	mov	esi, 64
	mov	DWORD PTR -132[rbp], r8d
	mov	rdi, r12
	call	snprintf@PLT
	mov	edi, DWORD PTR ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE[rip]
	call	errcode@PLT
	mov	r8d, DWORD PTR -132[rbp]
	mov	rsi, r12
	mov	rax, QWORD PTR isn_names[rip]
	lea	rdi, .LC6[rip]
	mov	edx, DWORD PTR [rax+r8*4]
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	xor	eax, eax
	jmp	.L1
.L22:
	call	errcode@PLT
	mov	rax, QWORD PTR isn_names[rip]
	mov	rcx, r15
	lea	rdi, .LC5[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	movsx	rsi, DWORD PTR [rax+r12*4]
	jmp	.L40
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ean2isn, .-ean2isn
	.comm	isn_names,8,8
	.comm	UPC,4,4
	.comm	MAXEAN13LEN,4,4
	.comm	ISSN,4,4
	.comm	ISMN,4,4
	.comm	ISBN,4,4
	.comm	INVALID,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,4
	.comm	ERRCODE_INVALID_TEXT_REPRESENTATION,4,4
	.comm	EAN13_FORMAT,8,8
	.comm	EAN13,4,4
	.comm	ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.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:

	.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_isn.c_ean2isn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"9790\000"
	.align	2
.LC1:
	.ascii	"cannot cast EAN13(%s) to %s for number: \"%s\"\000"
	.align	2
.LC2:
	.ascii	"cannot cast %s to %s for number: \"%s\"\000"
	.align	2
.LC3:
	.ascii	"value \"%s\" is out of range for %s type\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ean2isn, %function
ean2isn:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #72
	ldr	ip, .L46
	ldr	lr, .L46+4
	ldr	ip, [ip]
	mov	r5, r3
	add	ip, ip, #8
	ldr	r3, .L46+8
	bic	ip, ip, #7
	mov	r7, r0
	sub	sp, sp, ip
	ldr	r0, .L46+12
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r4, r1
	mov	r6, r2
	ldr	r9, [lr]
	bl	UINT64CONST
	asr	r3, r7, #1
	cmp	r0, r3
	blt	.L40
	mov	r1, #0
	mov	r8, sp
	ldr	r0, .L46+16
	mov	r2, r1
	strb	r1, [sp, #13]
	add	r1, sp, #13
.L10:
	smull	ip, lr, r0, r3
	asr	ip, r3, #31
	rsb	ip, ip, lr, asr #2
	mov	lr, ip
	add	ip, ip, ip, lsl #2
	sub	ip, r3, ip, lsl #1
	add	ip, ip, #48
	subs	r3, lr, #0
	strb	ip, [r1, #-1]!
	mov	ip, r2
	add	r2, r2, #1
	beq	.L41
	cmp	r2, #13
	bne	.L10
.L11:
	ldrb	r9, [r8]	@ zero_extendqisi2
	cmp	r9, #57
	beq	.L42
.L14:
	mov	r2, #4
	mov	r1, r8
	ldr	r0, .L46+20
	bl	strncmp
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L46+24
	ldr	r9, [r3]
.L12:
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L18
	ldr	r3, .L46+32
	ldr	r3, [r3]
	cmp	r3, r5
	cmpne	r9, r5
	bne	.L43
.L18:
	mov	r0, #1
	str	r7, [r6]
	b	.L1
.L42:
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	cmp	r3, #55
	beq	.L44
.L24:
	cmp	r9, #57
	bne	.L14
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	cmp	r3, #55
	bne	.L14
	ldrb	r3, [r8, #2]	@ zero_extendqisi2
	cmp	r3, #55
	bne	.L14
	ldr	r3, .L46+36
	ldr	r9, [r3]
	b	.L12
.L40:
	cmp	r4, #0
	beq	.L3
.L20:
	mov	r0, #0
.L1:
	ldr	r3, .L46+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L41:
	cmp	ip, #12
	movne	r0, r1
	movne	ip, #48
	beq	.L11
.L6:
	strb	ip, [r0, #-1]!
	mvn	r3, r0
	add	r3, r3, r2
	add	r3, r1, r3
	cmp	r3, #11
	bls	.L6
	ldrb	r9, [r8]	@ zero_extendqisi2
	cmp	r9, #57
	bne	.L14
	b	.L42
.L44:
	ldrb	r3, [r8, #2]	@ zero_extendqisi2
	cmp	r3, #56
	bne	.L24
.L8:
	ldr	r3, .L46+40
	ldr	r9, [r3]
	b	.L12
.L43:
	cmp	r4, #0
	bne	.L20
	ldr	r1, .L46+44
	ldr	r2, .L46+48
	cmp	r9, r3
	ldr	r6, [r1]
	ldr	r0, [r2]
	beq	.L21
	bl	errcode
	mov	r3, r8
	ldr	r2, .L46+52
	ldr	r0, .L46+56
	ldr	r1, [r2]
.L38:
	ldr	r2, [r1, r5, lsl #2]
	ldr	r1, [r1, r9, lsl #2]
	bl	errmsg
	mov	r1, r0
	mov	r0, r6
	bl	ereport
	mov	r0, r4
	b	.L1
.L3:
	ldr	r2, .L46+60
	mov	r1, #64
	ldr	r2, [r2]
	sub	r0, fp, #96
	bl	snprintf
	ldr	r2, .L46+64
	ldr	r3, .L46+44
	ldr	r0, [r2]
	ldr	r5, [r3]
	bl	errcode
	ldr	r3, .L46+52
	sub	r1, fp, #96
	ldr	r3, [r3]
	ldr	r0, .L46+68
	ldr	r2, [r3, r9, lsl #2]
	bl	errmsg
	mov	r1, r0
	mov	r0, r5
	bl	ereport
	mov	r0, r4
	b	.L1
.L15:
	cmp	r9, #57
	bne	.L25
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	cmp	r3, #55
	bne	.L25
	ldrb	r3, [r8, #2]	@ zero_extendqisi2
	cmp	r3, #57
	beq	.L8
.L25:
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, #48
	ldreq	r3, .L46+72
	ldrne	r3, .L46+32
	ldr	r9, [r3]
	b	.L12
.L21:
	bl	errcode
	ldr	r2, .L46+52
	mov	r3, r8
	ldr	r1, [r2]
	ldr	r0, .L46+76
	b	.L38
.L45:
	bl	__stack_chk_fail
.L47:
	.align	2
.L46:
	.word	MAXEAN13LEN
	.word	INVALID
	.word	.LC4
	.word	1316134911
	.word	1717986919
	.word	.LC0
	.word	ISMN
	.word	ANY
	.word	EAN13
	.word	ISSN
	.word	ISBN
	.word	ERROR
	.word	ERRCODE_INVALID_TEXT_REPRESENTATION
	.word	isn_names
	.word	.LC1
	.word	EAN13_FORMAT
	.word	ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.word	.LC3
	.word	UPC
	.word	.LC2
	.size	ean2isn, .-ean2isn
	.comm	isn_names,4,4
	.comm	UPC,4,4
	.comm	MAXEAN13LEN,4,4
	.comm	ISSN,4,4
	.comm	ISMN,4,4
	.comm	ISBN,4,4
	.comm	INVALID,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,4
	.comm	ERRCODE_INVALID_TEXT_REPRESENTATION,4,4
	.comm	EAN13_FORMAT,4,4
	.comm	EAN13,4,4
	.comm	ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
