	.file	"extr_misc.c_grub_strtoull.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"overflow is detected"
.LC1:
	.string	"unrecognized number"
	.text
	.p2align 4
	.globl	grub_strtoull
	.type	grub_strtoull, @function
grub_strtoull:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	movsx	edi, BYTE PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	test	dil, dil
	jne	.L2
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	je	.L17
.L2:
	call	grub_isspace@PLT
	test	rax, rax
	jne	.L4
	movsx	edi, BYTE PTR [rbx]
	cmp	dil, 48
	jne	.L5
	movzx	eax, BYTE PTR 1[rbx]
	cmp	al, 120
	je	.L33
	test	r13d, r13d
	je	.L34
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r14d, r14d
	xor	r12d, r12d
	movsx	rbp, r13d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	imul	r12, rbp
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	mov	r14d, 1
	add	r12, r15
	test	dil, dil
	je	.L16
.L15:
	call	grub_tolower@PLT
	lea	r15, -48[rax]
	cmp	r15, 9
	jbe	.L11
	lea	r15, -87[rax]
	cmp	rbp, r15
	jbe	.L12
.L11:
	mov	rdi, r15
	xor	edx, edx
	mov	esi, r13d
	not	rdi
	call	grub_divmod64@PLT
	cmp	rax, r12
	jnb	.L13
	mov	edi, DWORD PTR GRUB_ERR_OUT_OF_RANGE[rip]
	lea	rsi, .LC0[rip]
	mov	r12, -1
	call	grub_error@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	test	r14d, r14d
	je	.L17
.L16:
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L1
	mov	QWORD PTR [rax], rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	sub	eax, 48
	cmp	al, 8
	sbb	r13d, r13d
	and	r13d, -2
	add	r13d, 10
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	test	r13d, r13d
	jne	.L8
	mov	r13d, 10
.L8:
	test	dil, dil
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR GRUB_ERR_BAD_NUMBER[rip]
	lea	rsi, .LC1[rip]
	xor	r12d, r12d
	call	grub_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	test	r13d, -17
	jne	.L7
	movsx	edi, BYTE PTR 2[rbx]
	mov	r13d, 16
	add	rbx, 2
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	grub_strtoull, .-grub_strtoull
	.comm	GRUB_ERR_OUT_OF_RANGE,4,4
	.comm	GRUB_ERR_BAD_NUMBER,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_misc.c_grub_strtoull.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"overflow is detected\000"
	.align	2
.LC1:
	.ascii	"unrecognized number\000"
	.text
	.align	2
	.global	grub_strtoull
	.syntax unified
	.arm
	.fpu softvfp
	.type	grub_strtoull, %function
grub_strtoull:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldrb	r0, [r0]	@ zero_extendqisi2
	cmp	r0, #0
	movne	fp, r1
	movne	r10, r2
	bne	.L2
	b	.L17
.L4:
	ldrb	r0, [r5, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L17
.L2:
	bl	grub_isspace
	subs	r4, r0, #0
	bne	.L4
	ldrb	r0, [r5]	@ zero_extendqisi2
	cmp	r0, #48
	bne	.L5
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L33
	cmp	r10, #0
	beq	.L34
.L7:
	mov	r6, #0
	mov	r7, #0
	mov	r8, r10
	asr	r9, r10, #31
	b	.L15
.L13:
	mul	r1, r10, r7
	umull	r2, r3, r10, r6
	mla	r1, r6, r9, r1
	ldrb	r0, [r5, #1]!	@ zero_extendqisi2
	adds	r6, r4, r2
	add	r3, r1, r3
	adc	r7, ip, r3
	cmp	r0, #0
	mov	r4, #1
	beq	.L16
.L15:
	bl	grub_tolower
	sub	ip, r0, #48
	cmp	ip, #9
	bls	.L11
	sub	ip, r0, #87
	cmp	r10, ip
	bls	.L12
.L11:
	mvn	r0, ip
	mov	r3, #0
	mov	r2, r10
	mvn	r1, #0
	mov	r4, ip
	bl	grub_divmod64
	cmp	r1, r7
	cmpeq	r0, r6
	mov	ip, #0
	bcs	.L13
	ldr	r3, .L35
	ldr	r1, .L35+4
	ldr	r0, [r3]
	bl	grub_error
	mvn	r6, #0
	mvn	r7, #0
.L1:
	mov	r0, r6
	mov	r1, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	cmp	r4, #0
	beq	.L17
.L16:
	cmp	fp, #0
	strne	r5, [fp]
	b	.L1
.L34:
	sub	r3, r3, #48
	cmp	r3, #7
	movls	r10, #8
	movhi	r10, #10
	b	.L7
.L5:
	cmp	r10, #0
	moveq	r10, #10
.L8:
	cmp	r0, #0
	bne	.L7
.L17:
	ldr	r3, .L35+8
	ldr	r1, .L35+12
	ldr	r0, [r3]
	bl	grub_error
	mov	r6, #0
	mov	r7, #0
	b	.L1
.L33:
	bics	r3, r10, #16
	bne	.L7
	ldrb	r0, [r5, #2]	@ zero_extendqisi2
	mov	r10, #16
	add	r5, r5, #2
	b	.L8
.L36:
	.align	2
.L35:
	.word	GRUB_ERR_OUT_OF_RANGE
	.word	.LC0
	.word	GRUB_ERR_BAD_NUMBER
	.word	.LC1
	.size	grub_strtoull, .-grub_strtoull
	.comm	GRUB_ERR_OUT_OF_RANGE,4,4
	.comm	GRUB_ERR_BAD_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
