	.file	"458886.c"
	.intel_syntax noprefix
	.text
	.globl	strtoull
	.type	strtoull, @function
strtoull:
.LFB6:
	.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
	cmp	DWORD PTR -68[rbp], 0
	js	.L2
	cmp	DWORD PTR -68[rbp], 1
	je	.L2
	cmp	DWORD PTR -68[rbp], 36
	jle	.L3
.L2:
	cmp	QWORD PTR -64[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L4:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
	jmp	.L5
.L3:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
.L6:
	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	.L6
	cmp	DWORD PTR -40[rbp], 45
	jne	.L7
	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	.L8
.L7:
	mov	DWORD PTR -36[rbp], 0
	cmp	DWORD PTR -40[rbp], 43
	jne	.L8
	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
.L8:
	cmp	DWORD PTR -68[rbp], 0
	je	.L9
	cmp	DWORD PTR -68[rbp], 16
	jne	.L10
.L9:
	cmp	DWORD PTR -40[rbp], 48
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L11
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L10
.L11:
	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
.L10:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L12
	cmp	DWORD PTR -40[rbp], 48
	jne	.L13
	mov	eax, 8
	jmp	.L14
.L13:
	mov	eax, 10
.L14:
	mov	DWORD PTR -68[rbp], eax
.L12:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rsi, eax
	mov	rax, -1
	mov	edx, 0
	div	rsi
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	rax, -1
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	mov	DWORD PTR -28[rbp], eax
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], 0
.L26:
	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	.L31
	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	.L32
	cmp	DWORD PTR -32[rbp], 0
	js	.L33
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	ja	.L24
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L25
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L25
.L24:
	mov	DWORD PTR -32[rbp], -1
	mov	QWORD PTR -16[rbp], -1
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	jmp	.L23
.L25:
	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
.L33:
	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	.L26
.L31:
	nop
	jmp	.L20
.L32:
	nop
.L20:
	cmp	DWORD PTR -36[rbp], 0
	je	.L27
	cmp	DWORD PTR -32[rbp], 0
	jle	.L27
	neg	QWORD PTR -16[rbp]
.L27:
	cmp	QWORD PTR -64[rbp], 0
	je	.L28
	cmp	DWORD PTR -32[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -56[rbp]
.L30:
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
.L28:
	mov	rax, QWORD PTR -16[rbp]
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strtoull, .-strtoull
	.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	"458886.c"
	.text
	.global	__aeabi_uldivmod
	.align	2
	.global	strtoull
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtoull, %function
strtoull:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	beq	.L2
	ldr	r3, [fp, #-64]
	cmp	r3, #36
	ble	.L3
.L2:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	str	r2, [r3]
.L4:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	b	.L5
.L3:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-44]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-44]
	cmp	r3, #45
	bne	.L7
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-44]
	b	.L8
.L7:
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r3, #43
	bne	.L8
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-44]
.L8:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-64]
	cmp	r3, #16
	bne	.L10
.L9:
	ldr	r3, [fp, #-44]
	cmp	r3, #48
	bne	.L10
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L11
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L10
.L11:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	add	r3, r3, #2
	str	r3, [fp, #-48]
	mov	r3, #16
	str	r3, [fp, #-64]
.L10:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-44]
	cmp	r3, #48
	bne	.L13
	mov	r3, #8
	b	.L14
.L13:
	mov	r3, #10
.L14:
	str	r3, [fp, #-64]
.L12:
	ldr	r3, [fp, #-64]
	mov	r2, r3
	asr	r3, r2, #31
	mvn	r0, #0
	mvn	r1, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-64]
	mov	r2, r3
	asr	r3, r2, #31
	mvn	r0, #0
	mvn	r1, #0
	bl	__aeabi_uldivmod
	mov	r3, r2
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-36]
.L26:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-44]
	sub	r3, r3, #48
	str	r3, [fp, #-44]
	b	.L16
.L15:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L31
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	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, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
.L16:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bge	.L32
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L33
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L24
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L25
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L25
.L24:
	mvn	r3, #0
	str	r3, [fp, #-36]
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	b	.L23
.L25:
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-64]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-24]
	mul	r2, r0, r3
	ldr	r3, [fp, #-28]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-28]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	b	.L23
.L33:
	nop
.L23:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-44]
	b	.L26
.L31:
	nop
	b	.L20
.L32:
	nop
.L20:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L27
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	rsbs	r2, r2, #0
	rsc	r3, r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
.L27:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	b	.L30
.L29:
	ldr	r3, [fp, #-56]
.L30:
	ldr	r2, [fp, #-60]
	str	r3, [r2]
.L28:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
.L5:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	strtoull, .-strtoull
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
