	.file	"399351.c"
	.intel_syntax noprefix
	.text
	.globl	fputhex
	.type	fputhex, @function
fputhex:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 9
	jle	.L2
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 87[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 48[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fputhex, .-fputhex
	.globl	valid_symbol
	.type	valid_symbol, @function
valid_symbol:
.LFB1:
	.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	.L6
	cmp	BYTE PTR -4[rbp], 57
	jg	.L6
	movzx	eax, BYTE PTR -4[rbp]
	jmp	.L7
.L6:
	cmp	BYTE PTR -4[rbp], 96
	jle	.L8
	cmp	BYTE PTR -4[rbp], 122
	jg	.L8
	movzx	eax, BYTE PTR -4[rbp]
	jmp	.L7
.L8:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L9
	cmp	BYTE PTR -4[rbp], 90
	jg	.L9
	movzx	eax, BYTE PTR -4[rbp]
	jmp	.L7
.L9:
	mov	eax, 95
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	valid_symbol, .-valid_symbol
	.section	.rodata
.LC0:
	.string	"Invalid input file name."
.LC1:
	.string	"r"
.LC2:
	.string	"Could not open input file."
.LC3:
	.string	"w"
.LC4:
	.string	"Could not open output file."
.LC5:
	.string	"unsigned char "
.LC6:
	.string	"0x%x"
.LC7:
	.string	"] = {\n "
.LC8:
	.string	"0x"
.LC9:
	.string	"\n};\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -548[rbp], -1
	cmp	DWORD PTR -564[rbp], 2
	je	.L11
	cmp	DWORD PTR -564[rbp], 3
	je	.L11
	mov	eax, 1
	jmp	.L29
.L11:
	mov	DWORD PTR -556[rbp], 0
	mov	DWORD PTR -552[rbp], 0
	jmp	.L13
.L18:
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L14
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L15
.L14:
	mov	DWORD PTR -552[rbp], -1
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	valid_symbol
	mov	edx, DWORD PTR -552[rbp]
	movsx	rdx, edx
	mov	BYTE PTR -528[rbp+rdx], al
.L16:
	add	DWORD PTR -556[rbp], 1
	add	DWORD PTR -552[rbp], 1
.L13:
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L17
	cmp	DWORD PTR -556[rbp], 249
	jle	.L18
.L17:
	cmp	DWORD PTR -556[rbp], 0
	jg	.L19
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L29
.L19:
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], 0
	cmp	DWORD PTR -564[rbp], 3
	jne	.L20
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -556[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 46
	mov	eax, DWORD PTR -556[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -272[rbp+rax], 99
	mov	eax, DWORD PTR -556[rbp]
	add	eax, 2
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
.L21:
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L22
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L29
.L22:
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -552[rbp], eax
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L23
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L29
.L23:
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, 91
	call	fputc@PLT
	mov	edx, DWORD PTR -552[rbp]
	mov	rax, QWORD PTR -536[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L24
.L28:
	cmp	DWORD PTR -548[rbp], 0
	jle	.L25
	cmp	DWORD PTR -548[rbp], 16
	jle	.L26
	mov	DWORD PTR -548[rbp], 1
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L26:
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
	jmp	.L27
.L25:
	mov	DWORD PTR -548[rbp], 1
.L27:
	add	DWORD PTR -548[rbp], 1
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -556[rbp]
	sar	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputhex
	mov	eax, DWORD PTR -556[rbp]
	and	eax, 15
	mov	edx, eax
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputhex
.L24:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -556[rbp], eax
	cmp	DWORD PTR -556[rbp], -1
	jne	.L28
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 0
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"399351.c"
	.text
	.align	2
	.global	fputhex
	.syntax unified
	.arm
	.fpu softvfp
	.type	fputhex, %function
fputhex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #87
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	fputc
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	fputc
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fputhex, .-fputhex
	.align	2
	.global	valid_symbol
	.syntax unified
	.arm
	.fpu softvfp
	.type	valid_symbol, %function
valid_symbol:
	@ 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	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L7
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L7
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L7
.L9:
	mov	r3, #95
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	valid_symbol, .-valid_symbol
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid input file name.\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Could not open input file.\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"Could not open output file.\000"
	.align	2
.LC5:
	.ascii	"unsigned char \000"
	.align	2
.LC6:
	.ascii	"0x%x\000"
	.align	2
.LC7:
	.ascii	"] = {\012 \000"
	.align	2
.LC8:
	.ascii	"0x\000"
	.align	2
.LC9:
	.ascii	"\012};\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-544]
	cmp	r3, #2
	beq	.L11
	ldr	r3, [fp, #-544]
	cmp	r3, #3
	beq	.L11
	mov	r3, #1
	b	.L29
.L11:
	mov	r3, #0
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L13
.L18:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L14
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L15
.L14:
	mvn	r3, #0
	str	r3, [fp, #-536]
	b	.L16
.L15:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	valid_symbol
	mov	r3, r0
	mov	r1, r3
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L16:
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L13:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-540]
	cmp	r3, #249
	ble	.L18
.L17:
	ldr	r3, [fp, #-540]
	cmp	r3, #0
	bgt	.L19
	ldr	r0, .L31+4
	bl	puts
	mov	r3, #1
	b	.L29
.L19:
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-544]
	cmp	r3, #3
	bne	.L20
	ldr	r3, [fp, #-548]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L21
.L20:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r2, [fp, #-540]
	sub	r3, fp, #264
	mov	r0, r3
	bl	memcpy
	sub	r2, fp, #264
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #99
	strb	r2, [r3, #-260]
	ldr	r3, [fp, #-540]
	add	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
.L21:
	ldr	r3, [fp, #-548]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L31+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L31+12
	bl	puts
	mov	r3, #1
	b	.L29
.L22:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-528]
	bl	fseek
	ldr	r0, [fp, #-528]
	bl	ftell
	str	r0, [fp, #-536]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-528]
	bl	fseek
	sub	r3, fp, #264
	ldr	r1, .L31+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L31+20
	bl	puts
	mov	r3, #1
	b	.L29
.L23:
	ldr	r3, [fp, #-524]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L31+24
	bl	fwrite
	sub	r3, fp, #520
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	fputs
	ldr	r1, [fp, #-524]
	mov	r0, #91
	bl	fputc
	ldr	r2, [fp, #-536]
	ldr	r1, .L31+28
	ldr	r0, [fp, #-524]
	bl	fprintf
	ldr	r3, [fp, #-524]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L31+32
	bl	fwrite
	b	.L24
.L28:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	ble	.L25
	ldr	r3, [fp, #-532]
	cmp	r3, #16
	ble	.L26
	mov	r3, #1
	str	r3, [fp, #-532]
	ldr	r1, [fp, #-524]
	mov	r0, #10
	bl	fputc
.L26:
	ldr	r1, [fp, #-524]
	mov	r0, #44
	bl	fputc
	b	.L27
.L25:
	mov	r3, #1
	str	r3, [fp, #-532]
.L27:
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-524]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L31+36
	bl	fwrite
	ldr	r3, [fp, #-540]
	asr	r3, r3, #4
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	fputhex
	ldr	r3, [fp, #-540]
	and	r3, r3, #15
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	fputhex
.L24:
	ldr	r0, [fp, #-528]
	bl	fgetc
	str	r0, [fp, #-540]
	ldr	r3, [fp, #-540]
	cmn	r3, #1
	bne	.L28
	ldr	r3, [fp, #-524]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L31+40
	bl	fwrite
	mov	r3, #0
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
