	.file	"50137720.c"
	.intel_syntax noprefix
	.text
	.globl	strtoul
	.type	strtoul, @function
strtoul:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -25[rbp], 43
	lea	rdx, -52[rbp]
	lea	rcx, -25[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	_PDCLIB_strtox_prelim@PLT
	cdqe
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 1
	jle	.L2
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 36
	jle	.L3
.L2:
	mov	eax, 0
	jmp	.L10
.L3:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, -1
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	mov	edi, eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rsi, eax
	mov	rax, -1
	mov	edx, 0
	div	rsi
	mov	rcx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdx, -25[rbp]
	lea	rax, -24[rbp]
	mov	r9, rdx
	mov	r8d, edi
	mov	rdx, -1
	mov	rdi, rax
	mov	eax, 0
	call	_PDCLIB_strtox_main@PLT
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -40[rbp]
.L7:
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
.L5:
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 43
	je	.L8
	mov	rax, QWORD PTR -16[rbp]
	neg	rax
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -16[rbp]
.L10:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strtoul, .-strtoul
	.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	"50137720.c"
	.text
	.global	__aeabi_uidiv
	.global	__aeabi_uidivmod
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	strtoul
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtoul, %function
strtoul:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #43
	strb	r3, [fp, #-33]
	sub	r2, fp, #48
	sub	r3, fp, #33
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	_PDCLIB_strtox_prelim
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-48]
	cmp	r3, #36
	ble	.L3
.L2:
	mov	r3, #0
	b	.L10
.L3:
	ldr	r3, [fp, #-48]
	mov	r6, r3
	ldr	r3, [fp, #-48]
	mov	r1, r3
	mvn	r0, #0
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r4, r3
	mov	r5, #0
	ldr	r3, [fp, #-48]
	mov	r2, r3
	mvn	r3, #0
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	sub	r0, fp, #32
	sub	r3, fp, #33
	str	r3, [sp, #12]
	str	r2, [sp, #8]
	stm	sp, {r4-r5}
	mvn	r2, #0
	mov	r3, #0
	mov	r1, r6
	bl	_PDCLIB_strtox_main
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-32]
	b	.L7
.L6:
	ldr	r3, [fp, #-40]
.L7:
	ldr	r2, [fp, #-44]
	str	r3, [r2]
.L5:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L8
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	b	.L10
.L8:
	ldr	r3, [fp, #-28]
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	strtoul, .-strtoul
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
