	.file	"780773.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"compiled:Dec  6 2024"
.LC1:
	.string	"0.1"
	.align 8
.LC2:
	.string	"\r\n** Welcome to pepochecksum Version-%s Copyright Isamu.Yamauchi %s **"
	.align 8
.LC3:
	.string	"\r\nusage: pepochecksum HEX_ascii_strings\r\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC0[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.globl	char2hex
	.type	char2hex, @function
char2hex:
.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 47
	jbe	.L3
	cmp	BYTE PTR -4[rbp], 57
	ja	.L3
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 48
	jmp	.L2
.L3:
	cmp	BYTE PTR -4[rbp], 96
	jbe	.L5
	cmp	BYTE PTR -4[rbp], 102
	ja	.L5
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 87
	jmp	.L2
.L5:
	cmp	BYTE PTR -4[rbp], 64
	jbe	.L6
	cmp	BYTE PTR -4[rbp], 70
	ja	.L6
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 55
	jmp	.L2
.L6:
	mov	eax, 0
	call	usage
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	char2hex, .-char2hex
	.section	.rodata
.LC4:
	.string	"%02x"
.LC5:
	.string	"%c%c\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	BYTE PTR -53[rbp], 0
	cmp	DWORD PTR -68[rbp], 2
	je	.L8
	mov	eax, 0
	call	usage
.L8:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 1
	jg	.L9
	mov	eax, 0
	call	usage
.L9:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	lea	rax, -27[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -26[rbp], 0
	movzx	eax, BYTE PTR -27[rbp]
	movzx	eax, al
	mov	edi, eax
	call	char2hex
	sal	eax, 4
	add	BYTE PTR -53[rbp], al
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	lea	rax, -27[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -26[rbp], 0
	movzx	eax, BYTE PTR -27[rbp]
	movzx	eax, al
	mov	edi, eax
	call	char2hex
	add	BYTE PTR -53[rbp], al
	add	DWORD PTR -52[rbp], 2
.L10:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 2
	cmp	DWORD PTR -52[rbp], eax
	jl	.L11
	neg	BYTE PTR -53[rbp]
	movzx	edx, BYTE PTR -53[rbp]
	lea	rax, -27[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	movzx	eax, BYTE PTR -26[rbp]
	movzx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	ebx, eax
	movzx	eax, BYTE PTR -27[rbp]
	movzx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"780773.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"compiled:Dec  6 2024\000"
	.align	2
.LC1:
	.ascii	"0.1\000"
	.align	2
.LC2:
	.ascii	"\015\012** Welcome to pepochecksum Version-%s Copyr"
	.ascii	"ight Isamu.Yamauchi %s **\000"
	.align	2
.LC3:
	.ascii	"\015\012usage: pepochecksum HEX_ascii_strings\015\012"
	.ascii	"\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	r3, .L2
	ldr	r0, [r3]
	ldr	r3, .L2+4
	ldr	r2, .L2+8
	ldr	r1, .L2+12
	bl	fprintf
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L2+16
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	usage, .-usage
	.align	2
	.global	char2hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	char2hex, %function
char2hex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L4
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #87
	b	.L4
.L7:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #55
	b	.L4
.L8:
	bl	usage
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	char2hex, .-char2hex
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%02x\000"
	.align	2
.LC5:
	.ascii	"%c%c\012\000"
	.align	2
.LC6:
	.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, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	beq	.L10
	bl	usage
.L10:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bgt	.L11
	bl	usage
.L11:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L12
.L13:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	add	r1, r2, r3
	sub	r3, fp, #20
	mov	r2, #1
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-19]
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	char2hex
	mov	r3, r0
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r2, r3, #255
	ldrb	r3, [fp, #-37]
	add	r3, r2, r3
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	add	r1, r2, r3
	sub	r3, fp, #20
	mov	r2, #1
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-19]
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	char2hex
	mov	r3, r0
	and	r2, r3, #255
	ldrb	r3, [fp, #-37]
	add	r3, r2, r3
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	str	r3, [fp, #-36]
.L12:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #2
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L13
	ldrb	r3, [fp, #-37]
	rsb	r3, r3, #0
	strb	r3, [fp, #-37]
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	sub	r3, fp, #20
	ldr	r1, .L16+4
	mov	r0, r3
	bl	sprintf
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r4, r0
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L16+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
