// File: tomfunkhouser[P]gaps/apps/sflprocess/sflprocess.cpp
// Function: ParseConstraint(int&, char**&)
R3SurfelConstraint *
ParseConstraint(int& argc, char **& argv)
{
  // Check arguments
  if (argc == 0) return NULL;

  // Check constraint type
  argc--; argv++;
  const char *constraint_type = *argv;
  if (!strcmp(constraint_type, "BoundingBox")) {
    // Read bounding box coordinates
    argc--; argv++; double x1 = atof(*argv);
    argc--; argv++; double y1 = atof(*argv);
    argc--; argv++; double z1 = atof(*argv);
    argc--; argv++; double x2 = atof(*argv);
    argc--; argv++; double y2 = atof(*argv);
    argc--; argv++; double z2 = atof(*argv);
    R3Box box(x1, y1, z1, x2, y2, z2);
    R3SurfelBoxConstraint *constraint = new R3SurfelBoxConstraint(box);
    return constraint;
  }
  else if (!strcmp(constraint_type, "OrientedBoundingBox")) {
    // Read bounding box coordinates
    argc--; argv++; double cx = atof(*argv);
    argc--; argv++; double cy = atof(*argv);
    argc--; argv++; double cz = atof(*argv);
    argc--; argv++; double ax1 = atof(*argv);
    argc--; argv++; double ay1 = atof(*argv);
    argc--; argv++; double az1 = atof(*argv);
    argc--; argv++; double ax2 = atof(*argv);
    argc--; argv++; double ay2 = atof(*argv);
    argc--; argv++; double az2 = atof(*argv);
    argc--; argv++; double r1 = atof(*argv);
    argc--; argv++; double r2 = atof(*argv);
    argc--; argv++; double r3 = atof(*argv);
    R3Point center(cx, cy, cz);
    R3Vector axis1(ax1, ay1, az1);
    R3Vector axis2(ax2, ay2, az2);
    R3OrientedBox obb(center, axis1, axis2, r1, r2, r3);
    R3SurfelOrientedBoxConstraint *constraint = new R3SurfelOrientedBoxConstraint(obb);
    return constraint;
  }
  else if (!strcmp(constraint_type, "OverheadGrid")) {
    // Read overhead grid
    argc--; argv++; const char *overhead_grid_name = *argv;
    R2Grid *overhead_grid = ReadGrid(overhead_grid_name);
    if (!overhead_grid) return NULL;

    // Parse comparison type
    argc--; argv++; const char *comparison_type_string = *argv;
    int comparison_type = 0;
    if (!strcmp(comparison_type_string, "NotEqual")) comparison_type = R3_SURFEL_CONSTRAINT_NOT_EQUAL;
    else if (!strcmp(comparison_type_string, "Equal")) comparison_type = R3_SURFEL_CONSTRAINT_EQUAL;
    else if (!strcmp(comparison_type_string, "Greater")) comparison_type = R3_SURFEL_CONSTRAINT_GREATER;
    else if (!strcmp(comparison_type_string, "GreaterOrEqual")) comparison_type = R3_SURFEL_CONSTRAINT_GREATER_OR_EQUAL;
    else if (!strcmp(comparison_type_string, "Less")) comparison_type = R3_SURFEL_CONSTRAINT_LESS;
    else if (!strcmp(comparison_type_string, "LessOrEqual")) comparison_type = R3_SURFEL_CONSTRAINT_LESS_OR_EQUAL;
    else { RNFail("Unrecognized constraint comparison type: %s\n", comparison_type_string); return NULL; }

    // Parse surfel operand
    argc--; argv++; const char *surfel_operand_string = *argv;
    RNScalar surfel_operand_value = 0;
    int surfel_operand_type = R3_SURFEL_CONSTRAINT_OPERAND;
    if (!strcmp(surfel_operand_string, "X")) surfel_operand_type = R3_SURFEL_CONSTRAINT_X;
    else if (!strcmp(surfel_operand_string, "Y")) surfel_operand_type = R3_SURFEL_CONSTRAINT_Y;
    else if (!strcmp(surfel_operand_string, "Z")) surfel_operand_type = R3_SURFEL_CONSTRAINT_Z;
    else if (CheckForNumber(surfel_operand_string)) surfel_operand_value = atof(surfel_operand_string); 
    else { RNFail("Unrecognized surfel operand: %s\n", surfel_operand_string); return NULL; }
  
    // Parse grid operand
    argc--; argv++; const char *grid_operand_string = *argv;
    RNScalar grid_operand_value = 0;
    int grid_operand_type = R3_SURFEL_CONSTRAINT_OPERAND;
    if (!strcmp(grid_operand_string, "Value")) grid_operand_type = R3_SURFEL_CONSTRAINT_VALUE;
    else if (CheckForNumber(grid_operand_string)) grid_operand_value = atof(grid_operand_string); 
    else { RNFail("Unrecognized grid operand: %s\n", grid_operand_string); return NULL; }

    // Parse epsilon
    argc--; argv++; double epsilon = atof(*argv);

    // Create constraint
    R3SurfelOverheadGridConstraint *constraint = new R3SurfelOverheadGridConstraint(
      overhead_grid, comparison_type, 
      surfel_operand_type, grid_operand_type, 
      surfel_operand_value, grid_operand_value, 
      epsilon);
    return constraint;
  }

  // Did not recognize constraint type
  RNFail("Unrecognized constraint type: %s\n", constraint_type); 
  return NULL;
}

