	.file	"459058.c"
	.intel_syntax noprefix
	.text
	.globl	strtoimax
	.type	strtoimax, @function
strtoimax:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	QWORD PTR -56[rbp], rsi
	mov	r12d, edx
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rbx
.L2:
	test	r12d, r12d
	js	.L3
	cmp	r12d, 1
	je	.L3
	cmp	r12d, 36
	jle	.L6
.L3:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 33
	mov	eax, 0
	jmp	.L5
.L7:
	add	rbx, 1
.L6:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L7
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 45
	sete	al
	movzx	eax, al
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L8
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 43
	jne	.L9
.L8:
	add	rbx, 1
.L9:
	test	r12d, r12d
	jne	.L10
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 48
	jne	.L11
	lea	rax, 1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L12
	lea	rax, 1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	jne	.L13
.L12:
	mov	r12d, 16
	jmp	.L10
.L13:
	mov	r12d, 8
	jmp	.L10
.L11:
	mov	r12d, 10
.L10:
	cmp	r12d, 16
	jne	.L15
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 48
	jne	.L15
	lea	rax, 1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L16
	lea	rax, 1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	jne	.L15
.L16:
	add	rbx, 2
.L15:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L17
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 48
	jmp	.L18
.L17:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L19
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 55
	jmp	.L18
.L19:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 512
	test	eax, eax
	je	.L21
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 87
	jmp	.L18
.L21:
	mov	eax, -1
.L18:
	mov	r14d, eax
	add	rbx, 1
	test	r14d, r14d
	js	.L23
	cmp	r14d, r12d
	jl	.L24
.L23:
	mov	eax, 0
	jmp	.L5
.L24:
	movsx	r13, r14d
	mov	DWORD PTR -40[rbp], 0
	jmp	.L25
.L36:
	movsx	rcx, r12d
	movabs	rax, 9223372036854775807
	cqo
	idiv	rcx
	add	rax, 2
	cmp	r13, rax
	jbe	.L26
	mov	DWORD PTR -40[rbp], 1
	jmp	.L27
.L26:
	movsx	rax, r12d
	mov	rdx, r13
	imul	rdx, rax
	movsx	rax, r14d
	lea	r13, [rdx+rax]
.L27:
	add	rbx, 1
.L25:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L28
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 48
	jmp	.L29
.L28:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L30
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 55
	jmp	.L29
.L30:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 512
	test	eax, eax
	je	.L32
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 87
	jmp	.L29
.L32:
	mov	eax, -1
.L29:
	mov	r14d, eax
	test	r14d, r14d
	js	.L34
	cmp	r14d, r12d
	jge	.L34
	mov	eax, 1
	jmp	.L35
.L34:
	mov	eax, 0
.L35:
	test	eax, eax
	jne	.L36
	cmp	QWORD PTR -56[rbp], 0
	je	.L37
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rbx
.L37:
	cmp	DWORD PTR -36[rbp], 0
	je	.L38
	movabs	rax, -9223372036854775808
	cmp	r13, rax
	jbe	.L39
	mov	DWORD PTR -40[rbp], 1
	jmp	.L39
.L38:
	mov	rax, r13
	test	rax, rax
	jns	.L39
	mov	DWORD PTR -40[rbp], 1
.L39:
	cmp	DWORD PTR -40[rbp], 0
	je	.L40
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	cmp	DWORD PTR -36[rbp], 0
	je	.L41
	movabs	rax, -9223372036854775808
	jmp	.L5
.L41:
	movabs	rax, 9223372036854775807
	jmp	.L5
.L40:
	cmp	DWORD PTR -36[rbp], 0
	je	.L43
	mov	rax, r13
	neg	rax
	jmp	.L5
.L43:
	mov	rax, r13
.L5:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strtoimax, .-strtoimax
	.globl	strtoll
	.set	strtoll,strtoimax
	.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	"459058.c"
	.text
	.global	__aeabi_ldivmod
	.align	2
	.global	strtoimax
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtoimax, %function
strtoimax:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r4, r0
	str	r1, [fp, #-48]
	mov	r5, r2
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-48]
	str	r4, [r3]
.L2:
	cmp	r5, #0
	blt	.L3
	cmp	r5, #1
	beq	.L3
	cmp	r5, #36
	ble	.L6
.L3:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #33
	str	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	b	.L5
.L7:
	add	r4, r4, #1
.L6:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L7
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #45
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L8
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L9
.L8:
	add	r4, r4, #1
.L9:
	cmp	r5, #0
	bne	.L10
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L11
	add	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L12
	add	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L13
.L12:
	mov	r5, #16
	b	.L10
.L13:
	mov	r5, #8
	b	.L10
.L11:
	mov	r5, #10
.L10:
	cmp	r5, #16
	bne	.L15
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L15
	add	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L16
	add	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L15
.L16:
	add	r4, r4, #2
.L15:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L17
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L18
.L17:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L19
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #55
	b	.L18
.L19:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L21
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #87
	b	.L18
.L21:
	mvn	r3, #0
.L18:
	mov	r8, r3
	add	r4, r4, #1
	cmp	r8, #0
	blt	.L23
	cmp	r8, r5
	blt	.L24
.L23:
	mov	r2, #0
	mov	r3, #0
	b	.L5
.L24:
	mov	r6, r8
	asr	r7, r6, #31
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L25
.L36:
	mov	r2, r5
	asr	r3, r2, #31
	mvn	r0, #0
	mvn	r1, #-2147483648
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	adds	r9, r2, #2
	adc	r10, r3, #0
	mov	r2, r9
	mov	r3, r10
	cmp	r7, r3
	cmpeq	r6, r2
	bls	.L26
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L27
.L26:
	mov	r0, r5
	asr	r1, r0, #31
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	ip, r2, r3
	umull	r2, r3, r6, r0
	add	r1, ip, r3
	mov	r3, r1
	mov	r0, r8
	asr	r1, r0, #31
	adds	r6, r2, r0
	adc	r7, r3, r1
.L27:
	add	r4, r4, #1
.L25:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L28
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L29
.L28:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L30
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #55
	b	.L29
.L30:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L32
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #87
	b	.L29
.L32:
	mvn	r3, #0
.L29:
	mov	r8, r3
	cmp	r8, #0
	blt	.L34
	cmp	r8, r5
	bge	.L34
	mov	r3, #1
	b	.L35
.L34:
	mov	r3, #0
.L35:
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-48]
	str	r4, [r3]
.L37:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L38
	cmp	r7, #-2147483648
	cmpeq	r6, #0
	bls	.L39
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L39
.L38:
	mov	r2, r6
	mov	r3, r7
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L39
	mov	r3, #1
	str	r3, [fp, #-44]
.L39:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L40
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L41
	mov	r2, #0
	mov	r3, #-2147483648
	b	.L5
.L41:
	mvn	r2, #0
	mvn	r3, #-2147483648
	b	.L5
.L40:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L43
	rsbs	r2, r6, #0
	rsc	r3, r7, #0
	b	.L5
.L43:
	mov	r2, r6
	mov	r3, r7
.L5:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	strtoimax, .-strtoimax
	.global	strtoll
	.set	strtoll,strtoimax
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
