	.file	"161079760.c"
	.intel_syntax noprefix
	.text
	.globl	binary_to_decimal
	.type	binary_to_decimal, @function
binary_to_decimal:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	add	DWORD PTR -8[rbp], eax
	sub	DWORD PTR -12[rbp], 1
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L3
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	binary_to_decimal, .-binary_to_decimal
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	print_hex_digit
	.type	print_hex_digit, @function
print_hex_digit:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	jg	.L6
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L6:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L8
	mov	edi, 65
	call	putchar@PLT
	jmp	.L13
.L8:
	cmp	DWORD PTR -4[rbp], 11
	jne	.L9
	mov	edi, 66
	call	putchar@PLT
	jmp	.L13
.L9:
	cmp	DWORD PTR -4[rbp], 12
	jne	.L10
	mov	edi, 67
	call	putchar@PLT
	jmp	.L13
.L10:
	cmp	DWORD PTR -4[rbp], 13
	jne	.L11
	mov	edi, 68
	call	putchar@PLT
	jmp	.L13
.L11:
	cmp	DWORD PTR -4[rbp], 14
	jne	.L12
	mov	edi, 69
	call	putchar@PLT
	jmp	.L13
.L12:
	cmp	DWORD PTR -4[rbp], 15
	jne	.L13
	mov	edi, 70
	call	putchar@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_hex_digit, .-print_hex_digit
	.globl	return_hex_digit
	.type	return_hex_digit, @function
