	.file	"extr_sscanf.c_simple_strtoull.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	simple_strtoull
	.type	simple_strtoull, @function
simple_strtoull:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	movsx	edi, BYTE PTR [rdi]
	test	edx, edx
	jne	.L2
	mov	edx, 10
	cmp	dil, 48
	je	.L17
.L2:
	xor	r12d, r12d
	mov	ebx, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	movsx	eax, BYTE PTR 0[r13]
	sub	eax, 48
	cdqe
.L9:
	cmp	rbx, rax
	jbe	.L12
.L11:
	imul	r12, rbx
	movsx	edi, BYTE PTR 1[r13]
	add	r13, 1
	add	r12, rax
.L4:
	call	isxdigit@PLT
	test	rax, rax
	je	.L12
	movsx	edi, BYTE PTR 0[r13]
	call	isdigit@PLT
	test	rax, rax
	jne	.L18
	movsx	edi, BYTE PTR 0[r13]
	call	islower@PLT
	test	rax, rax
	jne	.L19
	movsx	eax, BYTE PTR 0[r13]
	sub	eax, 55
	cdqe
	cmp	rbx, rax
	ja	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	test	rbp, rbp
	je	.L1
	mov	QWORD PTR 0[rbp], r13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movsx	edi, BYTE PTR 0[r13]
	call	toupper@PLT
	movsx	eax, al
	sub	eax, 55
	cdqe
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	movsx	edi, BYTE PTR 1[r13]
	lea	rbx, 1[r13]
	cmp	dil, 120
	je	.L20
	mov	r13, rbx
	mov	edx, 8
	jmp	.L2
.L20:
	movsx	edi, BYTE PTR 2[r13]
	call	isxdigit@PLT
	test	rax, rax
	jne	.L3
	movsx	edi, BYTE PTR 1[r13]
	mov	edx, 8
	mov	r13, rbx
	jmp	.L2
.L3:
	movsx	edi, BYTE PTR 2[r13]
	mov	edx, 16
	add	r13, 2
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	simple_strtoull, .-simple_strtoull
	.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_sscanf.c_simple_strtoull.c"
	.text
	.align	2
	.global	simple_strtoull
	.syntax unified
	.arm
	.fpu softvfp
	.type	simple_strtoull, %function
simple_strtoull:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r2, #0
	mov	r4, r0
	mov	r10, r1
	ldrb	r0, [r0]	@ zero_extendqisi2
	bne	.L2
	cmp	r0, #48
	movne	r5, #10
	beq	.L17
.L2:
	mov	r7, #0
	mov	r8, r5
	mov	r6, r7
	mov	r9, #0
	b	.L4
.L9:
	asr	r1, r0, #31
	cmp	r9, r1
	cmpeq	r8, r0
	bls	.L12
.L11:
	umull	r2, r3, r5, r7
	mla	r3, r5, r6, r3
	adds	r7, r2, r0
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	adc	r6, r3, r1
.L4:
	bl	isxdigit
	cmp	r0, #0
	beq	.L12
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	isdigit
	cmp	r0, #0
	ldrb	r0, [r4]	@ zero_extendqisi2
	subne	r0, r0, #48
	bne	.L9
	bl	islower
	cmp	r0, #0
	ldrb	r0, [r4]	@ zero_extendqisi2
	subeq	r0, r0, #55
	beq	.L9
	bl	toupper
	sub	r0, r0, #55
	asr	r1, r0, #31
	cmp	r9, r1
	cmpeq	r8, r0
	bhi	.L11
.L12:
	cmp	r10, #0
	mov	r0, r7
	mov	r1, r6
	strne	r4, [r10]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	add	r6, r4, #1
	cmp	r0, #120
	movne	r4, r6
	movne	r5, #8
	bne	.L2
	ldrb	r0, [r4, #2]	@ zero_extendqisi2
	bl	isxdigit
	cmp	r0, #0
	ldrbeq	r0, [r4, #1]	@ zero_extendqisi2
	ldrbne	r0, [r4, #2]	@ zero_extendqisi2
	moveq	r5, #8
	moveq	r4, r6
	movne	r5, #16
	addne	r4, r4, #2
	b	.L2
	.size	simple_strtoull, .-simple_strtoull
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
