	.file	"27747.c"
	.intel_syntax noprefix
	.text
	.globl	EINVAL
	.bss
	.align 4
	.type	EINVAL, @object
	.size	EINVAL, 4
EINVAL:
	.zero	4
	.globl	ERANGE
	.align 4
	.type	ERANGE, @object
	.size	ERANGE, 4
ERANGE:
	.zero	4
	.globl	INTMAX_MAX
	.align 4
	.type	INTMAX_MAX, @object
	.size	INTMAX_MAX, 4
INTMAX_MAX:
	.zero	4
	.globl	INTMAX_MIN
	.align 4
	.type	INTMAX_MIN, @object
	.size	INTMAX_MIN, 4
INTMAX_MIN:
	.zero	4
	.globl	errno
	.align 4
	.type	errno, @object
	.size	errno, 4
errno:
	.zero	4
	.text
	.globl	strtoimax_l
	.type	strtoimax_l, @function
strtoimax_l:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	FIX_LOCALE@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
.L2:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	movzx	eax, BYTE PTR -29[rbp]
	movzx	eax, al
	mov	edx, DWORD PTR -56[rbp]
	mov	esi, edx
	mov	edi, eax
	call	isspace_l@PLT
	test	rax, rax
	jne	.L2
	cmp	BYTE PTR -29[rbp], 45
	jne	.L3
	mov	DWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	jmp	.L4
.L3:
	mov	DWORD PTR -24[rbp], 0
	cmp	BYTE PTR -29[rbp], 43
	jne	.L4
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
.L4:
	cmp	DWORD PTR -52[rbp], 0
	je	.L5
	cmp	DWORD PTR -52[rbp], 16
	jne	.L6
.L5:
	cmp	BYTE PTR -29[rbp], 48
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L6
.L7:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L8
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L9
.L8:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L10
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 70
	jle	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 96
	jle	.L6
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 102
	jg	.L6
.L9:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -29[rbp], al
	add	QWORD PTR -8[rbp], 2
	mov	DWORD PTR -52[rbp], 16
.L6:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L11
	cmp	BYTE PTR -29[rbp], 48
	jne	.L12
	mov	eax, 8
	jmp	.L13
.L12:
	mov	eax, 10
.L13:
	mov	DWORD PTR -52[rbp], eax
.L11:
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -52[rbp], 1
	jle	.L37
	cmp	DWORD PTR -52[rbp], 36
	jg	.L37
	cmp	DWORD PTR -24[rbp], 0
	je	.L17
	mov	eax, DWORD PTR INTMAX_MIN[rip]
	neg	eax
	jmp	.L18
.L17:
	mov	eax, DWORD PTR INTMAX_MAX[rip]
.L18:
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -16[rbp]
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	DWORD PTR -16[rbp], eax
.L27:
	cmp	BYTE PTR -29[rbp], 47
	jle	.L19
	cmp	BYTE PTR -29[rbp], 57
	jg	.L19
	movzx	eax, BYTE PTR -29[rbp]
	sub	eax, 48
	mov	BYTE PTR -29[rbp], al
	jmp	.L20
.L19:
	cmp	BYTE PTR -29[rbp], 64
	jle	.L21
	cmp	BYTE PTR -29[rbp], 90
	jg	.L21
	movzx	eax, BYTE PTR -29[rbp]
	sub	eax, 55
	mov	BYTE PTR -29[rbp], al
	jmp	.L20
.L21:
	cmp	BYTE PTR -29[rbp], 96
	jle	.L22
	cmp	BYTE PTR -29[rbp], 122
	jg	.L22
	movzx	eax, BYTE PTR -29[rbp]
	sub	eax, 87
	mov	BYTE PTR -29[rbp], al
.L20:
	movsx	eax, BYTE PTR -29[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jle	.L38
	cmp	DWORD PTR -20[rbp], 0
	js	.L24
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jg	.L24
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L25
	movsx	eax, BYTE PTR -29[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L25
.L24:
	mov	DWORD PTR -20[rbp], -1
	jmp	.L26
.L25:
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -28[rbp], eax
	movsx	eax, BYTE PTR -29[rbp]
	add	DWORD PTR -28[rbp], eax
.L26:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	jmp	.L27
.L38:
	nop
.L22:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L28
	cmp	DWORD PTR -24[rbp], 0
	je	.L29
	mov	eax, DWORD PTR INTMAX_MIN[rip]
	jmp	.L30
.L29:
	mov	eax, DWORD PTR INTMAX_MAX[rip]
.L30:
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR ERANGE[rip]
	mov	DWORD PTR errno[rip], eax
	jmp	.L31
.L28:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L32
	jmp	.L16
.L37:
	nop
.L16:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR errno[rip], eax
	jmp	.L31
.L32:
	cmp	DWORD PTR -24[rbp], 0
	je	.L31
	neg	DWORD PTR -28[rbp]
.L31:
	cmp	QWORD PTR -48[rbp], 0
	je	.L33
	cmp	DWORD PTR -20[rbp], 0
	je	.L34
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -40[rbp]
.L35:
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
.L33:
	mov	eax, DWORD PTR -28[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strtoimax_l, .-strtoimax_l
	.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	"27747.c"
	.text
	.comm	EINVAL,4,4
	.comm	ERANGE,4,4
	.comm	INTMAX_MAX,4,4
	.comm	INTMAX_MIN,4,4
	.comm	errno,4,4
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.global	strtoimax_l
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtoimax_l, %function
strtoimax_l:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	FIX_LOCALE
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	isspace_l
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	b	.L4
.L3:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L4
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
.L4:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L6
.L5:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L6
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L7
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L6
.L7:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L9
.L8:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L10
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #70
	bls	.L9
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L6
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L6
.L9:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-28]
	mov	r3, #16
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L11
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L12
	mov	r3, #8
	b	.L13
.L12:
	mov	r3, #10
.L13:
	str	r3, [fp, #-48]
.L11:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	ble	.L37
	ldr	r3, [fp, #-48]
	cmp	r3, #36
	bgt	.L37
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L39
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L18
.L17:
	ldr	r3, .L39+4
	ldr	r3, [r3]
.L18:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-12]
.L27:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L19
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L19
	ldrb	r3, [fp, #-29]
	sub	r3, r3, #48
	strb	r3, [fp, #-29]
	b	.L20
.L19:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L21
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L21
	ldrb	r3, [fp, #-29]
	sub	r3, r3, #55
	strb	r3, [fp, #-29]
	b	.L20
.L21:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L22
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L22
	ldrb	r3, [fp, #-29]
	sub	r3, r3, #87
	strb	r3, [fp, #-29]
.L20:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L38
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L24
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bgt	.L24
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L25
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L25
.L24:
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L26
.L25:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	b	.L27
.L38:
	nop
.L22:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L28
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L39
	ldr	r3, [r3]
	b	.L30
.L29:
	ldr	r3, .L39+4
	ldr	r3, [r3]
.L30:
	str	r3, [fp, #-24]
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, .L39+12
	str	r3, [r2]
	b	.L31
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L32
	b	.L16
.L37:
	nop
.L16:
	ldr	r3, .L39+16
	ldr	r3, [r3]
	ldr	r2, .L39+12
	str	r3, [r2]
	b	.L31
.L32:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	b	.L35
.L34:
	ldr	r3, [fp, #-40]
.L35:
	ldr	r2, [fp, #-44]
	str	r3, [r2]
.L33:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	INTMAX_MIN
	.word	INTMAX_MAX
	.word	ERANGE
	.word	errno
	.word	EINVAL
	.size	strtoimax_l, .-strtoimax_l
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
