	.file	"479551.c"
	.intel_syntax noprefix
	.text
	.globl	strtoimax
	.type	strtoimax, @function
strtoimax:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
.L2:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -40[rbp], eax
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L2
	cmp	DWORD PTR -40[rbp], 45
	jne	.L3
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -40[rbp], eax
	jmp	.L4
.L3:
	mov	DWORD PTR -36[rbp], 0
	cmp	DWORD PTR -40[rbp], 43
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -40[rbp], eax
.L4:
	cmp	DWORD PTR -68[rbp], 0
	je	.L5
	cmp	DWORD PTR -68[rbp], 16
	jne	.L6
.L5:
	cmp	DWORD PTR -40[rbp], 48
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L6
.L7:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -40[rbp], eax
	add	QWORD PTR -24[rbp], 2
	mov	DWORD PTR -68[rbp], 16
.L6:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L8
	cmp	DWORD PTR -40[rbp], 48
	jne	.L9
	mov	eax, 8
	jmp	.L10
.L9:
	mov	eax, 10
.L10:
	mov	DWORD PTR -68[rbp], eax
.L8:
	cmp	DWORD PTR -36[rbp], 0
	je	.L11
	movabs	rax, -9223372036854775808
	jmp	.L12
.L11:
	movabs	rax, 9223372036854775807
.L12:
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -8[rbp]
	cqo
	idiv	rsi
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -36[rbp], 0
	je	.L13
	cmp	DWORD PTR -28[rbp], 0
	jle	.L14
	mov	eax, DWORD PTR -68[rbp]
	sub	DWORD PTR -28[rbp], eax
	add	QWORD PTR -8[rbp], 1
.L14:
	neg	DWORD PTR -28[rbp]
.L13:
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], 0
.L30:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L15
	sub	DWORD PTR -40[rbp], 48
	jmp	.L16
.L15:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L35
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L18
	mov	eax, 55
	jmp	.L19
.L18:
	mov	eax, 87
.L19:
	sub	DWORD PTR -40[rbp], eax
.L16:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jge	.L36
	cmp	DWORD PTR -32[rbp], 0
	js	.L37
	cmp	DWORD PTR -36[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jl	.L25
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L26
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L26
.L25:
	mov	DWORD PTR -32[rbp], -1
	movabs	rax, -9223372036854775808
	mov	QWORD PTR -16[rbp], rax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	jmp	.L23
.L26:
	mov	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	imul	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sub	QWORD PTR -16[rbp], rax
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jg	.L28
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L29
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L29
.L28:
	mov	DWORD PTR -32[rbp], -1
	movabs	rax, 9223372036854775807
	mov	QWORD PTR -16[rbp], rax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	jmp	.L23
.L29:
	mov	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	imul	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	QWORD PTR -16[rbp], rax
	jmp	.L23
.L37:
	nop
.L23:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -40[rbp], eax
	jmp	.L30
.L35:
	nop
	jmp	.L20
.L36:
	nop
.L20:
	cmp	QWORD PTR -64[rbp], 0
	je	.L31
	cmp	DWORD PTR -32[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -56[rbp]
.L33:
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
.L31:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strtoimax, .-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	"479551.c"
	.text
	.global	__aeabi_ldivmod
	.align	2
	.global	strtoimax
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtoimax, %function
strtoimax:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-64]
.L2:
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	str	r2, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-60]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-60]
	cmp	r3, #45
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	str	r2, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-60]
	b	.L4
.L3:
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-60]
	cmp	r3, #43
	bne	.L4
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	str	r2, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-60]
.L4:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-80]
	cmp	r3, #16
	bne	.L6
.L5:
	ldr	r3, [fp, #-60]
	cmp	r3, #48
	bne	.L6
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L7
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L6
.L7:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	str	r3, [fp, #-64]
	mov	r3, #16
	str	r3, [fp, #-80]
.L6:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-60]
	cmp	r3, #48
	bne	.L9
	mov	r3, #8
	b	.L10
.L9:
	mov	r3, #10
.L10:
	str	r3, [fp, #-80]
.L8:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L11
	mov	r2, #0
	mov	r3, #-2147483648
	b	.L12
.L11:
	mvn	r2, #0
	mvn	r3, #-2147483648
.L12:
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-80]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r3, r2
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-80]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L14
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
.L14:
	ldr	r3, [fp, #-48]
	rsb	r3, r3, #0
	str	r3, [fp, #-48]
.L13:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
.L30:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-60]
	sub	r3, r3, #48
	str	r3, [fp, #-60]
	b	.L16
.L15:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L35
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L18
	mov	r3, #55
	b	.L19
.L18:
	mov	r3, #87
.L19:
	ldr	r2, [fp, #-60]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
.L16:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bge	.L36
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L37
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L24
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L25
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L26
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L26
.L25:
	mvn	r3, #0
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r3, #-2147483648
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	b	.L23
.L26:
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-40]
	mul	r2, r0, r3
	ldr	r3, [fp, #-44]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-44]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	b	.L23
.L24:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L28
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L29
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L29
.L28:
	mvn	r3, #0
	str	r3, [fp, #-52]
	mvn	r2, #0
	mvn	r3, #-2147483648
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	b	.L23
.L29:
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-40]
	mul	r2, r0, r3
	ldr	r3, [fp, #-44]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-44]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
	b	.L23
.L37:
	nop
.L23:
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	str	r2, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-60]
	b	.L30
.L35:
	nop
	b	.L20
.L36:
	nop
.L20:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	b	.L33
.L32:
	ldr	r3, [fp, #-72]
.L33:
	ldr	r2, [fp, #-76]
	str	r3, [r2]
.L31:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	strtoimax, .-strtoimax
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
