	.file	"620284.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"out.txt"
.LC2:
	.string	"Error opening output file"
.LC3:
	.string	"%#x, "
.LC4:
	.string	"\n%s"
.LC5:
	.string	" };"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 1192
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1208[rbp], rax
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	movabs	rax, 8675454745766357091
	movabs	rdx, 6727103927846855007
	mov	QWORD PTR -1184[rbp], rax
	mov	QWORD PTR -1176[rbp], rdx
	mov	DWORD PTR -1168[rbp], 2065710368
	mov	WORD PTR -1164[rbp], 32
	lea	rax, -1184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1216[rbp], eax
	mov	eax, DWORD PTR -1216[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -1200[rbp], rax
	mov	eax, DWORD PTR -1216[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -1216[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -1216[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -1192[rbp], rax
	mov	DWORD PTR -1224[rbp], 0
	mov	eax, DWORD PTR -1216[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1192[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -1216[rbp]
	sub	eax, 1
	mov	rdx, QWORD PTR -1192[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	rdx, QWORD PTR -1208[rbp]
	lea	rax, -1184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L7
.L11:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1088[rbp]
	mov	rcx, rdx
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1212[rbp], eax
	mov	DWORD PTR -1220[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -1220[rbp]
	cdqe
	movzx	eax, BYTE PTR -1088[rbp+rax]
	movzx	edx, al
	lea	rax, -1152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	DWORD PTR -1224[rbp], eax
	mov	rdx, QWORD PTR -1208[rbp]
	lea	rax, -1152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	eax, 80
	sub	eax, DWORD PTR -1216[rbp]
	cmp	DWORD PTR -1224[rbp], eax
	jl	.L9
	mov	rdx, QWORD PTR -1192[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -1224[rbp], 0
.L9:
	add	DWORD PTR -1220[rbp], 1
.L8:
	mov	eax, DWORD PTR -1220[rbp]
	cmp	eax, DWORD PTR -1212[rbp]
	jl	.L10
.L7:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -1208[rbp]
	mov	edx, 1
	mov	rsi, -2
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1208[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"620284.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"out.txt\000"
	.align	2
.LC2:
	.ascii	"Error opening output file\000"
	.align	2
.LC4:
	.ascii	"%#x, \000"
	.align	2
.LC5:
	.ascii	"\012%s\000"
	.align	2
.LC6:
	.ascii	" };\000"
	.align	2
.LC3:
	.ascii	"char hex_array[] = { \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1136
	sub	sp, sp, #12
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	fopen
	str	r0, [fp, #-1148]
	ldr	r0, [fp, #-1148]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L11+16
	bl	fwrite
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, .L11+20
	sub	ip, fp, #1104
	sub	ip, ip, #12
	sub	ip, ip, #12
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	sub	r3, fp, #1104
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1144]
	ldr	r3, [fp, #-1144]
	sub	r3, r3, #1
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1144]
	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, #-1144]
	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, #-1144]
	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, #-1136]
	mov	r3, #0
	str	r3, [fp, #-1156]
	ldr	r3, [fp, #-1144]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #32
	ldr	r0, [fp, #-1136]
	bl	memset
	ldr	r3, [fp, #-1144]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1136]
	mov	r1, #0
	strb	r1, [r2, r3]
	sub	r3, fp, #1104
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, [fp, #-1148]
	mov	r0, r3
	bl	fputs
	b	.L4
.L8:
	ldr	r3, .L11+24
	ldr	r3, [r3]
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	mov	r2, #1024
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-1132]
	mov	r3, #0
	str	r3, [fp, #-1152]
	b	.L5
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1152]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L11+28
	mov	r0, r3
	bl	sprintf
	mov	r2, r0
	ldr	r3, [fp, #-1156]
	add	r3, r3, r2
	str	r3, [fp, #-1156]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [fp, #-1148]
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-1144]
	rsb	r3, r3, #80
	ldr	r2, [fp, #-1156]
	cmp	r2, r3
	blt	.L6
	ldr	r2, [fp, #-1136]
	ldr	r1, .L11+32
	ldr	r0, [fp, #-1148]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-1156]
.L6:
	ldr	r3, [fp, #-1152]
	add	r3, r3, #1
	str	r3, [fp, #-1152]
.L5:
	ldr	r2, [fp, #-1152]
	ldr	r3, [fp, #-1132]
	cmp	r2, r3
	blt	.L7
.L4:
	ldr	r3, .L11+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	mov	r2, #1
	mvn	r1, #1
	ldr	r0, [fp, #-1148]
	bl	fseek
	ldr	r3, [fp, #-1148]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L11+36
	bl	fwrite
	ldr	r0, [fp, #-1148]
	bl	fclose
	mov	r3, #0
.L3:
	mov	sp, r4
	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	.LC7
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	stdin
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
