	.file	"975683.c"
	.intel_syntax noprefix
	.text
	.type	is_hex_digit, @function
is_hex_digit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 47
	jle	.L2
	cmp	BYTE PTR -4[rbp], 57
	jg	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L4
	cmp	BYTE PTR -4[rbp], 70
	jg	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	cmp	BYTE PTR -4[rbp], 96
	jle	.L5
	cmp	BYTE PTR -4[rbp], 102
	jg	.L5
	mov	eax, 1
	jmp	.L3
.L5:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_hex_digit, .-is_hex_digit
	.section	.rodata
.LC0:
	.string	"ULL"
.LC1:
	.string	"LL"
.LC2:
	.string	"UL"
.LC3:
	.string	"L"
.LC4:
	.string	"U"
.LC5:
	.string	""
	.text
	.type	is_ull_postfix, @function
is_ull_postfix:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 108
	jne	.L8
.L7:
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	je	.L9
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 108
	jne	.L10
.L9:
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 85
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 117
	jne	.L12
.L11:
	lea	rax, .LC0[rip]
	jmp	.L13
.L12:
	lea	rax, .LC1[rip]
	jmp	.L13
.L10:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 85
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 117
	jne	.L15
.L14:
	lea	rax, .LC2[rip]
	jmp	.L13
.L15:
	lea	rax, .LC3[rip]
	jmp	.L13
.L8:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 85
	je	.L16
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 117
	jne	.L17
.L16:
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 108
	jne	.L19
.L18:
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	je	.L20
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 108
	jne	.L21
.L20:
	lea	rax, .LC0[rip]
	jmp	.L13
.L21:
	lea	rax, .LC2[rip]
	jmp	.L13
.L19:
	lea	rax, .LC4[rip]
	jmp	.L13
.L17:
	lea	rax, .LC5[rip]
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_ull_postfix, .-is_ull_postfix
	.type	check_if_hex_number, @function
