// File: martinda3[P]Compiler/src/JVM/JVMgenerateProgram.cpp
// Function: toyc::JVMgenerateProgram::gen_input_stream_store(toyc::JVMtargetCode*)
void JVMgenerateProgram::gen_input_stream_store(JVMtargetCode *tc) {
      tc->add(new NEW(SCANNER));
      tc->add(new DUP());
      tc->add(new GETSTATIC(INPUT_FIELD_SPEC,INPUT_DESCRIPTOR));
      tc->add(new INVOKESPECIAL(SCANNER_CONSTRUCTOR));
      JVMgenUtils::gen_ASTORE(*symTable->getSym(symTable->find("System.in")),tc);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x128(%rbp)
movl $0x30, %edi
callq 0x9350
movq %rax, -0x120(%rbp)
movb $0x1, -0x35(%rbp)
leaq 0x18aba(%rip), %rsi     # 0x45840
leaq -0x28(%rbp), %rdi
callq 0x9170
jmp 0x2cd91
movq -0x120(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x23fe0
jmp 0x2cda3
movq -0x120(%rbp), %rcx
movb $0x0, -0x35(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x130(%rbp)
je 0x2cdcf
movq -0x120(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rdi
movq -0x130(%rbp), %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x2cde7
leaq -0x28(%rbp), %rdi
callq 0x9658
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
movl $0x10, %edi
callq 0x9350
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x138(%rbp)
callq 0x24b10
jmp 0x2ce19
movq -0x138(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x148(%rbp)
je 0x2ce41
movq -0x138(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rdi
movq -0x148(%rbp), %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
movq -0x8(%rbp), %rax
movq %rax, -0x158(%rbp)
movl $0x50, %edi
callq 0x9350
movq %rax, -0x150(%rbp)
movb $0x1, -0x79(%rbp)
leaq 0x18aa2(%rip), %rsi     # 0x45920
leaq -0x58(%rbp), %rdi
callq 0x9170
jmp 0x2ce89
leaq 0x18ab0(%rip), %rsi     # 0x45940
leaq -0x78(%rbp), %rdi
callq 0x9170
jmp 0x2ce9b
movq -0x150(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x217d0
jmp 0x2ceb1
movq -0x150(%rbp), %rcx
movb $0x0, -0x79(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x160(%rbp)
je 0x2cedd
movq -0x150(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rdi
movq -0x160(%rbp), %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x2cef5
leaq -0x78(%rbp), %rdi
callq 0x9658
leaq -0x58(%rbp), %rdi
callq 0x9658
movq -0x8(%rbp), %rax
movq %rax, -0x170(%rbp)
movl $0x30, %edi
callq 0x9350
movq %rax, -0x168(%rbp)
movb $0x1, -0xa1(%rbp)
leaq 0x18a8f(%rip), %rsi     # 0x459c0
leaq -0xa0(%rbp), %rdi
callq 0x9170
jmp 0x2cf3f
movq -0x168(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x24c00
jmp 0x2cf54
movq -0x168(%rbp), %rcx
movb $0x0, -0xa1(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x178(%rbp)
je 0x2cf83
movq -0x168(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x2cf9b
leaq -0xa0(%rbp), %rdi
callq 0x9658
leaq 0x186b2(%rip), %rax     # 0x45660
movq (%rax), %rax
movq %rax, -0x190(%rbp)
movq %rax, -0x188(%rbp)
leaq -0x111(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x95c0
movq -0x180(%rbp), %rdx
leaq 0x64fb(%rip), %rsi      # 0x334db
leaq -0x110(%rbp), %rdi
callq 0x13550
jmp 0x2cfee
movq -0x190(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x31840
movl %eax, -0x194(%rbp)
jmp 0x2d009
movl -0x194(%rbp), %esi
movq -0x188(%rbp), %rdi
callq 0x31930
movq %rax, -0x1a0(%rbp)
jmp 0x2d024
movq -0x1a0(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x2b350
jmp 0x2d039
movq -0x8(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x276b0
jmp 0x2d04b
leaq -0xf0(%rbp), %rdi
callq 0x2b3d0
leaq -0x110(%rbp), %rdi
callq 0x9658
leaq -0x111(%rbp), %rdi
callq 0x93b0
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2d09b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x9658
testb $0x1, -0x35(%rbp)
jne 0x2d0a3
jmp 0x2d0b4
movq -0x120(%rbp), %rdi
movl $0x30, %esi
callq 0x9360
jmp 0x2d1c3
movq -0x138(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x10, %esi
callq 0x9360
jmp 0x2d1c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2d115
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2d10c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x9658
leaq -0x58(%rbp), %rdi
callq 0x9658
testb $0x1, -0x79(%rbp)
jne 0x2d11d
jmp 0x2d12e
movq -0x150(%rbp), %rdi
movl $0x50, %esi
callq 0x9360
jmp 0x2d1c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2d159
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x9658
testb $0x1, -0xa1(%rbp)
jne 0x2d164
jmp 0x2d175
movq -0x168(%rbp), %rdi
movl $0x30, %esi
callq 0x9360
jmp 0x2d1c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2d1b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2d1ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x2b3d0
leaq -0x110(%rbp), %rdi
callq 0x9658
leaq -0x111(%rbp), %rdi
callq 0x93b0
movq -0x30(%rbp), %rdi
callq 0x95b0
nopl (%rax)