	.file	"57950464.c"
	.intel_syntax noprefix
	.text
	.globl	curr
	.bss
	.align 4
	.type	curr, @object
	.size	curr, 4
curr:
	.zero	4
	.globl	str
	.align 32
	.type	str, @object
	.size	str, 512
str:
	.zero	512
	.section	.rodata
.LC0:
	.string	"Invalid String"
	.text
	.globl	invalid
	.type	invalid, @function
invalid:
.LFB6:
	.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]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	invalid, .-invalid
	.section	.rodata
.LC1:
	.string	"Valid String"
	.text
	.globl	valid
	.type	valid, @function
valid:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	valid, .-valid
	.globl	S
	.type	S, @function
S:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 97
	jne	.L4
	mov	eax, DWORD PTR curr[rip]
	add	eax, 1
	mov	DWORD PTR curr[rip], eax
	mov	eax, 0
	call	A
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 99
	jne	.L5
	mov	eax, DWORD PTR curr[rip]
	add	eax, 1
	mov	DWORD PTR curr[rip], eax
	mov	eax, 0
	call	B
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 101
	jne	.L6
	mov	eax, DWORD PTR curr[rip]
	add	eax, 1
	mov	DWORD PTR curr[rip], eax
	jmp	.L3
.L6:
	mov	eax, 0
	call	invalid
	jmp	.L3
.L5:
	mov	eax, 0
	call	invalid
	jmp	.L3
.L4:
	mov	eax, 0
	call	invalid
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	S, .-S
	.globl	A
	.type	A, @function
A:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 98
	jne	.L9
	mov	eax, DWORD PTR curr[rip]
	add	eax, 1
	mov	DWORD PTR curr[rip], eax
	mov	eax, 0
	call	A_
	jmp	.L8
.L9:
	mov	eax, 0
	call	invalid
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	A, .-A
	.globl	A_
	.type	A_, @function
A_:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 98
	jne	.L14
	mov	eax, DWORD PTR curr[rip]
	add	eax, 1
	mov	DWORD PTR curr[rip], eax
	mov	eax, 0
	call	A_
	nop
.L14:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	A_, .-A_
	.globl	B
	.type	B, @function
B:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 100
	jne	.L16
	mov	eax, DWORD PTR curr[rip]
	add	eax, 1
	mov	DWORD PTR curr[rip], eax
	jmp	.L15
.L16:
	mov	eax, 0
	call	invalid
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	B, .-B
	.section	.rodata
	.align 8
.LC2:
	.string	"Enter a string (Mark end of string with $):"
.LC3:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rsi, str[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	S
	mov	eax, DWORD PTR curr[rip]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 36
	jne	.L19
	mov	eax, 0
	call	valid
	jmp	.L20
.L19:
	mov	eax, 0
	call	invalid
.L20:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"57950464.c"
	.text
	.global	curr
	.bss
	.align	2
	.type	curr, %object
	.size	curr, 4
curr:
	.space	4
	.comm	str,512,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid String\000"
	.text
	.align	2
	.global	invalid
	.syntax unified
	.arm
	.fpu softvfp
	.type	invalid, %function
invalid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mvn	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	invalid, .-invalid
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Valid String\000"
	.text
	.align	2
	.global	valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	valid, %function
valid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	puts
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	valid, .-valid
	.align	2
	.global	S
	.syntax unified
	.arm
	.fpu softvfp
	.type	S, %function
S:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, .L12+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L8
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	bl	A
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, .L12+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L9
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	bl	B
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, .L12+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #101
	bne	.L10
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	pop	{fp, pc}
.L10:
	bl	invalid
	pop	{fp, pc}
.L9:
	bl	invalid
	pop	{fp, pc}
.L8:
	bl	invalid
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	curr
	.word	str
	.size	S, .-S
	.align	2
	.global	A
	.syntax unified
	.arm
	.fpu softvfp
	.type	A, %function
A:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L15
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17
	str	r3, [r2]
	bl	A_
	pop	{fp, pc}
.L15:
	bl	invalid
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	curr
	.word	str
	.size	A, .-A
	.align	2
	.global	A_
	.syntax unified
	.arm
	.fpu softvfp
	.type	A_, %function
A_:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, .L23+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L22
	ldr	r3, .L23
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23
	str	r3, [r2]
	bl	A_
	nop
.L22:
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	curr
	.word	str
	.size	A_, .-A_
	.align	2
	.global	B
	.syntax unified
	.arm
	.fpu softvfp
	.type	B, %function
B:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, .L28+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L26
	ldr	r3, .L28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L28
	str	r3, [r2]
	pop	{fp, pc}
.L26:
	bl	invalid
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	curr
	.word	str
	.size	B, .-B
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Enter a string (Mark end of string with $):\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L34
	bl	puts
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	__isoc99_scanf
	bl	S
	ldr	r3, .L34+12
	ldr	r3, [r3]
	ldr	r2, .L34+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L31
	bl	valid
	b	.L32
.L31:
	bl	invalid
.L32:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC2
	.word	str
	.word	.LC3
	.word	curr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
