// File: /workspace/github_cpp_makefile_star2_O3/sus304[P]ForRocket/src/factory/rocket_stage_factory.cpp
// Function: forrocket::RocketStageFactory::Create(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
forrocket::RocketStage forrocket::RocketStageFactory::Create(const int stage_number,
                                                                std::string rocket_config_json_file, 
                                                                std::string engine_config_json_file,
                                                                std::string sequence_of_event_json_file) {
    
    RocketFactory rocket_factory;
    RocketStage rocket_stage(stage_number, rocket_factory.Create(rocket_config_json_file, engine_config_json_file));

    JsonControl jc(sequence_of_event_json_file);

    rocket_stage.time_start = jc.getDouble("Flight Start Time [s]");
    rocket_stage.time_ignittion = jc.getDouble("Engine Ignittion Time [s]");

    rocket_stage.enable_launcher = jc.getBool("Enable Rail-Launcher Launch");
    if (rocket_stage.enable_launcher) {
        rocket_stage.length_launcher_rail = jc.getSubItem("Rail Launcher").getDouble("Length [m]");
    }
    
    rocket_stage.enable_cutoff = jc.getBool("Enable Engine Cutoff");
    if (rocket_stage.enable_cutoff) {
        rocket_stage.time_cutoff = jc.getSubItem("Cutoff").getDouble("Cutoff Time [s]");
        rocket_stage.rocket.engine.burn_duration = rocket_stage.time_cutoff;
    }
    
    rocket_stage.enable_program_attitude = jc.getBool("Enable Program Attitude");
    if (rocket_stage.enable_program_attitude) {
        auto jc_attitude_control = jc.getSubItem("Attitude Control");
        rocket_stage.time_start_attitude_controll = jc_attitude_control.getDouble("Start Time [s]");
        rocket_stage.time_end_attitude_controll = jc_attitude_control.getDouble("End Time [s]");
    }

    rocket_stage.enable_sepation = jc.getBool("Enable Stage Separation");
    if (rocket_stage.enable_sepation) {
        auto jc_separation = jc.getSubItem("Upper Stage");
        rocket_stage.time_separation = jc_separation.getDouble("Stage Separation Time [s]");
        rocket_stage.mass_upper_stage = jc_separation.getDouble("Upper Stage Mass [kg]");
    }

    rocket_stage.enable_despin = jc.getBool("Enable Despin Control");
    if (rocket_stage.enable_despin) {
        rocket_stage.time_despin = jc.getSubItem("Despin").getDouble("Time [s]");
    }

    rocket_stage.enable_fairing_jettson = jc.getBool("Enable Fairing Jettson");
    if (rocket_stage.enable_fairing_jettson) {
        auto jc_fairing_jettson = jc.getSubItem("Fairing");
        rocket_stage.time_jettson_fairing = jc_fairing_jettson.getDouble("Jettson Time [s]");
        rocket_stage.mass_fairing = jc_fairing_jettson.getDouble("Mass [s]");
    }

    rocket_stage.enable_parachute_open = jc.getBool("Enable Parachute Open");
    if (rocket_stage.enable_parachute_open) {
        auto jc_parachute = jc.getSubItem("Parachute");
        rocket_stage.enable_apogee_parachute_open = jc_parachute.getDouble("Enable Forced Apogee Open");
        rocket_stage.time_open_parachute = jc_parachute.getDouble("Open Time [s]");
    }

    rocket_stage.exist_second_parachute = jc.getBool("Enable Secondary Parachute Open");
    if (rocket_stage.exist_second_parachute) {
        auto jc_secondary_parachute = jc.getSubItem("Secondary Parachute");
        rocket_stage.time_open_second_parachute = jc_secondary_parachute.getDouble("Open Time [s]");
    }
    
    if (jc.getBool("Enable Auto Terminate SubOrbital Flight")) {
        double safety_factor = 1.4;
        rocket_stage.time_end = safety_factor * std::abs(60.0 * std::log(rocket_stage.rocket.engine.total_impulse) - 410.0);        
    } else {
        rocket_stage.time_end = jc.getDouble("Flight End Time [s]");
    }
    // rocket_stage.time_step = std::pow(10.0, std::floor((int)std::log10((int)rocket_stage.time_end)+1) - 5);
    rocket_stage.time_step = jc.getDouble("Time Step [s]");
    
    return rocket_stage;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1328, %rsp           # imm = 0x1328
movq %r9, %r14
movq %r8, %r15
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x4a0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x490(%rsp), %rdi
callq 0x7fae
leaq 0x480(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x470(%rsp), %rdi
callq 0x7fae
leaq 0x4b0(%rsp), %rdi
leaq 0x2f(%rsp), %rsi
leaq 0x490(%rsp), %rdx
leaq 0x470(%rsp), %rcx
callq 0x2709c
leaq 0x4b0(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2e30c
leaq 0x4b0(%rsp), %rdi
callq 0x2c480
movq 0x470(%rsp), %rdi
cmpq %r13, %rdi
je 0x2cc75
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x490(%rsp), %rdi
cmpq %r12, %rdi
je 0x2cc92
movq 0x4a0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x460(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x450(%rsp), %rdi
callq 0x7fae
leaq 0x18(%rsp), %rdi
leaq 0x450(%rsp), %rsi
callq 0x80a4
movq 0x450(%rsp), %rdi
cmpq %r15, %rdi
je 0x2cce4
movq 0x460(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x440(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10379(%rip), %rsi     # 0x3d070
leaq 0x10387(%rip), %rdx     # 0x3d085
leaq 0x430(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x430(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1150(%rbx)
movq 0x430(%rsp), %rdi
cmpq %r15, %rdi
je 0x2cd42
movq 0x440(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x420(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10331(%rip), %rsi     # 0x3d086
leaq 0x10343(%rip), %rdx     # 0x3d09f
leaq 0x410(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x410(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1158(%rbx)
movq 0x410(%rsp), %rdi
cmpq %r15, %rdi
je 0x2cda0
movq 0x420(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x400(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x102ed(%rip), %rsi     # 0x3d0a0
leaq 0x10301(%rip), %rdx     # 0x3d0bb
leaq 0x3f0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x3f0(%rsp), %rsi
callq 0x8268
movb %al, 0x1160(%rbx)
movq 0x3f0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ce0a
movq 0x400(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x1160(%rbx)
jne 0x2ce12
jmp 0x2cee4
testb %al, %al
je 0x2cee4
leaq 0x3e0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10297(%rip), %rsi     # 0x3d0bc
leaq 0x1029d(%rip), %rdx     # 0x3d0c9
leaq 0x3d0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x3d0(%rsp), %rdx
callq 0x828a
leaq 0x3c0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10266(%rip), %rsi     # 0x3d0ca
leaq 0x10269(%rip), %rdx     # 0x3d0d4
leaq 0x3b0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x3b0(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1168(%rbx)
movq 0x3b0(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ceaf
movq 0x3c0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
movq 0x3d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2cee4
movq 0x3e0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x3a0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x101de(%rip), %rsi     # 0x3d0d5
leaq 0x101eb(%rip), %rdx     # 0x3d0e9
leaq 0x390(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x390(%rsp), %rsi
callq 0x8268
movb %al, 0x1170(%rbx)
movq 0x390(%rsp), %rdi
cmpq %r15, %rdi
je 0x2cf4e
movq 0x3a0(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x1170(%rbx)
jne 0x2cf56
jmp 0x2d035
testb %al, %al
je 0x2d035
leaq 0x380(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1017a(%rip), %rsi     # 0x3d0e3
leaq 0x10179(%rip), %rdx     # 0x3d0e9
leaq 0x370(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x370(%rsp), %rdx
callq 0x828a
leaq 0x360(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10142(%rip), %rsi     # 0x3d0ea
leaq 0x1014a(%rip), %rdx     # 0x3d0f9
leaq 0x350(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x350(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1178(%rbx)
movq 0x350(%rsp), %rdi
cmpq %r12, %rdi
je 0x2cff3
movq 0x360(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
movq 0x370(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d028
movq 0x380(%rsp), %rsi
incq %rsi
callq 0x5350
movsd 0x1178(%rbx), %xmm0
movsd %xmm0, 0x60(%rbx)
leaq 0x340(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfcf4(%rip), %rsi      # 0x3cd3c
leaq 0xfd04(%rip), %rdx      # 0x3cd53
leaq 0x330(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x330(%rsp), %rsi
callq 0x8268
movb %al, 0x1180(%rbx)
movq 0x330(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d09f
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x1180(%rbx)
jne 0x2d0a7
jmp 0x2d1d6
testb %al, %al
je 0x2d1d6
leaq 0x320(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10040(%rip), %rsi     # 0x3d0fa
leaq 0x10049(%rip), %rdx     # 0x3d10a
leaq 0x310(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x310(%rsp), %rdx
callq 0x828a
movq 0x310(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d102
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x300(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xff62(%rip), %rsi      # 0x3d077
leaq 0xff69(%rip), %rdx      # 0x3d085
leaq 0x2f0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1188(%rbx)
movq 0x2f0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d160
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x2e0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x100e3(%rip), %rsi     # 0x3d256
leaq 0x100e8(%rip), %rdx     # 0x3d262
leaq 0x2d0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x2d0(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1190(%rbx)
movq 0x2d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d1be
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0x2c0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xff22(%rip), %rsi      # 0x3d10b
leaq 0xff32(%rip), %rdx      # 0x3d122
leaq 0x2b0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x2b0(%rsp), %rsi
callq 0x8268
movb %al, 0x1198(%rbx)
movq 0x2b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d240
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x1198(%rbx)
jne 0x2d248
jmp 0x2d377
testb %al, %al
je 0x2d377
leaq 0x2a0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfec8(%rip), %rsi      # 0x3d123
leaq 0xfecc(%rip), %rdx      # 0x3d12e
leaq 0x290(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x290(%rsp), %rdx
callq 0x828a
movq 0x290(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d2a3
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x280(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfe79(%rip), %rsi      # 0x3d12f
leaq 0xfe8b(%rip), %rdx      # 0x3d148
leaq 0x270(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x270(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11a0(%rbx)
movq 0x270(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d301
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x260(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfe35(%rip), %rsi      # 0x3d149
leaq 0xfe43(%rip), %rdx      # 0x3d15e
leaq 0x250(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11a8(%rbx)
movq 0x250(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d35f
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0x240(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfdd5(%rip), %rsi      # 0x3d15f
leaq 0xfde3(%rip), %rdx      # 0x3d174
leaq 0x230(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x230(%rsp), %rsi
callq 0x8268
movb %al, 0x11b0(%rbx)
movq 0x230(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d3e1
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x11b0(%rbx)
jne 0x2d3e9
jmp 0x2d4bb
testb %al, %al
je 0x2d4bb
leaq 0x220(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfd79(%rip), %rsi      # 0x3d175
leaq 0xfd78(%rip), %rdx      # 0x3d17b
leaq 0x210(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x210(%rsp), %rdx
callq 0x828a
leaq 0x200(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xfe1f(%rip), %rsi      # 0x3d25a
leaq 0xfe20(%rip), %rdx      # 0x3d262
leaq 0x1f0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11b8(%rbx)
movq 0x1f0(%rsp), %rdi
cmpq %r12, %rdi
je 0x2d486
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
movq 0x210(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d4bb
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x1e0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfcae(%rip), %rsi      # 0x3d17c
leaq 0xfcbd(%rip), %rdx      # 0x3d192
leaq 0x1d0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x8268
movb %al, 0x11c0(%rbx)
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d525
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x11c0(%rbx)
jne 0x2d52d
jmp 0x2d65c
testb %al, %al
je 0x2d65c
leaq 0x1c0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfc53(%rip), %rsi      # 0x3d193
leaq 0xfc53(%rip), %rdx      # 0x3d19a
leaq 0x1b0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x1b0(%rsp), %rdx
callq 0x828a
movq 0x1b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d588
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x1a0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfc00(%rip), %rsi      # 0x3d19b
leaq 0xfc09(%rip), %rdx      # 0x3d1ab
leaq 0x190(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11c8(%rbx)
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d5e6
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x180(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfbb3(%rip), %rsi      # 0x3d1ac
leaq 0xfbb4(%rip), %rdx      # 0x3d1b4
leaq 0x170(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11d0(%rbx)
movq 0x170(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d644
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0x160(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfb46(%rip), %rsi      # 0x3d1b5
leaq 0xfb54(%rip), %rdx      # 0x3d1ca
leaq 0x150(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0x8268
movb %al, 0x11d8(%rbx)
movq 0x150(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d6c6
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x11d8(%rbx)
jne 0x2d6ce
jmp 0x2d80b
testb %al, %al
je 0x2d80b
leaq 0x140(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfb3c(%rip), %rsi      # 0x3d21d
leaq 0xfb3e(%rip), %rdx      # 0x3d226
leaq 0x130(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0x828a
movq 0x130(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d729
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x120(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfa8f(%rip), %rsi      # 0x3d1cb
leaq 0xfaa1(%rip), %rdx      # 0x3d1e4
leaq 0x110(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x8244
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
setp %al
setne %cl
orb %al, %cl
movb %cl, 0x11d9(%rbx)
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d795
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x100(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xfa3d(%rip), %rsi      # 0x3d1e5
leaq 0xfa43(%rip), %rdx      # 0x3d1f2
leaq 0xf0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11e0(%rbx)
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d7f3
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0xe0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf9d5(%rip), %rsi      # 0x3d1f3
leaq 0xf9ed(%rip), %rdx      # 0x3d212
leaq 0xd0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x8268
movb %al, 0x11e8(%rbx)
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d875
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5350
testb $0x1, 0x11e8(%rbx)
jne 0x2d87d
jmp 0x2d94e
testb %al, %al
je 0x2d94e
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf983(%rip), %rsi      # 0x3d213
leaq 0xf98f(%rip), %rdx      # 0x3d226
leaq 0xb0(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
callq 0x828a
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d8d8
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf8fa(%rip), %rsi      # 0x3d1e5
leaq 0xf900(%rip), %rdx      # 0x3d1f2
leaq 0x90(%rsp), %rdi
callq 0x9382
leaq 0x8(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11f0(%rbx)
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d936
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x8(%rsp), %rdi
callq 0x86a0
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf8c6(%rip), %rsi      # 0x3d227
leaq 0xf8e6(%rip), %rdx      # 0x3d24e
leaq 0x70(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x8268
movl %eax, %ebp
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d99d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5350
testb %bpl, %bpl
je 0x2d9d6
movsd 0x78(%rbx), %xmm0
callq 0x52c0
mulsd 0xd164(%rip), %xmm0     # 0x3ab18
addsd 0xf6a4(%rip), %xmm0     # 0x3d060
andpd 0xd81c(%rip), %xmm0     # 0x3b1e0
mulsd 0xf69c(%rip), %xmm0     # 0x3d068
movsd %xmm0, 0x11f8(%rbx)
jmp 0x2da25
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf869(%rip), %rsi      # 0x3d24f
leaq 0xf875(%rip), %rdx      # 0x3d262
leaq 0x50(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x11f8(%rbx)
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x2da25
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf82e(%rip), %rsi      # 0x3d263
leaq 0xf834(%rip), %rdx      # 0x3d270
leaq 0x30(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x8244
movsd %xmm0, 0x1200(%rbx)
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x2da74
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x18(%rsp), %rdi
callq 0x86a0
leaq 0x20(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
movq %rbx, %rax
addq $0x1328, %rsp           # imm = 0x1328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x60(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0xa0(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0xc0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x100(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x120(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x130(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x140(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x170(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x180(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x1a0(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x1b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x1c0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x1f0(%rsp), %rdi
cmpq %r12, %rdi
je 0x2dc16
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2dc16
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x27080
jmp 0x2dc25
movq %rax, %r14
movq 0x210(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x220(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x250(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x260(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x270(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x280(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x290(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x2a0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x2d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x2e0(%rsp), %rsi
jmp 0x2dce1
jmp 0x2dceb
movq %rax, %r14
movq 0x2f0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dcee
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2dcee
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x27080
jmp 0x2df6b
movq %rax, %r14
movq 0x310(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x320(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x350(%rsp), %rdi
cmpq %r12, %rdi
je 0x2dd48
movq 0x360(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2dd48
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x27080
jmp 0x2dd57
movq %rax, %r14
movq 0x370(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x380(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x3b0(%rsp), %rdi
cmpq %r12, %rdi
je 0x2dd9f
movq 0x3c0(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2dd9f
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x27080
jmp 0x2ddae
movq %rax, %r14
movq 0x3d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x3e0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x40(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x80(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0xe0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x150(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x160(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x1e0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x230(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x240(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x2b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x2c0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x330(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x340(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x390(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x3a0(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x3f0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x400(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x410(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x420(%rsp), %rsi
jmp 0x2df5e
jmp 0x2df68
movq %rax, %r14
movq 0x430(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df6b
movq 0x440(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2df6b
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x27080
leaq 0xe80(%rbx), %rdi
callq 0x2e016
addq $0x10, %rbx
movq %rbx, %rdi
callq 0x2c480
movq %r14, %rdi
callq 0x55e0
movq %rax, %r14
movq 0x450(%rsp), %rdi
cmpq %r15, %rdi
je 0x2df75
movq 0x460(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2df75
movq %rax, %r14
jmp 0x2df75
movq %rax, %r14
leaq 0x4b0(%rsp), %rdi
callq 0x2c480
jmp 0x2dfd1
movq %rax, %r14
movq 0x470(%rsp), %rdi
cmpq %r13, %rdi
je 0x2dff3
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2dff3
movq %rax, %r14
movq 0x490(%rsp), %rdi
cmpq %r12, %rdi
je 0x2df8d
movq 0x4a0(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x2df8d
nop