	.file	"extr_strtoull.c_strtoull.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	strtoull
	.type	strtoull, @function
strtoull:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	r13, 1
.L2:
	movsx	edi, BYTE PTR 0[r13]
	call	isspace@PLT
	test	rax, rax
	jne	.L3
	movzx	eax, BYTE PTR 0[r13]
	cmp	al, 45
	je	.L41
	xor	r14d, r14d
	cmp	al, 43
	sete	al
	movzx	eax, al
	add	r13, rax
.L5:
	cmp	ebx, 16
	je	.L42
	test	ebx, ebx
	jne	.L43
	movzx	edx, BYTE PTR 0[r13]
	mov	ebx, 10
	cmp	dl, 48
	je	.L44
.L8:
	xor	esi, esi
	test	dl, dl
	je	.L25
.L30:
	mov	rcx, r13
.L24:
	mov	r8d, DWORD PTR ULLONG_MAX[rip]
	xor	eax, eax
	xor	esi, esi
	movsx	rdi, ebx
	mov	r9d, 1
	sar	r8d, 8
	movsx	r8, r8d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	sub	edx, 87
	movzx	r10d, dl
.L16:
	cmp	r10d, ebx
	jge	.L14
.L46:
	movzx	r10d, al
	movzx	edx, dl
	sar	rax, 8
	imul	r10, rdi
	imul	rax, rdi
	add	rdx, r10
	mov	r10, rdx
	movzx	edx, dl
	shr	r10, 8
	add	rax, r10
	cmp	r8, rax
	cmovb	esi, r9d
	sal	rax, 8
	add	rcx, 1
	add	rax, rdx
	movzx	edx, BYTE PTR [rcx]
	test	dl, dl
	je	.L14
.L19:
	cmp	dl, 96
	ja	.L45
	cmp	dl, 64
	jbe	.L17
	sub	edx, 55
	movzx	r10d, dl
	cmp	r10d, ebx
	jl	.L46
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r13, rcx
	je	.L25
.L20:
	test	rbp, rbp
	je	.L21
	mov	QWORD PTR 0[rbp], rcx
.L21:
	test	esi, esi
	jne	.L47
	mov	rdx, rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	rdx
	test	r14d, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	cmovne	rax, rdx
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	cmp	dl, 57
	ja	.L29
	sub	edx, 48
	movzx	r10d, dl
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r10d, 255
	mov	edx, -1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L42:
	movzx	edx, BYTE PTR 0[r13]
	cmp	dl, 48
	jne	.L8
.L7:
	movzx	eax, BYTE PTR 1[r13]
	mov	edx, 48
	and	eax, -33
	cmp	al, 88
	jne	.L30
	movsx	edi, BYTE PTR 2[r13]
	call	isxdigit@PLT
	test	rax, rax
	je	.L39
	movzx	edx, BYTE PTR 2[r13]
	lea	rcx, 2[r13]
	test	dl, dl
	je	.L28
	mov	ebx, 16
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L41:
	add	r13, 1
	mov	r14d, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L47:
	mov	eax, DWORD PTR ERANGE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	DWORD PTR errno[rip], eax
	pop	r13
	.cfi_def_cfa_offset 16
	movsx	rax, DWORD PTR ULLONG_MAX[rip]
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	mov	rcx, r12
	mov	DWORD PTR errno[rip], eax
	xor	eax, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L43:
	lea	eax, -2[rbx]
	cmp	eax, 34
	jbe	.L39
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	DWORD PTR errno[rip], eax
	pop	r13
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L39:
	.cfi_restore_state
	movzx	edx, BYTE PTR 0[r13]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L44:
	mov	ebx, 8
	jmp	.L7
