	.file	"935827.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ERR %d\n"
	.text
	.globl	check_error
	.type	check_error, @function
check_error:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_error, .-check_error
	.section	.rodata
.LC1:
	.string	"-9223372036854775809"
.LC2:
	.string	"-9223372036854775808"
.LC3:
	.string	"-9223372036854775807"
.LC4:
	.string	"-2147483649"
.LC5:
	.string	"-2147483648"
.LC6:
	.string	"-2147483647"
.LC7:
	.string	"-5"
.LC8:
	.string	"-1"
.LC9:
	.string	"0"
.LC10:
	.string	"1"
.LC11:
	.string	"5"
.LC12:
	.string	"2147483646"
.LC13:
	.string	"2147483647"
.LC14:
	.string	"2147483648"
.LC15:
	.string	"4294967294"
.LC16:
	.string	"4294967295"
.LC17:
	.string	"4294967296"
.LC18:
	.string	"18446744073709551614"
.LC19:
	.string	"18446744073709551615"
.LC20:
	.string	"18446744073709551616"
.LC21:
	.string	"strtol(\"%s\") = %ld\n"
.LC22:
	.string	"strtoll(\"%s\") = %lld\n"
.LC23:
	.string	"strtoul(\"%s\") = %lu\n"
.LC24:
	.string	"strtoull(\"%s\") = %llu\n"
.LC25:
	.string	"0x12"
.LC26:
	.string	"strtol(\"0x12\", 0, 0) = %ld\n"
.LC27:
	.string	"strtol(\"0x12\", 0, 10) = %ld\n"
.LC28:
	.string	"012"
.LC29:
	.string	"strtol(\"012\", 0, 0) = %ld\n"
.LC30:
	.string	"strtol(\"012\", 0, 10) = %ld\n"
.LC31:
	.string	"0y12"
.LC32:
	.string	"strtol(\"0y12\", 0, 0) = %ld\n"
.LC33:
	.string	"hello"
.LC34:
	.string	"strtol(\"hello\", 0, 30) = %ld\n"
.LC35:
	.string	"strtol(\"hello\", 0, 10) = %ld\n"
.LC36:
	.string	"not-a-number"
.LC37:
	.string	"strtol(\"not-a-number\") = %ld\n"
.LC38:
	.string	"strtol(\"  0x12end\") = %ld\n"
