	.file	"extr_int8.c_scanint8.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bigint"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"value \"%s\" is out of range for type %s"
	.align 8
.LC2:
	.string	"invalid input syntax for type %s: \"%s\""
	.text
	.p2align 4
	.globl	scanint8
	.type	scanint8, @function
scanint8:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r12
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	movzx	edi, BYTE PTR [rdi]
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], 0
	test	dil, dil
	jne	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	je	.L3
.L2:
	call	isspace@PLT
	test	rax, rax
	jne	.L4
	movzx	edi, BYTE PTR [rbx]
	cmp	dil, 45
	jne	.L5
	movzx	edi, BYTE PTR 1[rbx]
	mov	r15d, 1
	add	rbx, 1
.L6:
	call	isdigit@PLT
	xor	edi, edi
	lea	rbp, 20[rsp]
	test	rax, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	call	isdigit@PLT
	test	rax, rax
	je	.L33
	mov	edi, DWORD PTR 20[rsp]
	movsx	eax, BYTE PTR [rbx]
	mov	rdx, rbp
	mov	esi, 10
	add	rbx, 1
	lea	r14d, -48[rax]
	call	pg_mul_s64_overflow@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
	mov	edi, DWORD PTR 20[rsp]
	mov	rdx, rbp
	mov	esi, r14d
	call	pg_sub_s64_overflow@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
.L8:
	movzx	edi, BYTE PTR [rbx]
	test	dil, dil
	jne	.L10
.L11:
	test	dil, dil
	setne	dil
	movzx	edi, dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR 20[rsp]
	test	r15d, r15d
	je	.L37
.L16:
	mov	rcx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rcx], eax
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	add	rbx, 1
.L33:
	movzx	edi, BYTE PTR [rbx]
	test	dil, dil
	je	.L11
	call	isspace@PLT
	test	rax, rax
	jne	.L15
	movzx	edi, BYTE PTR [rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	dil, 43
	jne	.L22
	movzx	edi, BYTE PTR 1[rbx]
	xor	r15d, r15d
	add	rbx, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	test	r13d, r13d
	je	.L38
.L35:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L39
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	edi, edi
	xor	r15d, r15d
	jmp	.L6
.L37:
	xor	edi, edi
	cmp	DWORD PTR PG_INT64_MIN[rip], eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L40
	.p2align 4,,10
	.p2align 3
.L9:
	test	r13d, r13d
	jne	.L35
	mov	edi, DWORD PTR ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE[rip]
	call	errcode@PLT
	lea	rdx, .LC0[rip]
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR ERRCODE_INVALID_TEXT_REPRESENTATION[rip]
	call	errcode@PLT
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
.L34:
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L35
.L40:
	mov	eax, DWORD PTR 20[rsp]
	neg	eax
	jmp	.L16
.L22:
	xor	r15d, r15d
	jmp	.L6
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scanint8, .-scanint8
	.comm	PG_INT64_MIN,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,4
	.comm	ERRCODE_INVALID_TEXT_REPRESENTATION,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_int8.c_scanint8.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bigint\000"
	.align	2
.LC1:
	.ascii	"value \"%s\" is out of range for type %s\000"
	.align	2
.LC2:
	.ascii	"invalid input syntax for type %s: \"%s\"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scanint8
	.syntax unified
	.arm
	.fpu softvfp
	.type	scanint8, %function
scanint8:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r7, r2
	ldr	r2, .L38
	sub	sp, sp, #12
	cmp	r0, r3
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r5, r1
	mov	r4, r6
	str	r3, [sp]
	bne	.L2
	b	.L3
.L4:
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L3
.L2:
	bl	isspace
	subs	r8, r0, #0
	bne	.L4
	ldrb	r0, [r4]	@ zero_extendqisi2
	cmp	r0, #45
	bne	.L5
	mov	r8, #1
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	add	r4, r4, r8
.L6:
	bl	isdigit
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L8
	b	.L7
.L10:
	bl	isdigit
	cmp	r0, #0
	beq	.L33
	ldrb	r3, [r4, #-1]	@ zero_extendqisi2
	mov	r2, sp
	mov	r1, #10
	ldr	r0, [sp]
	sub	r9, r3, #48
	bl	pg_mul_s64_overflow
	bl	unlikely
	cmp	r0, #0
	bne	.L9
	mov	r1, r9
	mov	r2, sp
	ldr	r0, [sp]
	bl	pg_sub_s64_overflow
	bl	unlikely
	cmp	r0, #0
	bne	.L9
.L8:
	ldrb	r0, [r4]	@ zero_extendqisi2
	mov	r9, r4
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L10
.L11:
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L7
	cmp	r8, #0
	ldr	r3, [sp]
	beq	.L34
.L16:
	mov	r0, #1
	str	r3, [r7]
	b	.L1
.L5:
	cmp	r0, #43
	ldrbeq	r0, [r4, #1]	@ zero_extendqisi2
	addeq	r4, r4, #1
	b	.L6
.L7:
	cmp	r5, #0
	beq	.L35
.L19:
	mov	r0, #0
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	mov	r0, #0
	mov	r8, r0
	b	.L6
.L34:
	ldr	r2, .L38+4
	ldr	r0, [r2]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L37
.L9:
	cmp	r5, #0
	bne	.L19
	ldr	r2, .L38+8
	ldr	r3, .L38+12
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	errcode
	mov	r1, r6
	ldr	r2, .L38+16
	ldr	r0, .L38+20
.L31:
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	mov	r0, r5
	b	.L1
.L33:
	ldrb	r0, [r9]	@ zero_extendqisi2
	cmp	r0, #0
	bne	.L12
	b	.L11
.L15:
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L11
.L12:
	bl	isspace
	cmp	r0, #0
	bne	.L15
	ldrb	r0, [r9]	@ zero_extendqisi2
	b	.L11
.L35:
	ldr	r2, .L38+24
	ldr	r3, .L38+12
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	errcode
	mov	r2, r6
	ldr	r1, .L38+16
	ldr	r0, .L38+28
	b	.L31
.L37:
	ldr	r3, [sp]
	rsb	r3, r3, #0
	b	.L16
.L36:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC3
	.word	PG_INT64_MIN
	.word	ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.word	ERROR
	.word	.LC0
	.word	.LC1
	.word	ERRCODE_INVALID_TEXT_REPRESENTATION
	.word	.LC2
	.size	scanint8, .-scanint8
	.comm	PG_INT64_MIN,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,4
	.comm	ERRCODE_INVALID_TEXT_REPRESENTATION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
