	.file	"686530.c"
	.intel_syntax noprefix
	.text
	.type	digitval, @function
digitval:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 47
	jle	.L2
	cmp	DWORD PTR -4[rbp], 57
	jg	.L2
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 48
	jmp	.L3
.L2:
	cmp	DWORD PTR -4[rbp], 64
	jle	.L4
	cmp	DWORD PTR -4[rbp], 90
	jg	.L4
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 55
	jmp	.L3
.L4:
	cmp	DWORD PTR -4[rbp], 96
	jle	.L5
	cmp	DWORD PTR -4[rbp], 122
	jg	.L5
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 87
	jmp	.L3
.L5:
	mov	eax, -1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	digitval, .-digitval
	.globl	strntoumax
	.type	strntoumax, @function
strntoumax:
.LFB1:
	.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	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L7
.L9:
	add	QWORD PTR -40[rbp], 1
	sub	QWORD PTR -64[rbp], 1
.L7:
	cmp	QWORD PTR -64[rbp], 0
	je	.L8
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L9
.L8:
	cmp	QWORD PTR -64[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], 45
	je	.L11
	cmp	BYTE PTR -17[rbp], 43
	jne	.L10
.L11:
	cmp	BYTE PTR -17[rbp], 45
	sete	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	add	QWORD PTR -40[rbp], 1
	sub	QWORD PTR -64[rbp], 1
.L10:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L12
	cmp	QWORD PTR -64[rbp], 1
	jbe	.L13
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L13
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L14
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L13
.L14:
	sub	QWORD PTR -64[rbp], 2
	add	QWORD PTR -40[rbp], 2
	mov	DWORD PTR -52[rbp], 16
	jmp	.L17
.L13:
	cmp	QWORD PTR -64[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L16
	sub	QWORD PTR -64[rbp], 1
	add	QWORD PTR -40[rbp], 1
	mov	DWORD PTR -52[rbp], 8
	jmp	.L17
.L16:
	mov	DWORD PTR -52[rbp], 10
	jmp	.L19
.L12:
	cmp	DWORD PTR -52[rbp], 16
	jne	.L19
	cmp	QWORD PTR -64[rbp], 1
	jbe	.L19
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L18
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L19
.L18:
	sub	QWORD PTR -64[rbp], 2
	add	QWORD PTR -40[rbp], 2
.L17:
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	sub	QWORD PTR -64[rbp], 1
	add	QWORD PTR -40[rbp], 1
.L19:
	cmp	QWORD PTR -64[rbp], 0
	je	.L20
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	digitval
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L20
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L21
.L20:
	cmp	QWORD PTR -48[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
.L22:
	cmp	DWORD PTR -16[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -8[rbp]
	neg	rax
	jmp	.L25
.L23:
	mov	rax, QWORD PTR -8[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	strntoumax, .-strntoumax
	.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	"686530.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	digitval, %function
digitval:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #47
	ble	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #57
	bgt	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #48
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #64
	ble	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	bgt	.L4
	ldr	r3, [fp, #-8]
	sub	r3, r3, #55
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #96
	ble	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #122
	bgt	.L5
	ldr	r3, [fp, #-8]
	sub	r3, r3, #87
	b	.L3
.L5:
	mvn	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	digitval, .-digitval
	.align	2
	.global	strntoumax
	.syntax unified
	.arm
	.fpu softvfp
	.type	strntoumax, %function
strntoumax:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L7
.L9:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L7:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L8
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L11
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L10
.L11:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #45
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L10:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bls	.L13
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L13
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L14
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L13
.L14:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	str	r3, [fp, #-40]
	mov	r3, #16
	str	r3, [fp, #-48]
	b	.L17
.L13:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L16
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r3, #8
	str	r3, [fp, #-48]
	b	.L17
.L16:
	mov	r3, #10
	str	r3, [fp, #-48]
	b	.L19
.L12:
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L19
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bls	.L19
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L19
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L18
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L19
.L18:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	str	r3, [fp, #-40]
.L17:
	b	.L19
.L21:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-20]
	mul	r2, r1, r3
	ldr	r3, [fp, #-16]
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-20]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-24]
	mov	r0, r1
	asr	r1, r0, #31
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L19:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digitval
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L20
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L21
.L20:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	rsbs	r2, r2, #0
	rsc	r3, r3, #0
	b	.L25
.L23:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
.L25:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	strntoumax, .-strntoumax
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