.LC39:
	.string	"endptr - str = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -184[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -168[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -152[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -112[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC19[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC20[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -204[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	check_error
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	check_error
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	check_error
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoull@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	check_error
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -204[rbp], 1
.L5:
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, 19
	jbe	.L6
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC25[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 10
	mov	esi, 0
	lea	rdi, .LC25[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC28[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 10
	mov	esi, 0
	lea	rdi, .LC28[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC31[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 30
	mov	esi, 0
	lea	rdi, .LC33[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 10
	mov	esi, 0
	lea	rdi, .LC33[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC36[rip]
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 7954819504871055392
	mov	QWORD PTR -18[rbp], rax
	mov	WORD PTR -10[rbp], 100
	lea	rcx, -200[rbp]
	lea	rax, -18[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, -18[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	check_error
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"935827.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-9223372036854775809\000"
	.align	2
.LC1:
	.ascii	"-9223372036854775808\000"
	.align	2
.LC2:
	.ascii	"-9223372036854775807\000"
	.align	2
.LC3:
	.ascii	"-2147483649\000"
	.align	2
.LC4:
	.ascii	"-2147483648\000"
	.align	2
.LC5:
	.ascii	"-2147483647\000"
	.align	2
.LC6:
	.ascii	"-5\000"
	.align	2
.LC7:
	.ascii	"-1\000"
	.align	2
.LC8:
	.ascii	"0\000"
	.align	2
.LC9:
	.ascii	"1\000"
	.align	2
.LC10:
	.ascii	"5\000"
	.align	2
.LC11:
	.ascii	"2147483646\000"
	.align	2
.LC12:
	.ascii	"2147483647\000"
	.align	2
.LC13:
	.ascii	"2147483648\000"
	.align	2
.LC14:
	.ascii	"4294967294\000"
	.align	2
.LC15:
	.ascii	"4294967295\000"
	.align	2
.LC16:
	.ascii	"4294967296\000"
	.align	2
.LC17:
	.ascii	"18446744073709551614\000"
	.align	2
.LC18:
	.ascii	"18446744073709551615\000"
	.align	2
.LC19:
	.ascii	"18446744073709551616\000"
	.text
	.section	.rodata
	.align	2
.LC21:
	.ascii	"ERR %d\012\000"
	.text
	.align	2
	.global	check_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_error, %function
check_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
.L3:
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC21
	.size	check_error, .-check_error
	.section	.rodata
	.align	2
.LC23:
	.ascii	"strtol(\"%s\") = %ld\012\000"
	.align	2
.LC24:
	.ascii	"strtoll(\"%s\") = %lld\012\000"
	.align	2
.LC25:
	.ascii	"strtoul(\"%s\") = %lu\012\000"
	.align	2
.LC26:
	.ascii	"strtoull(\"%s\") = %llu\012\000"
	.align	2
.LC27:
	.ascii	"0x12\000"
	.align	2
.LC28:
	.ascii	"strtol(\"0x12\", 0, 0) = %ld\012\000"
	.align	2
.LC29:
	.ascii	"strtol(\"0x12\", 0, 10) = %ld\012\000"
	.align	2
.LC30:
	.ascii	"012\000"
	.align	2
.LC31:
	.ascii	"strtol(\"012\", 0, 0) = %ld\012\000"
	.align	2
.LC32:
	.ascii	"strtol(\"012\", 0, 10) = %ld\012\000"
	.align	2
.LC33:
	.ascii	"0y12\000"
	.align	2
.LC34:
	.ascii	"strtol(\"0y12\", 0, 0) = %ld\012\000"
	.align	2
.LC35:
	.ascii	"hello\000"
	.align	2
.LC36:
	.ascii	"strtol(\"hello\", 0, 30) = %ld\012\000"
	.align	2
.LC37:
	.ascii	"strtol(\"hello\", 0, 10) = %ld\012\000"
	.align	2
.LC38:
	.ascii	"not-a-number\000"
	.align	2
.LC39:
	.ascii	"strtol(\"not-a-number\") = %ld\012\000"
	.align	2
.LC41:
	.ascii	"strtol(\"  0x12end\") = %ld\012\000"
	.align	2
.LC42:
	.ascii	"endptr - str = %d\012\000"
	.align	2
.LC22:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.align	2
.LC40:
	.ascii	"  0x12end\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L11+4
	sub	r3, fp, #108
	mov	r1, r2
	mov	r2, #80
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L7
.L8:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-96]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-96]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L11+8
	bl	printf
	bl	check_error
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-96]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-96]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoll
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L11+12
	bl	printf
	bl	check_error
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-96]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-96]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L11+16
	bl	printf
	bl	check_error
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-96]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-96]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoull
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L11+20
	bl	printf
	bl	check_error
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L7:
	ldr	r3, [fp, #-112]
	cmp	r3, #19
	bls	.L8
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L11+24
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	mov	r2, #10
	mov	r1, #0
	ldr	r0, .L11+24
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+32
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L11+36
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+40
	bl	printf
	mov	r2, #10
	mov	r1, #0
	ldr	r0, .L11+36
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+44
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L11+48
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+52
	bl	printf
	mov	r2, #30
	mov	r1, #0
	ldr	r0, .L11+56
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+60
	bl	printf
	mov	r2, #10
	mov	r1, #0
	ldr	r0, .L11+56
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+64
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L11+68
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+72
	bl	printf
	ldr	r2, .L11+76
	sub	r3, fp, #28
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r1, fp, #116
	sub	r3, fp, #28
	mov	r2, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+80
	bl	printf
	ldr	r2, [fp, #-116]
	sub	r3, fp, #28
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L11+84
	bl	printf
	bl	check_error
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC43
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
