// File: /workspace/github_cpp_makefile_star2_O3/akitsu-sanae[P]adtpp/src/main.cpp
// Function: main
int main(int argc, const char* argv[]) {
    if (argc == 1) {
        std::cout << parse(std::cin) << std::endl;
    } else if (argc == 2) {
        std::ifstream input{argv[1]};
        std::cout << parse(input) << std::endl;
    } else {
        std::cerr << format("Usage: {} [filename]", argv[0]) << std::endl;
        std::cerr<< "if filename is not given, read from stdin" << std::endl;
        return -1;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rsi, %r14
cmpl $0x2, %edi
je 0x71de
cmpl $0x1, %edi
jne 0x728a
movq 0x3e7d(%rip), %rsi      # 0xafd8
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
callq 0x6e04
movq 0x3e4e(%rip), %rdi      # 0xafc0
movq %rbx, %rsi
callq 0x25ec
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
callq 0x7afa
movq -0x20(%rbx), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x7283
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x7283
movq 0x8(%r14), %rsi
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x22c0
leaq 0xc8(%rsp), %rdi
movq %rbx, %rsi
callq 0x6e04
movq 0x3db2(%rip), %rdi      # 0xafc0
leaq 0xc8(%rsp), %rsi
callq 0x25ec
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
callq 0x7afa
movq -0x20(%rbx), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x7276
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x100(%rsp), %rdi
callq 0x2060
xorl %eax, %eax
jmp 0x7658
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x13d2(%rip), %rsi      # 0x8670
leaq 0x13df(%rip), %rdx      # 0x8684
leaq 0x88(%rsp), %rdi
callq 0x6a66
leaq 0x1058(%rip), %rsi      # 0x8311
leaq 0x88(%rsp), %rdi
movl $0x2, %ecx
xorl %edx, %edx
callq 0x2290
cmpq $-0x1, %rax
je 0x7667
movq %rax, %rbx
leaq 0x2(%rax), %rdx
leaq 0x88(%rsp), %rsi
movq 0x8(%rsi), %rcx
leaq 0xc8(%rsp), %rdi
callq 0x21c0
leaq 0x100(%rsp), %rdi
callq 0x2110
leaq 0x110(%rsp), %r15
movq (%r14), %r14
testq %r14, %r14
je 0x732c
movq %r14, %rdi
callq 0x20d0
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x21e0
jmp 0x734d
movq 0x110(%rsp), %rax
movq -0x18(%rax), %rax
addq %rax, %r15
movl 0x130(%rsp,%rax), %esi
orl $0x1, %esi
movq %r15, %rdi
callq 0x2270
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x21c0
leaq 0x118(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x2250
leaq 0xb8(%rsp), %rbx
movq -0x10(%rbx), %rcx
movq -0x8(%rbx), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %rbx, %rcx
je 0x73a4
movq 0xb8(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x73c7
leaq 0x78(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x73c2
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x73d6
leaq 0xa8(%rsp), %rdi
callq 0x2090
jmp 0x73e4
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x7408
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x740e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0xc8(%rsp), %rsi
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xd0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x69d0
leaq 0x18(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x7476
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x7494
movl $0xf, %edi
cmpq %r14, %rsi
je 0x748f
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x74a0
leaq 0x8(%rsp), %rdi
callq 0x2090
jmp 0x74ae
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x74d2
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x74d8
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x750c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7523
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x753e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xa8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x755b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x3a3e(%rip), %rsi      # 0xafa0
leaq 0x100(%rsp), %rdi
callq 0x2140
leaq 0x180(%rsp), %rdi
callq 0x20a0
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x759d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x3a42(%rip), %rbx      # 0xaff0
movq %rbx, %rdi
callq 0x21e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75fb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x7618
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x1066(%rip), %rsi      # 0x8685
movl $0x29, %edx
movq %rbx, %rdi
callq 0x21e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x1, %edi
callq 0x20e0
leaq 0x3708(%rip), %rsi      # 0xad80
movq %rax, %rdi
xorl %edx, %edx
callq 0x2280
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x76a1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x76a1
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76c1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x76c1
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76e1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x76e1
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7709
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x7709
jmp 0x7706
movq %rax, %rbx
movq 0x3890(%rip), %rsi      # 0xafa0
leaq 0x100(%rsp), %rdi
callq 0x2140
leaq 0x180(%rsp), %rdi
callq 0x20a0
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7777
movq 0xd8(%rsp), %rsi
jmp 0x776f
movq %rax, %rbx
jmp 0x772a
movq %rax, %rbx
jmp 0x77c5
movq %rax, %rbx
jmp 0x77a6
movq %rax, %rbx
jmp 0x7777
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7777
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x77c5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x77c5
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x7804
leaq 0x100(%rsp), %rdi
callq 0x2060
jmp 0x77c5
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x7804
movq %rbx, %rdi
callq 0x22a0
nop