// Assembly:
subq $0x268, %rsp            # imm = 0x268
movq %rdi, 0x258(%rsp)
movq %rsi, 0x250(%rsp)
movq 0x258(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x19b35
movq $0x0, 0x260(%rsp)
jmp 0x1a66c
movq 0x258(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x248(%rsp)
movq 0x248(%rsp), %rdi
leaq 0x1de509(%rip), %rsi    # 0x1f8084
callq 0x16a80
cmpl $0x0, %eax
jne 0x19dd3
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x240(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x238(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x230(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x228(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x220(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x218(%rsp)
movsd 0x240(%rsp), %xmm0
movsd 0x238(%rsp), %xmm1
movsd 0x230(%rsp), %xmm2
movsd 0x228(%rsp), %xmm3
movsd 0x220(%rsp), %xmm4
movsd 0x218(%rsp), %xmm5
leaq 0x1e0(%rsp), %rdi
callq 0xf7d20
movl $0x40, %edi
callq 0x16740
movq %rax, 0x30(%rsp)
jmp 0x19d45
movq 0x30(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
callq 0x4fdb0
jmp 0x19d59
movq 0x30(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x1d8(%rsp), %rax
movq %rax, 0x260(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0x263d0
jmp 0x1a66c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x19dc1
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
movl $0x40, %esi
callq 0x16750
leaq 0x1e0(%rsp), %rdi
callq 0x263d0
jmp 0x1a67c
movq 0x248(%rsp), %rdi
leaq 0x1de29a(%rip), %rsi    # 0x1f807c
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a21d
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x1c0(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x1b8(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x1b0(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x1a8(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x1a0(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x198(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x190(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x188(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x180(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x178(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x170(%rsp)
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x168(%rsp)
movsd 0x1c0(%rsp), %xmm0
movsd 0x1b8(%rsp), %xmm1
movsd 0x1b0(%rsp), %xmm2
leaq 0x150(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x126050
movsd 0x1a8(%rsp), %xmm0
movsd 0x1a0(%rsp), %xmm1
movsd 0x198(%rsp), %xmm2
leaq 0x138(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x1271b0
movsd 0x190(%rsp), %xmm0
movsd 0x188(%rsp), %xmm1
movsd 0x180(%rsp), %xmm2
leaq 0x120(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x1271b0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movsd 0x178(%rsp), %xmm0
movsd 0x170(%rsp), %xmm1
movsd 0x168(%rsp), %xmm2
leaq 0xa0(%rsp), %rdi
callq 0xf5950
movl $0x88, %edi
callq 0x16740
movq %rax, 0x28(%rsp)
jmp 0x1a18f
movq 0x28(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x4fec0
jmp 0x1a1a3
movq 0x28(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x260(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x263e0
jmp 0x1a66c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x1a20b
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
movl $0x88, %esi
callq 0x16750
leaq 0xa0(%rsp), %rdi
callq 0x263e0
jmp 0x1a67c
movq 0x248(%rsp), %rdi
leaq 0x1dde64(%rip), %rsi    # 0x1f8090
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a646
movq 0x258(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rdi
callq 0x1a690
movq %rax, 0x88(%rsp)
cmpq $0x0, 0x88(%rsp)
jne 0x1a2a2
movq $0x0, 0x260(%rsp)
jmp 0x1a66c
movq 0x258(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x80(%rsp)
movl $0x0, 0x7c(%rsp)
movq 0x80(%rsp), %rdi
leaq 0x1dddad(%rip), %rsi    # 0x1f809d
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a307
movl $0x0, 0x7c(%rsp)
jmp 0x1a3ed
movq 0x80(%rsp), %rdi
leaq 0x1ddda1(%rip), %rsi    # 0x1f80b7
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a32d
movl $0x1, 0x7c(%rsp)
jmp 0x1a3eb
movq 0x80(%rsp), %rdi
leaq 0x1ddd6a(%rip), %rsi    # 0x1f80a6
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a353
movl $0x2, 0x7c(%rsp)
jmp 0x1a3e9
movq 0x80(%rsp), %rdi
leaq 0x1ddd4c(%rip), %rsi    # 0x1f80ae
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a376
movl $0x3, 0x7c(%rsp)
jmp 0x1a3e7
movq 0x80(%rsp), %rdi
leaq 0x1ddd38(%rip), %rsi    # 0x1f80bd
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a399
movl $0x4, 0x7c(%rsp)
jmp 0x1a3e5
movq 0x80(%rsp), %rdi
leaq 0x1ddd1a(%rip), %rsi    # 0x1f80c2
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a3bc
movl $0x5, 0x7c(%rsp)
jmp 0x1a3e3
movq 0x80(%rsp), %rsi
leaq 0x1ddd03(%rip), %rdi    # 0x1f80ce
movb $0x0, %al
callq 0x172cb0
movq $0x0, 0x260(%rsp)
jmp 0x1a66c
jmp 0x1a3e5
jmp 0x1a3e7
jmp 0x1a3e9
jmp 0x1a3eb
jmp 0x1a3ed
movq 0x258(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x70(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x68(%rsp)
movl $0x0, 0x64(%rsp)
movq 0x70(%rsp), %rdi
leaq 0x1f01b4(%rip), %rsi    # 0x20a5f2
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a455
movl $0x2, 0x64(%rsp)
jmp 0x1a4e0
movq 0x70(%rsp), %rdi
leaq 0x1ddc9a(%rip), %rsi    # 0x1f80fb
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a475
movl $0x3, 0x64(%rsp)
jmp 0x1a4de
movq 0x70(%rsp), %rdi
leaq 0x1ddc7c(%rip), %rsi    # 0x1f80fd
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a495
movl $0x4, 0x64(%rsp)
jmp 0x1a4dc
movq 0x70(%rsp), %rdi
callq 0x1a890
cmpl $0x0, %eax
je 0x1a4b6
movq 0x70(%rsp), %rdi
callq 0x16950
movsd %xmm0, 0x68(%rsp)
jmp 0x1a4da
movq 0x70(%rsp), %rsi
leaq 0x1ddc3d(%rip), %rdi    # 0x1f80ff
movb $0x0, %al
callq 0x172cb0
movq $0x0, 0x260(%rsp)
jmp 0x1a66c
jmp 0x1a4dc
jmp 0x1a4de
jmp 0x1a4e0
movq 0x258(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x58(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
movl $0x0, 0x4c(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x1e57eb(%rip), %rsi    # 0x1ffd1c
callq 0x16a80
cmpl $0x0, %eax
jne 0x1a545
movl $0x1, 0x4c(%rsp)
jmp 0x1a58c
movq 0x58(%rsp), %rdi
callq 0x1a890
cmpl $0x0, %eax
je 0x1a566
movq 0x58(%rsp), %rdi
callq 0x16950
movsd %xmm0, 0x50(%rsp)
jmp 0x1a58a
movq 0x58(%rsp), %rsi
leaq 0x1ddbae(%rip), %rdi    # 0x1f8120
movb $0x0, %al
callq 0x172cb0
movq $0x0, 0x260(%rsp)
jmp 0x1a66c
jmp 0x1a58c
movq 0x258(%rsp), %rax
movl (%rax), %ecx
decl %ecx
movl %ecx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0x16950
movsd %xmm0, 0x40(%rsp)
movl $0x38, %edi
callq 0x16740
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rsi
movl 0x7c(%rsp), %edx
movl 0x64(%rsp), %ecx
movl 0x4c(%rsp), %r8d
movsd 0x68(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
movsd 0x40(%rsp), %xmm2
callq 0x510a0
jmp 0x1a608
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x260(%rsp)
jmp 0x1a66c
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
movl $0x38, %esi
callq 0x16750
jmp 0x1a67c
jmp 0x1a648
jmp 0x1a64a
movq 0x248(%rsp), %rsi
leaq 0x1ddae6(%rip), %rdi    # 0x1f813f
movb $0x0, %al
callq 0x172cb0
movq $0x0, 0x260(%rsp)
movq 0x260(%rsp), %rax
addq $0x268, %rsp            # imm = 0x268
retq
movq 0x1d0(%rsp), %rdi
callq 0x16ca0
nopl (%rax)