// File: /workspace/github_cpp_makefile_star2_O1/AndrewAlbert[P]Compiler-Theory/SourceCode/parser.cpp
// Function: Parser::IfStatement()
bool Parser::IfStatement(){
	/* flag to determine if at least one statement occured after 'then' and 'else' 
	 * type and size variables are unused but needed to perfrom the call to Expression(type, size) */
	bool flag;
	int type, size;
	string labelTrue, labelFalse, labelEnd;
	bool resyncEnabled = true;
	
	//determine if this is the start of an if statement
	if( !CheckToken(T_IF) ) return false;
	
	//get expression for conditional statement: '( <expression> )'
	if( !CheckToken(T_LPAREN) ) ReportLineError("expected '(' before condition in if statement");
	else if( !Expression(type, size) ) ReportLineError("Expected condition for if statement");
	else if (type != TYPE_BOOL) ReportLineError("Conditional expression in if statement must evaluate to type bool.");
	else if( !CheckToken(T_RPAREN) ) ReportLineError("expected ')' after condition in if statement");
	
	// GEN: Check result of expression
	labelTrue = generator->newLabel( "IfTrue" );
	labelFalse = generator->newLabel( "IfFalse" );
	labelEnd = generator->newLabel( "IfEnd" );
	generator->condBranch(labelTrue, labelFalse);;
	
	/* Get statements to be evaluated if the statement's expression evaluates to true. 
	 * There must be at least one statement following 'then'. */
	if( CheckToken(T_THEN) ){
		generator->placeLabel( labelTrue );
		flag = false;
		while(true){
			while( Statement() ){
				flag = true;
				if( !CheckToken(T_SEMICOLON) ) ReportLineError("expected ';' after statement in conditional statement's 'if' condition",true);
			}
			if( !flag ) ReportError("expected at least one statement after 'then' in conditional statement");
			
			// goto end if after true statement
			generator->branch(labelEnd);

			/* Get statements to be evaluated if the statement's expression evaluates to false. 
		 	 * There must be at least one statement if there is an 'else' case. */
			generator->placeLabel(labelFalse);
			if(CheckToken(T_ELSE)){
				flag = false;
				resyncEnabled = true;
				while(true){
					while( Statement() ){
						flag = true;
						if( !CheckToken(T_SEMICOLON) ) ReportLineError("Expected ';' after statement in conditional statement's 'else' condition.",true);
					}
					/* check for correct closure of statement: 'end if' */
					
					// goto end if after else statement
					generator->branch(labelEnd);

					if( CheckToken(T_END) ){
						generator->placeLabel(labelEnd);
						if( !flag ) ReportError("expected at least one statement after 'else' in conditional statement.");
						if( !CheckToken(T_IF) ) ReportFatalError("missing 'if' in the 'end if' closure of conditional statement");
						return true;
					}
					else if(resyncEnabled){
						resyncEnabled = false;
						ReportLineError("Bad Line. Unable to find valid statement or 'else' or 'end' reserved keywords.");
					}
					else{
						ReportFatalError("Parser resync failed. Unable to find valid statement, 'else' or 'end if' reserved keywords.");
						return true;
					}
				}
			}
			/* check for correct closure of statement: 'end if' */
			else if( CheckToken(T_END) ){
				generator->placeLabel(labelEnd);
				if( !CheckToken(T_IF) ) ReportFatalError("missing 'if' in the 'end if' closure of the if statement");
				return true;
			}
			else if(resyncEnabled){
				resyncEnabled = false;
				ReportLineError("Bad Line. Unable to find valid statement or 'else' or 'end' reserved keywords.");
			}
			else ReportFatalError("Parser resync failed. Unable to find valid statement, 'else' or 'end if' reserved keywords.");
		}
	}
	else ReportFatalError("Expected 'then' after condition in if statement.");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq %rdi, %rbx
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x40(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl $0x110, %esi            # imm = 0x110
callq 0x5c0a
movl %eax, %ebp
testb %al, %al
je 0x9475
movq %rbx, %rdi
movl $0x12d, %esi            # imm = 0x12D
callq 0x5c0a
testb %al, %al
movb %bpl, 0x3(%rsp)
je 0x8b3e
leaq 0x2c(%rsp), %rsi
leaq 0x154(%rsp), %rdx
movq %rbx, %rdi
callq 0x8632
testb %al, %al
je 0x8b87
cmpl $0x10c, 0x2c(%rsp)      # imm = 0x10C
jne 0x8bcd
movq %rbx, %rdi
movl $0x12e, %esi            # imm = 0x12E
callq 0x5c0a
testb %al, %al
jne 0x8c21
leaq 0x2c8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x111fa(%rip), %rsi     # 0x19d02
leaq 0x1121f(%rip), %rdx     # 0x19d2e
leaq 0x2b8(%rsp), %rdi
callq 0x3c34
leaq 0x2b8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4e82
movq 0x2b8(%rsp), %rdi
jmp 0x8c11
leaq 0x328(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1111c(%rip), %rsi     # 0x19c6d
leaq 0x11142(%rip), %rdx     # 0x19c9a
leaq 0x318(%rsp), %rdi
callq 0x3c34
leaq 0x318(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4e82
movq 0x318(%rsp), %rdi
jmp 0x8c11
leaq 0x308(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x11101(%rip), %rsi     # 0x19c9b
leaq 0x1111d(%rip), %rdx     # 0x19cbe
leaq 0x2f8(%rsp), %rdi
callq 0x3c34
leaq 0x2f8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4e82
movq 0x2f8(%rsp), %rdi
jmp 0x8c11
leaq 0x2e8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x110df(%rip), %rsi     # 0x19cbf
leaq 0x1111a(%rip), %rdx     # 0x19d01
leaq 0x2d8(%rsp), %rdi
callq 0x3c34
leaq 0x2d8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4e82
movq 0x2d8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8c21
movq (%r14), %rsi
incq %rsi
callq 0x2200
movq 0x98(%rbx), %r14
leaq 0x2a8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x110f3(%rip), %rsi     # 0x19d2f
leaq 0x110f2(%rip), %rdx     # 0x19d35
leaq 0x298(%rsp), %rdi
callq 0x3c34
leaq 0xd0(%rsp), %rdi
leaq 0x298(%rsp), %rdx
movq %r14, %rsi
callq 0x15e04
leaq 0x50(%rsp), %rdi
leaq 0xd0(%rsp), %r14
movq %r14, %rsi
callq 0x2270
movq (%r14), %rdi
leaq 0xe0(%rsp), %r15
cmpq %r15, %rdi
je 0x8c9d
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x298(%rsp), %rdi
cmpq %r12, %rdi
je 0x8cba
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x98(%rbx), %r14
leaq 0x288(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x11061(%rip), %rsi     # 0x19d36
leaq 0x11061(%rip), %rdx     # 0x19d3d
leaq 0x278(%rsp), %rdi
callq 0x3c34
leaq 0xd0(%rsp), %rdi
leaq 0x278(%rsp), %rdx
movq %r14, %rsi
callq 0x15e04
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %r14
movq %r14, %rsi
callq 0x2270
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x8d2e
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x278(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d4b
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x98(%rbx), %r14
leaq 0x268(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10fd8(%rip), %rsi     # 0x19d3e
leaq 0x10fd6(%rip), %rdx     # 0x19d43
leaq 0x258(%rsp), %rdi
callq 0x3c34
leaq 0xd0(%rsp), %rdi
leaq 0x258(%rsp), %rdx
movq %r14, %rsi
callq 0x15e04
leaq 0x8(%rsp), %rdi
leaq 0xd0(%rsp), %r14
movq %r14, %rsi
callq 0x2270
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x8dbf
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x258(%rsp), %rdi
cmpq %r12, %rdi
je 0x8ddc
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x98(%rbx), %r14
leaq 0x248(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x238(%rsp), %rdi
callq 0x3ba4
leaq 0x228(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rdi
callq 0x3ba4
leaq 0x238(%rsp), %rsi
leaq 0x218(%rsp), %rdx
movq %r14, %rdi
callq 0x166d6
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x8e65
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x8e82
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
movl $0x111, %esi            # imm = 0x111
callq 0x5c0a
testb %al, %al
je 0x954b
movq 0x98(%rbx), %r14
leaq 0x208(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x3ba4
leaq 0x1f8(%rsp), %rsi
movq %r14, %rdi
callq 0x160a4
movq 0x1f8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8ef1
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2200
leaq 0x1e8(%rsp), %rbp
movb $0x1, %al
movl %eax, 0x4(%rsp)
xorl %r14d, %r14d
leaq 0x10e3b(%rip), %r13     # 0x19d44
leaq 0x10e7a(%rip), %r15     # 0x19d8a
leaq 0x1d8(%rsp), %r12
movq %rbx, %rdi
callq 0x6efc
testb %al, %al
je 0x8f7d
movq %rbx, %rdi
movl $0x12c, %esi            # imm = 0x12C
callq 0x5c0a
movb $0x1, %r14b
testb %al, %al
jne 0x8f18
movq %rbp, 0x1d8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x3c34
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x4e82
movq 0x1d8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8f18
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x8f18
testb $0x1, %r14b
jne 0x8fe1
leaq 0x140(%rsp), %rax
movq %rax, 0x130(%rsp)
leaq 0x130(%rsp), %r15
movq %r15, %rdi
leaq 0x10de6(%rip), %rsi     # 0x19d8b
leaq 0x10e24(%rip), %rdx     # 0x19dd0
callq 0x3c34
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5696
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x8fe1
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x98(%rbx), %r13
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x3ba4
movq %r13, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x167f6
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x9047
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x98(%rbx), %r13
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x3ba4
movq %r13, %rdi
leaq 0x90(%rsp), %rsi
callq 0x160a4
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x90ad
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
movl $0x112, %esi            # imm = 0x112
callq 0x5c0a
testb %al, %al
jne 0x916c
movq %rbx, %rdi
movl $0x104, %esi            # imm = 0x104
callq 0x5c0a
testb %al, %al
jne 0x9401
testb $0x1, 0x4(%rsp)
je 0x9514
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
leaq 0xf0(%rsp), %r15
movq %r15, %rdi
leaq 0x10d9c(%rip), %rsi     # 0x19ea0
leaq 0x10de3(%rip), %rdx     # 0x19eee
callq 0x3c34
leaq 0x10c2d(%rip), %r13     # 0x19d44
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x4e82
leaq 0x10c5c(%rip), %r15     # 0x19d8a
movq 0xf0(%rsp), %rdi
movl $0x0, 0x4(%rsp)
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x8f18
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2200
movl $0x0, 0x4(%rsp)
jmp 0x8f18
leaq 0x1c8(%rsp), %r14
movb $0x1, %al
movl %eax, 0x4(%rsp)
xorl %r13d, %r13d
leaq 0x10c4d(%rip), %rbp     # 0x19dd1
leaq 0x10c8f(%rip), %r15     # 0x19e1a
leaq 0x1b8(%rsp), %r12
movq %rbx, %rdi
callq 0x6efc
testb %al, %al
je 0x91f8
movq %rbx, %rdi
movl $0x12c, %esi            # imm = 0x12C
callq 0x5c0a
movb $0x1, %r13b
testb %al, %al
jne 0x9193
movq %r14, 0x1b8(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x3c34
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x4e82
movq 0x1b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9193
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x9193
movq 0x98(%rbx), %rbp
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x3ba4
movq %rbp, %rdi
leaq 0x70(%rsp), %rsi
callq 0x167f6
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x9252
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
movl $0x104, %esi            # imm = 0x104
callq 0x5c0a
testb %al, %al
jne 0x92fc
testb $0x1, 0x4(%rsp)
je 0x94dd
leaq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
leaq 0x110(%rsp), %r15
movq %r15, %rdi
leaq 0x10c0c(%rip), %rsi     # 0x19ea0
leaq 0x10c53(%rip), %rdx     # 0x19eee
callq 0x3c34
leaq 0x10b2a(%rip), %rbp     # 0x19dd1
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x4e82
leaq 0x10b5c(%rip), %r15     # 0x19e1a
movq 0x110(%rsp), %rdi
movl $0x0, 0x4(%rsp)
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x9193
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2200
movl $0x0, 0x4(%rsp)
jmp 0x9193
movq 0x98(%rbx), %r14
leaq 0x1a8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0x3ba4
movb 0x3(%rsp), %bpl
leaq 0x198(%rsp), %rsi
movq %r14, %rdi
callq 0x160a4
movq 0x198(%rsp), %rdi
cmpq %r15, %rdi
je 0x935b
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2200
testb $0x1, %r13b
jne 0x93b5
leaq 0x188(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10aa7(%rip), %rsi     # 0x19e1b
leaq 0x10ae6(%rip), %rdx     # 0x19e61
leaq 0x178(%rsp), %rdi
callq 0x3c34
leaq 0x178(%rsp), %rsi
movq %rbx, %rdi
callq 0x5696
movq 0x178(%rsp), %rdi
cmpq %r14, %rdi
je 0x93b5
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
movl $0x110, %esi            # imm = 0x110
callq 0x5c0a
testb %al, %al
jne 0x9475
leaq 0x3c8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10a85(%rip), %rsi     # 0x19e62
leaq 0x10abb(%rip), %rdx     # 0x19e9f
leaq 0x3b8(%rsp), %rdi
callq 0x3c34
leaq 0x3b8(%rsp), %rsi
movq %rbx, %rdi
callq 0x49ee
movq 0x98(%rbx), %r14
leaq 0x168(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x3ba4
movb 0x3(%rsp), %bpl
leaq 0x158(%rsp), %rsi
movq %r14, %rdi
callq 0x160a4
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x9460
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
movl $0x110, %esi            # imm = 0x110
callq 0x5c0a
testb %al, %al
je 0x9582
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9491
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x94ad
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x94c9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2200
movl %ebp, %eax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x109ff(%rip), %rsi     # 0x19eef
leaq 0x10a53(%rip), %rdx     # 0x19f4a
leaq 0x398(%rsp), %rdi
callq 0x3c34
leaq 0x398(%rsp), %rsi
movq %rbx, %rdi
callq 0x49ee
leaq 0x368(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x109c8(%rip), %rsi     # 0x19eef
leaq 0x10a1c(%rip), %rdx     # 0x19f4a
leaq 0x358(%rsp), %rdi
callq 0x3c34
leaq 0x358(%rsp), %rsi
movq %rbx, %rdi
callq 0x49ee
leaq 0x348(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10a26(%rip), %rsi     # 0x19f84
leaq 0x10a4f(%rip), %rdx     # 0x19fb4
leaq 0x338(%rsp), %rdi
callq 0x3c34
leaq 0x338(%rsp), %rsi
movq %rbx, %rdi
callq 0x49ee
leaq 0x388(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x109b6(%rip), %rsi     # 0x19f4b
leaq 0x109e7(%rip), %rdx     # 0x19f83
leaq 0x378(%rsp), %rdi
callq 0x3c34
leaq 0x378(%rsp), %rsi
movq %rbx, %rdi
callq 0x49ee
movq %rax, %rbx
movq 0x2b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x2c8(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x2d8(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x2e8(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x378(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x388(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x2f8(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x308(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x3b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x3c8(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x188(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x998c
movq 0x168(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0x338(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x348(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x318(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x328(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r15, %rdi
je 0x998c
movq 0x1a8(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r15, %rdi
je 0x998c
movq 0x208(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x9771
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x9771
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x998c
movq 0x248(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0x258(%rsp), %rdi
cmpq %r12, %rdi
je 0x998c
movq 0x268(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r12, %rdi
je 0x998c
movq 0x288(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r12, %rdi
je 0x998c
movq 0x2a8(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x358(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x368(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x398(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x3a8(%rsp), %rsi
jmp 0x997b
jmp 0x9989
jmp 0x9989
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x998c
movq 0x140(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x998c
movq 0x100(%rsp), %rsi
jmp 0x997b
jmp 0x9989
jmp 0x9989
movq %rax, %rbx
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x998c
movq 0x120(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x998c
movq 0x80(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x998c
movq 0xc0(%rsp), %rsi
jmp 0x997b
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x998c
movq 0xa0(%rsp), %rsi
jmp 0x997b
jmp 0x9989
jmp 0x9989
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x998c
movq 0x1c8(%rsp), %rsi
jmp 0x997b
jmp 0x9989
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x998c
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2200
jmp 0x998c
jmp 0x9989
jmp 0x9989
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x99a8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x99c4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2200
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x99e0
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x2330