check_if_hex_number:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L25
	add	QWORD PTR -40[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	eax, 0
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L27
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L28
.L27:
	add	QWORD PTR -40[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	jmp	.L30
.L28:
	mov	eax, 0
	jmp	.L24
.L25:
	mov	eax, 0
	jmp	.L24
.L31:
	mov	DWORD PTR -20[rbp], 1
	add	QWORD PTR -40[rbp], 1
.L30:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	is_hex_digit
	test	eax, eax
	jne	.L31
	cmp	DWORD PTR -20[rbp], 1
	jne	.L32
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 41
	je	.L33
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L33
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L33
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L34
.L33:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	sub	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L24
.L34:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	sub	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	is_ull_postfix
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 96
	jle	.L35
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 122
	jg	.L35
	mov	eax, 0
	jmp	.L24
.L35:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L36
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jg	.L36
	mov	eax, 0
	jmp	.L24
.L36:
	mov	eax, 1
	jmp	.L24
.L32:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_if_hex_number, .-check_if_hex_number
	.section	.rodata
.LC6:
	.string	"0x%02llX"
.LC7:
	.string	"0x%04llX"
.LC8:
	.string	"0x%08llX"
.LC9:
	.string	"0x%012llX"
.LC10:
	.string	"0x%016llX"
	.text
	.type	format_hex, @function
format_hex:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -36[rbp], 2
	jg	.L38
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	jmp	.L39
.L38:
	cmp	DWORD PTR -36[rbp], 4
	jg	.L40
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	jmp	.L39
.L40:
	cmp	DWORD PTR -36[rbp], 8
	jg	.L41
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	jmp	.L39
.L41:
	cmp	DWORD PTR -36[rbp], 12
	jg	.L42
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	jmp	.L39
.L42:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -4[rbp], eax
.L39:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	format_hex, .-format_hex
	.section	.rodata
.LC11:
	.string	"%s"
	.text
	.type	hex_up_cased, @function
hex_up_cased:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L45
.L48:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -36[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	check_if_hex_number
	cmp	eax, 1
	jne	.L46
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 2[rax]
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	rsi, rax
	mov	rdi, rcx
	call	strtoull@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	format_hex
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	is_ull_postfix
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	jle	.L45
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	jmp	.L45
.L46:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -64[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L45:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L48
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	hex_up_cased, .-hex_up_cased
	.section	.rodata
.LC12:
	.string	"%02X "
	.text
	.type	dumpstr, @function
dumpstr:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L51
.L52:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L52
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dumpstr, .-dumpstr
	.section	.rodata
.LC13:
	.string	"r"
.LC14:
	.string	"-d"
.LC15:
	.string	"%s file\n"
.LC16:
	.string	"%s open failed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -100[rbp], 1048576
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L54:
	cmp	rsp, rdx
	je	.L55
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L54
.L55:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L56
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L56:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L57:
	cmp	rsp, rdx
	je	.L58
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L57
.L58:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L59
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L59:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	cmp	DWORD PTR -116[rbp], 2
	jne	.L60
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	jmp	.L61
.L60:
	cmp	DWORD PTR -116[rbp], 3
	jne	.L62
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L63
	mov	DWORD PTR -104[rbp], 1
.L63:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	jmp	.L61
.L62:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L64
.L61:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L66
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L64
.L69:
	mov	rdx, QWORD PTR -96[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L73
	mov	edx, DWORD PTR -100[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	hex_up_cased
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L66:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L69
	jmp	.L68
.L73:
	nop
.L68:
	cmp	DWORD PTR -104[rbp], 0
	je	.L70
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	dumpstr
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	dumpstr
.L70:
	mov	eax, 0
.L64:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"975683.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_hex_digit, %function
is_hex_digit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L4
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L4
	mov	r3, #1
	b	.L3
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L5
	mov	r3, #1
	b	.L3
.L5:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_hex_digit, .-is_hex_digit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ULL\000"
	.align	2
.LC1:
	.ascii	"LL\000"
	.align	2
.LC2:
	.ascii	"UL\000"
	.align	2
.LC3:
	.ascii	"L\000"
	.align	2
.LC4:
	.ascii	"U\000"
	.align	2
.LC5:
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_ull_postfix, %function
is_ull_postfix:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	beq	.L7
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L8
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	beq	.L9
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L10
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #85
	beq	.L11
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L12
.L11:
	ldr	r3, .L22
	b	.L13
.L12:
	ldr	r3, .L22+4
	b	.L13
.L10:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #85
	beq	.L14
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L15
.L14:
	ldr	r3, .L22+8
	b	.L13
.L15:
	ldr	r3, .L22+12
	b	.L13
.L8:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #85
	beq	.L16
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L17
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	beq	.L18
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L19
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	beq	.L20
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L21
.L20:
	ldr	r3, .L22
	b	.L13
.L21:
	ldr	r3, .L22+8
	b	.L13
.L19:
	ldr	r3, .L22+16
	b	.L13
.L17:
	ldr	r3, .L22+20
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	is_ull_postfix, .-is_ull_postfix
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_if_hex_number, %function
check_if_hex_number:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
	mov	r3, #0
	b	.L26
.L25:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L27
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L28
	mov	r3, #0
	b	.L26
.L28:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L29
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L30
.L29:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L32
.L30:
	mov	r3, #0
	b	.L26
.L27:
	mov	r3, #0
	b	.L26
.L33:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L32:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_hex_digit
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L34
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #41
	beq	.L35
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L35
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L35
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L36
.L35:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	sub	r2, r3, #2
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #1
	b	.L26
.L36:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	sub	r2, r3, #2
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	is_ull_postfix
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L37
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L37
	mov	r3, #0
	b	.L26
.L37:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L38
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L38
	mov	r3, #0
	b	.L26
.L38:
	mov	r3, #1
	b	.L26
.L34:
	mov	r3, #0
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_if_hex_number, .-check_if_hex_number
	.section	.rodata
	.align	2
.LC6:
	.ascii	"0x%02llX\000"
	.align	2
.LC7:
	.ascii	"0x%04llX\000"
	.align	2
.LC8:
	.ascii	"0x%08llX\000"
	.align	2
.LC9:
	.ascii	"0x%012llX\000"
	.align	2
.LC10:
	.ascii	"0x%016llX\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	format_hex, %function
format_hex:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #4]
	cmp	r3, #2
	bgt	.L40
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, .L46
	ldr	r0, [fp, #-16]
	bl	sprintf
	str	r0, [fp, #-8]
	b	.L41
.L40:
	ldr	r3, [fp, #4]
	cmp	r3, #4
	bgt	.L42
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, .L46+4
	ldr	r0, [fp, #-16]
	bl	sprintf
	str	r0, [fp, #-8]
	b	.L41
.L42:
	ldr	r3, [fp, #4]
	cmp	r3, #8
	bgt	.L43
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, .L46+8
	ldr	r0, [fp, #-16]
	bl	sprintf
	str	r0, [fp, #-8]
	b	.L41
.L43:
	ldr	r3, [fp, #4]
	cmp	r3, #12
	bgt	.L44
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, .L46+12
	ldr	r0, [fp, #-16]
	bl	sprintf
	str	r0, [fp, #-8]
	b	.L41
.L44:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, .L46+16
	ldr	r0, [fp, #-16]
	bl	sprintf
	str	r0, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	format_hex, .-format_hex
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%s\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hex_up_cased, %function
hex_up_cased:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	b	.L49
.L52:
	ldr	r3, [fp, #-32]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	check_if_hex_number
	mov	r3, r0
	cmp	r3, #1
	bne	.L50
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	sub	r1, fp, #32
	mov	r2, #16
	mov	r0, r3
	bl	strtoull
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-44]
	bl	format_hex
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	is_ull_postfix
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L49
	ldr	r2, [fp, #-24]
	ldr	r1, .L54+4
	ldr	r0, [fp, #-44]
	bl	sprintf
	ldr	r3, [fp, #-28]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	b	.L49
.L50:
	ldr	r2, [fp, #-32]
	add	r3, r2, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L49:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-44]
	mov	r2, #0
	strb	r2, [r3]
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC12
	.word	.LC11
	.size	hex_up_cased, .-hex_up_cased
	.section	.rodata
	.align	2
.LC13:
	.ascii	"%02X \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dumpstr, %function
dumpstr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L57
.L58:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L59
	bl	printf
.L57:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L58
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC13
	.size	dumpstr, .-dumpstr
	.section	.rodata
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"-d\000"
	.align	2
.LC16:
	.ascii	"%s file\012\000"
	.align	2
.LC17:
	.ascii	"%s open failed\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #1048576
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-36]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-36]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-36]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-36]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bne	.L62
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L76+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-40]
	b	.L63
.L62:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bne	.L64
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L76+8
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	mov	r3, #1
	str	r3, [fp, #-44]
.L65:
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L76+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-40]
	b	.L63
.L64:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L76+12
	bl	printf
	mov	r3, #0
	b	.L66
.L63:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L76+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L76+20
	bl	fprintf
	mvn	r3, #0
	b	.L66
.L71:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-28]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	hex_up_cased
	ldr	r1, [fp, #-20]
	ldr	r0, .L76+24
	bl	printf
.L68:
	ldr	r0, [fp, #-40]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	b	.L70
.L75:
	nop
.L70:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L72
	ldr	r0, [fp, #-28]
	bl	dumpstr
	ldr	r0, [fp, #-20]
	bl	dumpstr
.L72:
	mov	r3, #0
.L66:
	mov	sp, r4
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC18
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	stderr
	.word	.LC17
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