.L28:
	xor	eax, eax
	xor	esi, esi
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	strtoull, .-strtoull
	.comm	errno,4,4
	.comm	ULLONG_MAX,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_strtoull.c_strtoull.c"
	.text
	.align	2
	.global	strtoull
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtoull, %function
strtoull:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r2
	mov	r4, r0
	sub	sp, sp, #28
	str	r0, [sp, #20]
	str	r1, [sp, #8]
.L2:
	mov	r10, r4
	ldrb	r0, [r4], #1	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	bne	.L2
	ldrb	r3, [r10]	@ zero_extendqisi2
	mov	r6, r0
	cmp	r3, #45
	moveq	r10, r4
	moveq	fp, #1
	beq	.L4
	cmp	r3, #43
	moveq	r10, r4
	mov	fp, r0
.L4:
	cmp	r9, #16
	beq	.L46
	cmp	r9, #0
	bne	.L47
	ldrb	r1, [r10]	@ zero_extendqisi2
	cmp	r1, #48
	movne	r9, #10
	beq	.L48
.L7:
	cmp	r1, #0
	beq	.L24
.L29:
	mov	r3, r10
.L23:
	mov	r7, r9
	ldr	r2, .L51
	asr	r8, r9, #31
	ldr	r2, [r2]
	stm	sp, {r7-r8}
	asr	r2, r2, #8
	str	fp, [sp, #12]
	str	r10, [sp, #16]
	mov	r4, #0
	ldmia	sp, {r10-fp}
	mov	r5, #0
	mov	r7, r2
	mov	ip, r3
	asr	r8, r2, #31
	b	.L18
.L49:
	mul	r2, r1, fp
	mla	r0, r9, r0, r3
	mla	lr, r9, lr, r2
	umull	r2, r3, r1, r9
	lsr	r1, r0, #8
	adds	r2, r2, r1
	add	r3, lr, r3
	adc	r3, r3, #0
	cmp	r8, r3
	cmpeq	r7, r2
	ldrb	r1, [ip, #1]!	@ zero_extendqisi2
	lsl	r5, r3, #8
	and	r0, r0, #255
	lsl	r4, r2, #8
	movcc	r6, #1
	orr	r5, r5, r2, lsr #24
	adds	r4, r4, r0
	adc	r5, r5, #0
	cmp	r1, #0
	beq	.L41
.L18:
	sub	r0, r1, #87
	cmp	r1, #96
	and	r3, r0, #255
	bhi	.L43
	sub	r0, r1, #55
	cmp	r1, #64
	and	r3, r0, #255
	bhi	.L43
	cmp	r1, #57
	movhi	r2, #255
	sub	r0, r1, #48
	and	r3, r0, #255
	movhi	r3, r2
	bhi	.L15
.L43:
	mov	r2, r3
.L15:
	lsr	r1, r4, #8
	cmp	r9, r2
	orr	r1, r1, r5, lsl #24
	and	r0, r4, #255
	asr	lr, r5, #8
	bgt	.L49
.L41:
	mov	r3, ip
	ldr	fp, [sp, #12]
	ldr	r10, [sp, #16]
.L13:
	cmp	r10, r3
	beq	.L24
.L19:
	ldr	r2, [sp, #8]
	cmp	r2, #0
	strne	r3, [r2]
	cmp	r6, #0
	bne	.L50
	cmp	fp, #0
	beq	.L22
	rsbs	r4, r4, #0
	rsc	r5, r5, #0
.L22:
	mov	r0, r4
	mov	r1, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	ldrb	r1, [r10]	@ zero_extendqisi2
	cmp	r1, #48
	bne	.L7
.L6:
	ldrb	r3, [r10, #1]	@ zero_extendqisi2
	and	r3, r3, #223
	cmp	r3, #88
	movne	r1, #48
	bne	.L29
	ldrb	r0, [r10, #2]	@ zero_extendqisi2
	bl	isxdigit
	cmp	r0, #0
	beq	.L44
	ldrb	r1, [r10, #2]	@ zero_extendqisi2
	add	r3, r10, #2
	cmp	r1, #0
	beq	.L27
	mov	r9, #16
	b	.L23
.L50:
	ldr	r1, .L51
	ldr	r3, .L51+4
	ldr	r4, [r1]
	ldr	r2, [r3]
	mov	r0, r4
	ldr	r3, .L51+8
	asr	r1, r4, #31
	str	r2, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r1, .L51+12
	ldr	r2, .L51+8
	ldr	r1, [r1]
	mov	r4, #0
	mov	r5, #0
	ldr	r3, [sp, #20]
	str	r1, [r2]
	b	.L19
.L47:
	sub	r3, r9, #2
	cmp	r3, #34
	bls	.L44
	mov	r0, #0
	mov	r1, #0
	ldr	r2, .L51+12
	ldr	r3, .L51+8
	ldr	r2, [r2]
	str	r2, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	ldrb	r1, [r10]	@ zero_extendqisi2
	b	.L7
.L48:
	mov	r9, #8
	b	.L6
.L27:
	mov	r4, #0
	mov	r5, #0
	b	.L13
.L52:
	.align	2
.L51:
	.word	ULLONG_MAX
	.word	ERANGE
	.word	errno
	.word	EINVAL
	.size	strtoull, .-strtoull
	.comm	errno,4,4
	.comm	ULLONG_MAX,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
