	.file	"220455924.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"tohex. convert stdin to hexadecimal output.\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	writes@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	usage, .-usage
	.globl	table
	.section	.rodata
.LC1:
	.string	"0123456789abcdef"
	.section	.data.rel.local,"aw"
	.align 8
	.type	table, @object
	.size	table, 8
table:
	.quad	.LC1
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2096
	mov	DWORD PTR -6180[rbp], edi
	mov	QWORD PTR -6192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -6180[rbp], 1
	jle	.L3
	mov	eax, 0
	call	usage
.L3:
	mov	DWORD PTR -6164[rbp], 0
	jmp	.L4
.L7:
	mov	DWORD PTR -6168[rbp], 0
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR table[rip]
	mov	eax, DWORD PTR -6168[rbp]
	cdqe
	movzx	eax, BYTE PTR -6160[rbp+rax]
	sar	al, 4
	movsx	rax, al
	add	rax, rdx
	mov	edx, DWORD PTR -6168[rbp]
	lea	ecx, [rdx+rdx]
	movzx	edx, BYTE PTR [rax]
	movsx	rax, ecx
	mov	BYTE PTR -4112[rbp+rax], dl
	mov	rdx, QWORD PTR table[rip]
	mov	eax, DWORD PTR -6168[rbp]
	cdqe
	movzx	eax, BYTE PTR -6160[rbp+rax]
	movsx	rax, al
	and	eax, 15
	add	rax, rdx
	mov	edx, DWORD PTR -6168[rbp]
	add	edx, edx
	lea	ecx, 1[rdx]
	movzx	edx, BYTE PTR [rax]
	movsx	rax, ecx
	mov	BYTE PTR -4112[rbp+rax], dl
	add	DWORD PTR -6168[rbp], 1
.L5:
	mov	eax, DWORD PTR -6168[rbp]
	cmp	eax, DWORD PTR -6164[rbp]
	jl	.L6
	mov	eax, DWORD PTR -6164[rbp]
	lea	edx, [rax+rax]
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
.L4:
	lea	rax, -6160[rbp]
	mov	edx, 2048
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -6164[rbp], eax
	cmp	DWORD PTR -6164[rbp], 0
	jg	.L7
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"220455924.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tohex. convert stdin to hexadecimal output.\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	writes
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	usage, .-usage
	.global	table
	.section	.rodata
	.align	2
.LC1:
	.ascii	"0123456789abcdef\000"
	.data
	.align	2
	.type	table, %object
	.size	table, 4
table:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 6168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #6144
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-2068]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-2072]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2068]
	cmp	r3, #1
	ble	.L5
	bl	usage
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2056]
	b	.L6
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2060]
	b	.L7
.L8:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	add	r3, r1, r3
	sub	r3, r3, #2048
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	lsl	r3, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	ldr	r3, .L12+4
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	add	r3, r1, r3
	sub	r3, r3, #2048
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	add	r3, r3, #1
	str	r3, [r2, #-2060]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-2060]
	ldr	r3, [r3, #-2056]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2056]
	lsl	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-2056]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-2056]
	cmp	r3, #0
	bgt	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	table
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