return_hex_digit:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 15
	ja	.L15
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L17[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L17[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L32-.L17
	.long	.L31-.L17
	.long	.L30-.L17
	.long	.L29-.L17
	.long	.L28-.L17
	.long	.L27-.L17
	.long	.L26-.L17
	.long	.L25-.L17
	.long	.L24-.L17
	.long	.L23-.L17
	.long	.L22-.L17
	.long	.L21-.L17
	.long	.L20-.L17
	.long	.L19-.L17
	.long	.L18-.L17
	.long	.L16-.L17
	.text
.L32:
	mov	BYTE PTR -1[rbp], 48
	jmp	.L33
.L31:
	mov	BYTE PTR -1[rbp], 49
	jmp	.L33
.L30:
	mov	BYTE PTR -1[rbp], 50
	jmp	.L33
.L29:
	mov	BYTE PTR -1[rbp], 51
	jmp	.L33
.L28:
	mov	BYTE PTR -1[rbp], 52
	jmp	.L33
.L27:
	mov	BYTE PTR -1[rbp], 53
	jmp	.L33
.L26:
	mov	BYTE PTR -1[rbp], 54
	jmp	.L33
.L25:
	mov	BYTE PTR -1[rbp], 55
	jmp	.L33
.L24:
	mov	BYTE PTR -1[rbp], 56
	jmp	.L33
.L23:
	mov	BYTE PTR -1[rbp], 57
	jmp	.L33
.L22:
	mov	BYTE PTR -1[rbp], 65
	jmp	.L33
.L21:
	mov	BYTE PTR -1[rbp], 66
	jmp	.L33
.L20:
	mov	BYTE PTR -1[rbp], 67
	jmp	.L33
.L19:
	mov	BYTE PTR -1[rbp], 68
	jmp	.L33
.L18:
	mov	BYTE PTR -1[rbp], 69
	jmp	.L33
.L16:
	mov	BYTE PTR -1[rbp], 70
	jmp	.L33
.L15:
	mov	BYTE PTR -1[rbp], 48
	nop
.L33:
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	return_hex_digit, .-return_hex_digit
	.globl	binary_to_hexadecimal
	.type	binary_to_hexadecimal, @function
binary_to_hexadecimal:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L36
.L37:
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR -29[rbp+rax], dl
	add	DWORD PTR -48[rbp], 1
	add	DWORD PTR -44[rbp], 1
.L36:
	mov	ebx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	and	eax, 3
	cmp	rbx, rax
	jb	.L37
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR -29[rbp+rax], 0
	lea	rax, -29[rbp]
	mov	rdi, rax
	call	binary_to_decimal
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L39
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -40[rbp], ecx
	mov	ecx, edx
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	edi, eax
	call	return_hex_digit
	mov	BYTE PTR [rbx], al
	jmp	.L39
.L42:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L40
.L41:
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR -29[rbp+rax], dl
	add	DWORD PTR -48[rbp], 1
	add	DWORD PTR -44[rbp], 1
.L40:
	cmp	DWORD PTR -44[rbp], 3
	jbe	.L41
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR -29[rbp+rax], 0
	lea	rax, -29[rbp]
	mov	rdi, rax
	call	binary_to_decimal
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -40[rbp], ecx
	mov	ecx, edx
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	edi, eax
	call	return_hex_digit
	mov	BYTE PTR [rbx], al
.L39:
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L42
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	binary_to_hexadecimal, .-binary_to_hexadecimal
	.section	.rodata
.LC1:
	.string	"a"
.LC2:
	.string	"../outputs/keys_hex.txt"
	.text
	.globl	add_to_file
	.type	add_to_file, @function
add_to_file:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L46
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L47
.L46:
	mov	eax, 0
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add_to_file, .-add_to_file
	.section	.rodata
.LC3:
	.string	"\nUsage:"
	.align 8
.LC4:
	.string	"./bin_to_hex.o <binary number>\n"
	.align 8
.LC5:
	.string	"\nBinary to Hexadecimal Malloc Fatal Error..."
	.align 8
.LC6:
	.string	"\nBinary to Hexadecimal Convert Fatal Error..."
	.align 8
.LC7:
	.string	"\nBinary to Hexadecimal Write Fatal Error..."
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L49
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L50
.L49:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L51
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L50
.L51:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	binary_to_hexadecimal
	test	eax, eax
	jne	.L52
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L50
.L52:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	add_to_file
	test	eax, eax
	jne	.L53
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L50
.L53:
	mov	eax, 0
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"161079760.c"
	.text
	.align	2
	.global	binary_to_decimal
	.syntax unified
	.arm
	.fpu softvfp
	.type	binary_to_decimal, %function
binary_to_decimal:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #-8]
	lsl	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	binary_to_decimal, .-binary_to_decimal
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	print_hex_digit
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hex_digit, %function
print_hex_digit:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bgt	.L6
	ldr	r1, [fp, #-8]
	ldr	r0, .L14
	bl	printf
	b	.L13
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L8
	mov	r0, #65
	bl	putchar
	b	.L13
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	bne	.L9
	mov	r0, #66
	bl	putchar
	b	.L13
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	bne	.L10
	mov	r0, #67
	bl	putchar
	b	.L13
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #13
	bne	.L11
	mov	r0, #68
	bl	putchar
	b	.L13
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	bne	.L12
	mov	r0, #69
	bl	putchar
	b	.L13
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	bne	.L13
	mov	r0, #70
	bl	putchar
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	print_hex_digit, .-print_hex_digit
	.align	2
	.global	return_hex_digit
	.syntax unified
	.arm
	.fpu softvfp
	.type	return_hex_digit, %function
return_hex_digit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L17
.L19:
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L18
.L34:
	mov	r3, #48
	strb	r3, [fp, #-5]
	b	.L35
.L33:
	mov	r3, #49
	strb	r3, [fp, #-5]
	b	.L35
.L32:
	mov	r3, #50
	strb	r3, [fp, #-5]
	b	.L35
.L31:
	mov	r3, #51
	strb	r3, [fp, #-5]
	b	.L35
.L30:
	mov	r3, #52
	strb	r3, [fp, #-5]
	b	.L35
.L29:
	mov	r3, #53
	strb	r3, [fp, #-5]
	b	.L35
.L28:
	mov	r3, #54
	strb	r3, [fp, #-5]
	b	.L35
.L27:
	mov	r3, #55
	strb	r3, [fp, #-5]
	b	.L35
.L26:
	mov	r3, #56
	strb	r3, [fp, #-5]
	b	.L35
.L25:
	mov	r3, #57
	strb	r3, [fp, #-5]
	b	.L35
.L24:
	mov	r3, #65
	strb	r3, [fp, #-5]
	b	.L35
.L23:
	mov	r3, #66
	strb	r3, [fp, #-5]
	b	.L35
.L22:
	mov	r3, #67
	strb	r3, [fp, #-5]
	b	.L35
.L21:
	mov	r3, #68
	strb	r3, [fp, #-5]
	b	.L35
.L20:
	mov	r3, #69
	strb	r3, [fp, #-5]
	b	.L35
.L18:
	mov	r3, #70
	strb	r3, [fp, #-5]
	b	.L35
.L17:
	mov	r3, #48
	strb	r3, [fp, #-5]
	nop
.L35:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	return_hex_digit, .-return_hex_digit
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	binary_to_hexadecimal
	.syntax unified
	.arm
	.fpu softvfp
	.type	binary_to_hexadecimal, %function
binary_to_hexadecimal:
	@ 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, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
	b	.L38
.L39:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #24
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L38:
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	and	r3, r3, #3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bcc	.L39
	sub	r2, fp, #24
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #24
	mov	r0, r3
	bl	binary_to_decimal
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L41
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-52]
	add	r4, r2, r3
	mov	r0, r1
	bl	return_hex_digit
	mov	r3, r0
	strb	r3, [r4]
	b	.L41
.L44:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L42
.L43:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #24
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L42:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	bls	.L43
	sub	r2, fp, #24
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #24
	mov	r0, r3
	bl	binary_to_decimal
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-52]
	add	r4, r2, r3
	mov	r0, r1
	bl	return_hex_digit
	mov	r3, r0
	strb	r3, [r4]
.L41:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L44
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r3, r0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC1
	.size	binary_to_hexadecimal, .-binary_to_hexadecimal
	.section	.rodata
	.align	2
.LC2:
	.ascii	"a\000"
	.align	2
.LC3:
	.ascii	"../outputs/keys_hex.txt\000"
	.text
	.align	2
	.global	add_to_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_file, %function
add_to_file:
	@ 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	r1, .L52
	ldr	r0, .L52+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L50
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fputs
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #1
	b	.L51
.L50:
	mov	r3, #0
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC2
	.word	.LC3
	.size	add_to_file, .-add_to_file
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Usage:\000"
	.align	2
.LC5:
	.ascii	"./bin_to_hex.o <binary number>\012\000"
	.align	2
.LC6:
	.ascii	"\012Binary to Hexadecimal Malloc Fatal Error...\000"
	.align	2
.LC7:
	.ascii	"\012Binary to Hexadecimal Convert Fatal Error...\000"
	.align	2
.LC8:
	.ascii	"\012Binary to Hexadecimal Write Fatal Error...\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L55
	ldr	r0, .L60
	bl	puts
	ldr	r0, .L60+4
	bl	puts
	mov	r3, #1
	b	.L56
.L55:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L57
	ldr	r0, .L60+8
	bl	puts
	ldr	r0, .L60+4
	bl	puts
	mov	r3, #1
	b	.L56
.L57:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	binary_to_hexadecimal
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L60+12
	bl	puts
	ldr	r0, .L60+4
	bl	puts
	mov	r3, #1
	b	.L56
.L58:
	ldr	r0, [fp, #-8]
	bl	add_to_file
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r0, .L60+16
	bl	puts
	ldr	r0, .L60+4
	bl	puts
	mov	r3, #1
	b	.L56
.L59:
	mov	r3, #0
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
