// File: /workspace/github_c_makefile_star2_O0/darwin-on-arm[P]darwin-sdk/developer_cmds/asa/asa.c
// Function: asa
static void
asa(f)
	FILE *f;
{
	char *buf;
	size_t len;

	if ((buf = fgetln (f, &len)) != NULL) {
		if (buf[len - 1] == '\n')
			buf[--len] = '\0';
		/* special case the first line  */
		switch (buf[0]) {
		case '0':
			putchar ('\n');
			break;
		case '1':
			putchar ('\f');
			break;
		}

		if (len > 1 && buf[0] && buf[1]) {
			printf("%.*s", (int)(len - 1), buf + 1);
		}

		while ((buf = fgetln(f, &len)) != NULL) {
			if (buf[len - 1] == '\n')
				buf[--len] = '\0';
			switch (buf[0]) {
			default:
			case ' ':
				putchar ('\n');
				break;
			case '0':
				putchar ('\n');
				putchar ('\n');
				break;
			case '1':
				putchar ('\n');
				putchar ('\f');
				break;
			case '+':
				putchar ('\r');
				break;
			}

			if (len > 1 && buf[0] && buf[1]) {
				printf("%.*s", (int)(len - 1), buf + 1);
			}
		}

		putchar ('\n');
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x14d0
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x14bb
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x1344
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, %rdx
addq $-0x1, %rdx
movq %rdx, -0x18(%rbp)
movb $0x0, -0x1(%rax,%rcx)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0x1c(%rbp)
subl $0x30, %eax
je 0x135f
jmp 0x1355
movl -0x1c(%rbp), %eax
subl $0x31, %eax
je 0x136b
jmp 0x1375
movl $0xa, %edi
callq 0x1030
jmp 0x1375
movl $0xc, %edi
callq 0x1030
cmpq $0x1, -0x18(%rbp)
jbe 0x13b5
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x13b5
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x13b5
movq -0x18(%rbp), %rax
subq $0x1, %rax
movl %eax, %esi
movq -0x10(%rbp), %rdx
addq $0x1, %rdx
leaq 0xca6(%rip), %rdi       # 0x2054
movb $0x0, %al
callq 0x1070
jmp 0x13b7
movq -0x8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x14d0
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x14b1
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x13ff
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, %rdx
addq $-0x1, %rdx
movq %rdx, -0x18(%rbp)
movb $0x0, -0x1(%rax,%rcx)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
addl $-0x20, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x11, %eax
ja 0x1428
movq -0x28(%rbp), %rax
leaq 0xbe5(%rip), %rcx       # 0x2004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x142a
movl $0xa, %edi
callq 0x1030
jmp 0x146c
movl $0xa, %edi
callq 0x1030
movl $0xa, %edi
callq 0x1030
jmp 0x146c
movl $0xa, %edi
callq 0x1030
movl $0xc, %edi
callq 0x1030
jmp 0x146c
movl $0xd, %edi
callq 0x1030
cmpq $0x1, -0x18(%rbp)
jbe 0x14ac
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x14ac
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x14ac
movq -0x18(%rbp), %rax
subq $0x1, %rax
movl %eax, %esi
movq -0x10(%rbp), %rdx
addq $0x1, %rdx
leaq 0xbaf(%rip), %rdi       # 0x2054
movb $0x0, %al
callq 0x1070
jmp 0x13b7
movl $0xa, %edi
callq 0x1030
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)