{"type": "func", "start": 4296122608, "end": 4296123148, "name": "GJBaseGameLayer::processOptionsTrigger", "pseudocode": "// \n// GJBaseGameLayer::processOptionsTrigger from 0x10011a0f0 to 0x10011a30c (540 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x10019a359\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:24:35 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::processOptionsTrigger(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  _BOOL4 v3; // r15d\n  int v4; // eax\n  int v5; // eax\n  int v6; // eax\n  int v7; // eax\n  int v8; // eax\n  int v9; // eax\n  int v10; // eax\n  int v11; // eax\n  int v12; // eax\n  int v13; // eax\n  int v14; // eax\n  __int64 result; // rax\n  float v16; // xmm0_4\n\n  v2 = *(_DWORD *)(a2 + 1840);\n  if ( v2 && *(_BYTE *)(a1 + 812) != (v2 == 1) )\n  {\n    v3 = v2 == 1;\n    *(_BYTE *)(a1 + 812) = v2 == 1;\n    PlayerObject::updateStreakBlend(*(_QWORD *)(a1 + 3256), v2 == 1);\n    PlayerObject::updateStreakBlend(*(_QWORD *)(a1 + 3264), v3);\n  }\n  v4 = *(_DWORD *)(a2 + 1844);\n  if ( v4 )\n    *(_BYTE *)(a1 + 1912) = v4 == 1;\n  v5 = *(_DWORD *)(a2 + 1848);\n  if ( v5 )\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1384LL))(a1, v5 != 1);\n  v6 = *(_DWORD *)(a2 + 1868);\n  if ( v6 )\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1392LL))(a1, v6 != 1);\n  v7 = *(_DWORD *)(a2 + 1852);\n  if ( v7 )\n    PlayerObject::toggleVisibility(*(_QWORD *)(a1 + 3256), v7 != 1);\n  v8 = *(_DWORD *)(a2 + 1856);\n  if ( v8 && *(_BYTE *)(a1 + 1010) == 1 )\n    PlayerObject::toggleVisibility(*(_QWORD *)(a1 + 3264), v8 != 1);\n  v9 = *(_DWORD *)(a2 + 1860);\n  if ( v9 )\n  {\n    if ( v9 != 1 )\n    {\n      PlayerObject::enablePlayerControls(*(_QWORD *)(a1 + 3256));\n      v10 = *(_DWORD *)(a2 + 1864);\n      if ( !v10 )\n        goto LABEL_23;\n      goto LABEL_21;\n    }\n    PlayerObject::disablePlayerControls(*(_QWORD *)(a1 + 3256));\n  }\n  v10 = *(_DWORD *)(a2 + 1864);\n  if ( !v10 )\n  {\nLABEL_23:\n    v11 = *(_DWORD *)(a2 + 1872);\n    if ( !v11 )\n      goto LABEL_25;\n    goto LABEL_24;\n  }\nLABEL_21:\n  if ( v10 == 1 )\n  {\n    PlayerObject::disablePlayerControls(*(_QWORD *)(a1 + 3264));\n    goto LABEL_23;\n  }\n  PlayerObject::enablePlayerControls(*(_QWORD *)(a1 + 3264));\n  v11 = *(_DWORD *)(a2 + 1872);\n  if ( v11 )\nLABEL_24:\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1400LL))(a1, v11 == 1);\nLABEL_25:\n  v12 = *(_DWORD *)(a2 + 1884);\n  if ( v12 )\n    *(_BYTE *)(a1 + 1214) = v12 == 1;\n  v13 = *(_DWORD *)(a2 + 1888);\n  if ( v13 )\n    *(_BYTE *)(a1 + 1220) = v13 == 1;\n  v14 = *(_DWORD *)(a2 + 1892);\n  if ( v14 )\n  {\n    *(_BYTE *)(*(_QWORD *)(a1 + 3256) + 2528LL) = v14 == 1;\n    *(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2528LL) = v14 == 1;\n  }\n  result = *(unsigned int *)(a2 + 1876);\n  if ( (_DWORD)result )\n  {\n    v16 = 0.0;\n    if ( (_DWORD)result == 1 )\n      v16 = fminf(fmaxf(*(float *)(a2 + 1880), 1.0), 10.0);\n    *(float *)(a1 + 1216) = v16;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::processOptionsTrigger from 0x10011a0f0 to 0x10011a30c (540 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x10019a359\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:24:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10011a0f0\nmov     rbp, rsp                                                       ; +0x1, 0x10011a0f1\npush    r15                                                            ; +0x4, 0x10011a0f4\npush    r14                                                            ; +0x6, 0x10011a0f6\npush    rbx                                                            ; +0x8, 0x10011a0f8\npush    rax                                                            ; +0x9, 0x10011a0f9\nmov     r14, rsi                                                       ; +0xa, 0x10011a0fa\nmov     rbx, rdi                                                       ; +0xd, 0x10011a0fd\nmov     eax, [rsi+730h]                                                ; +0x10, 0x10011a100\ntest    eax, eax                                                       ; +0x16, 0x10011a106\njz      short loc_10011A146                                            ; +0x18, 0x10011a108\ncmp     eax, 1                                                         ; +0x1a, 0x10011a10a\nsetz    cl                                                             ; +0x1d, 0x10011a10d\ncmp     [rbx+32Ch], cl                                                 ; +0x20, 0x10011a110\njz      short loc_10011A146                                            ; +0x26, 0x10011a116\nxor     r15d, r15d                                                     ; +0x28, 0x10011a118\ncmp     eax, 1                                                         ; +0x2b, 0x10011a11b\nsetz    r15b                                                           ; +0x2e, 0x10011a11e\nmov     [rbx+32Ch], cl                                                 ; +0x32, 0x10011a122\nmov     rdi, [rbx+0CB8h]                                               ; +0x38, 0x10011a128\nmov     esi, r15d                                                      ; +0x3f, 0x10011a12f\ncall    PlayerObject__updateStreakBlend                                ; +0x42, 0x10011a132\nmov     rdi, [rbx+0CC0h]                                               ; +0x47, 0x10011a137\nmov     esi, r15d                                                      ; +0x4e, 0x10011a13e\ncall    PlayerObject__updateStreakBlend                                ; +0x51, 0x10011a141\nmov     eax, [r14+734h]                                                ; +0x56, 0x10011a146\ntest    eax, eax                                                       ; +0x5d, 0x10011a14d\njz      short loc_10011A15B                                            ; +0x5f, 0x10011a14f\ncmp     eax, 1                                                         ; +0x61, 0x10011a151\nsetz    byte ptr [rbx+778h]                                            ; +0x64, 0x10011a154\nmov     eax, [r14+738h]                                                ; +0x6b, 0x10011a15b\ntest    eax, eax                                                       ; +0x72, 0x10011a162\njz      short loc_10011A17B                                            ; +0x74, 0x10011a164\nxor     esi, esi                                                       ; +0x76, 0x10011a166\ncmp     eax, 1                                                         ; +0x78, 0x10011a168\nsetnz   sil                                                            ; +0x7b, 0x10011a16b\nmov     rax, [rbx]                                                     ; +0x7f, 0x10011a16f\nmov     rdi, rbx                                                       ; +0x82, 0x10011a172\ncall    qword ptr [rax+568h]                                           ; +0x85, 0x10011a175\nmov     eax, [r14+74Ch]                                                ; +0x8b, 0x10011a17b\ntest    eax, eax                                                       ; +0x92, 0x10011a182\njz      short loc_10011A19B                                            ; +0x94, 0x10011a184\nxor     esi, esi                                                       ; +0x96, 0x10011a186\ncmp     eax, 1                                                         ; +0x98, 0x10011a188\nsetnz   sil                                                            ; +0x9b, 0x10011a18b\nmov     rax, [rbx]                                                     ; +0x9f, 0x10011a18f\nmov     rdi, rbx                                                       ; +0xa2, 0x10011a192\ncall    qword ptr [rax+570h]                                           ; +0xa5, 0x10011a195\nmov     eax, [r14+73Ch]                                                ; +0xab, 0x10011a19b\ntest    eax, eax                                                       ; +0xb2, 0x10011a1a2\njz      short loc_10011A1BB                                            ; +0xb4, 0x10011a1a4\nxor     esi, esi                                                       ; +0xb6, 0x10011a1a6\ncmp     eax, 1                                                         ; +0xb8, 0x10011a1a8\nsetnz   sil                                                            ; +0xbb, 0x10011a1ab\nmov     rdi, [rbx+0CB8h]                                               ; +0xbf, 0x10011a1af\ncall    PlayerObject__toggleVisibility                                 ; +0xc6, 0x10011a1b6\nmov     eax, [r14+740h]                                                ; +0xcb, 0x10011a1bb\ntest    eax, eax                                                       ; +0xd2, 0x10011a1c2\njz      short loc_10011A1E4                                            ; +0xd4, 0x10011a1c4\ncmp     byte ptr [rbx+3F2h], 1                                         ; +0xd6, 0x10011a1c6\njnz     short loc_10011A1E4                                            ; +0xdd, 0x10011a1cd\nxor     esi, esi                                                       ; +0xdf, 0x10011a1cf\ncmp     eax, 1                                                         ; +0xe1, 0x10011a1d1\nsetnz   sil                                                            ; +0xe4, 0x10011a1d4\nmov     rdi, [rbx+0CC0h]                                               ; +0xe8, 0x10011a1d8\ncall    PlayerObject__toggleVisibility                                 ; +0xef, 0x10011a1df\nmov     eax, [r14+744h]                                                ; +0xf4, 0x10011a1e4\ntest    eax, eax                                                       ; +0xfb, 0x10011a1eb\njz      short loc_10011A200                                            ; +0xfd, 0x10011a1ed\ncmp     eax, 1                                                         ; +0xff, 0x10011a1ef\njnz     short loc_10011A20D                                            ; +0x102, 0x10011a1f2\nmov     rdi, [rbx+0CB8h]                                               ; +0x104, 0x10011a1f4\ncall    PlayerObject__disablePlayerControls                            ; +0x10b, 0x10011a1fb\nmov     eax, [r14+748h]                                                ; +0x110, 0x10011a200\ntest    eax, eax                                                       ; +0x117, 0x10011a207\njnz     short loc_10011A224                                            ; +0x119, 0x10011a209\njmp     short loc_10011A239                                            ; +0x11b, 0x10011a20b\nmov     rdi, [rbx+0CB8h]                                               ; +0x11d, 0x10011a20d\ncall    PlayerObject__enablePlayerControls                             ; +0x124, 0x10011a214\nmov     eax, [r14+748h]                                                ; +0x129, 0x10011a219\ntest    eax, eax                                                       ; +0x130, 0x10011a220\njz      short loc_10011A239                                            ; +0x132, 0x10011a222\ncmp     eax, 1                                                         ; +0x134, 0x10011a224\njnz     loc_10011A2EC                                                  ; +0x137, 0x10011a227\nmov     rdi, [rbx+0CC0h]                                               ; +0x13d, 0x10011a22d\ncall    PlayerObject__disablePlayerControls                            ; +0x144, 0x10011a234\nmov     eax, [r14+750h]                                                ; +0x149, 0x10011a239\ntest    eax, eax                                                       ; +0x150, 0x10011a240\njz      short loc_10011A259                                            ; +0x152, 0x10011a242\nxor     esi, esi                                                       ; +0x154, 0x10011a244\ncmp     eax, 1                                                         ; +0x156, 0x10011a246\nsetz    sil                                                            ; +0x159, 0x10011a249\nmov     rax, [rbx]                                                     ; +0x15d, 0x10011a24d\nmov     rdi, rbx                                                       ; +0x160, 0x10011a250\ncall    qword ptr [rax+578h]                                           ; +0x163, 0x10011a253\nmov     eax, [r14+75Ch]                                                ; +0x169, 0x10011a259\ntest    eax, eax                                                       ; +0x170, 0x10011a260\njz      short loc_10011A26E                                            ; +0x172, 0x10011a262\ncmp     eax, 1                                                         ; +0x174, 0x10011a264\nsetz    byte ptr [rbx+4BEh]                                            ; +0x177, 0x10011a267\nmov     eax, [r14+760h]                                                ; +0x17e, 0x10011a26e\ntest    eax, eax                                                       ; +0x185, 0x10011a275\njz      short loc_10011A283                                            ; +0x187, 0x10011a277\ncmp     eax, 1                                                         ; +0x189, 0x10011a279\nsetz    byte ptr [rbx+4C4h]                                            ; +0x18c, 0x10011a27c\nmov     eax, [r14+764h]                                                ; +0x193, 0x10011a283\ntest    eax, eax                                                       ; +0x19a, 0x10011a28a\njz      short loc_10011A2AD                                            ; +0x19c, 0x10011a28c\ncmp     eax, 1                                                         ; +0x19e, 0x10011a28e\nmov     rax, [rbx+0CB8h]                                               ; +0x1a1, 0x10011a291\nsetz    byte ptr [rax+9E0h]                                            ; +0x1a8, 0x10011a298\nmov     rax, [rbx+0CC0h]                                               ; +0x1af, 0x10011a29f\nsetz    byte ptr [rax+9E0h]                                            ; +0x1b6, 0x10011a2a6\nmov     eax, [r14+754h]                                                ; +0x1bd, 0x10011a2ad\ntest    eax, eax                                                       ; +0x1c4, 0x10011a2b4\njz      short loc_10011A2E1                                            ; +0x1c6, 0x10011a2b6\nxorps   xmm0, xmm0                                                     ; +0x1c8, 0x10011a2b8\ncmp     eax, 1                                                         ; +0x1cb, 0x10011a2bb\njnz     short loc_10011A2D9                                            ; +0x1ce, 0x10011a2be\nmovss   xmm0, dword ptr [r14+758h]                                     ; +0x1d0, 0x10011a2c0\nmaxss   xmm0, cs:alpha                                                 ; +0x1d9, 0x10011a2c9\nminss   xmm0, cs:dword_100A035BC                                       ; +0x1e1, 0x10011a2d1\nmovss   dword ptr [rbx+4C0h], xmm0                                     ; +0x1e9, 0x10011a2d9\nadd     rsp, 8                                                         ; +0x1f1, 0x10011a2e1\npop     rbx                                                            ; +0x1f5, 0x10011a2e5\npop     r14                                                            ; +0x1f6, 0x10011a2e6\npop     r15                                                            ; +0x1f8, 0x10011a2e8\npop     rbp                                                            ; +0x1fa, 0x10011a2ea\nretn                                                                   ; +0x1fb, 0x10011a2eb\nmov     rdi, [rbx+0CC0h]                                               ; +0x1fc, 0x10011a2ec\ncall    PlayerObject__enablePlayerControls                             ; +0x203, 0x10011a2f3\nmov     eax, [r14+750h]                                                ; +0x208, 0x10011a2f8\ntest    eax, eax                                                       ; +0x20f, 0x10011a2ff\njnz     loc_10011A244                                                  ; +0x211, 0x10011a301\njmp     loc_10011A259                                                  ; +0x217, 0x10011a307", "xrefs": ["EffectGameObject::triggerObject @ 0x10019a359"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}