	.file	"154827414.c"
	.intel_syntax noprefix
	.text
	.type	ceq, @function
ceq:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -4[rbp], dl
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ceq, .-ceq
	.type	substr, @function
substr:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, ecx
	mov	BYTE PTR -36[rbp], dl
	mov	BYTE PTR -40[rbp], al
	mov	BYTE PTR -2[rbp], 0
	mov	BYTE PTR -1[rbp], 0
	cmp	BYTE PTR -40[rbp], 0
	jne	.L11
	mov	eax, 1
	jmp	.L5
.L11:
	nop
.L4:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	movzx	ecx, BYTE PTR -2[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	ceq
	test	al, al
	jne	.L12
	mov	eax, 0
	jmp	.L5
.L12:
	nop
.L7:
	mov	BYTE PTR -1[rbp], 1
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	cmp	al, BYTE PTR -36[rbp]
	jnb	.L8
	movzx	eax, BYTE PTR -40[rbp]
	cmp	al, BYTE PTR -1[rbp]
	jne	.L4
	mov	eax, 1
	jmp	.L5
.L8:
	mov	eax, 0
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	substr, .-substr
	.section	.rodata
	.align 32
	.type	inputs, @object
	.size	inputs, 94
inputs:
	.ascii	" \"$%&'()*+,-.!/0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ["
	.ascii	"\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
	.text
	.type	foo, @function
foo:
.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, 64
	mov	ecx, edi
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -52[rbp], dl
	mov	BYTE PTR -56[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	edx, BYTE PTR -56[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, 11
	mov	rdi, rax
	call	substr
	test	al, al
	je	.L18
	mov	BYTE PTR -41[rbp], 0
	jmp	.L15
.L16:
	movzx	eax, BYTE PTR -41[rbp]
	cdqe
	movzx	eax, BYTE PTR -25[rbp+rax]
	movzx	eax, al
	movzx	ecx, BYTE PTR -41[rbp]
	cdqe
	lea	rdx, inputs[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	mov	BYTE PTR -17[rbp+rax], dl
	movzx	eax, BYTE PTR -41[rbp]
	add	eax, 1
	mov	BYTE PTR -41[rbp], al
.L15:
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, BYTE PTR -52[rbp]
	jb	.L16
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	foo, .-foo
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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, DWORD PTR -16[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -12[rbp]
	movzx	eax, al
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	foo
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"154827414.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ceq, %function
ceq:
	@ 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
	mov	r2, r1
	strb	r3, [fp, #-5]
	mov	r3, r2
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ceq, .-ceq
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	substr, %function
substr:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-21]
	mov	r3, r2
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	b	.L5
.L11:
	nop
.L4:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	ceq
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	b	.L5
.L12:
	nop
.L7:
	mov	r3, #1
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L8
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	mov	r3, #1
	b	.L5
.L8:
	mov	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	substr, .-substr
	.section	.rodata
	.align	2
	.type	inputs, %object
	.size	inputs, 94
inputs:
	.ascii	" \"$%&'()*+,-.!/0123456789:;<=>?@ABCDEFGHIJKLMNOPQR"
	.ascii	"STUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, r0
	str	r1, [fp, #-44]
	strb	r3, [fp, #-37]
	mov	r3, r2
	strb	r3, [fp, #-38]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	mov	r2, #11
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-32]
	bl	substr
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	strb	r3, [fp, #-33]
	b	.L15
.L16:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	ldr	r2, .L19+4
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-16]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-33]
.L15:
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L16
.L18:
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	inputs
	.size	foo, .-foo
	.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
	ldr	r3, [fp, #-16]
	and	r0, r3, #255
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, [fp, #-8]
	bl	foo
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
