{"type": "func", "start": 5375318992, "end": 5375319325, "name": "EffectGameObject::updateSpeedModType", "pseudocode": "// \n// EffectGameObject::updateSpeedModType from 0x14064dbd0 to 0x14064dd1d (333 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onCreateObject @ 0x1401b2e8b\n// > LevelEditorLayer::tryUpdateSpeedObject @ 0x1403f5995\n// > PlayLayer::addObject @ 0x14050d454\n// > SetupObjectOptionsPopup::onClose @ 0x140597798\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 11:35:41 +0000\n// \n\n__int64 __fastcall EffectGameObject::updateSpeedModType(__int64 a1)\n{\n  int v1; // edx\n  int v2; // edx\n  int v3; // edx\n  int v4; // edx\n  int v5; // edx\n  __int64 result; // rax\n  int v7; // edx\n  int v8; // edx\n  int v9; // edx\n  int v10; // edx\n\n  v1 = *(_DWORD *)(a1 + 1036);\n  if ( v1 > 1934 )\n  {\n    v7 = v1 - 1935;\n    if ( v7 )\n    {\n      v8 = v7 - 965;\n      if ( v8 )\n      {\n        v9 = v8 - 2;\n        if ( v9 )\n        {\n          v10 = v9 - 120;\n          if ( v10 )\n          {\n            if ( v10 != 5 )\n            {\nLABEL_31:\n              result = 0;\n              if ( *(_BYTE *)(a1 + 1796) )\n                result = 0xFFFFFFFFLL;\n              *(_WORD *)(a1 + 1798) = result;\n              return result;\n            }\n          }\n        }\n        result = 4294967291LL;\n        if ( *(_BYTE *)(a1 + 1796) )\n          result = 0xFFFFFFFFLL;\n        *(_WORD *)(a1 + 1798) = result;\n      }\n      else\n      {\n        result = 4294967292LL;\n        if ( *(_BYTE *)(a1 + 1796) )\n          result = 0xFFFFFFFFLL;\n        *(_WORD *)(a1 + 1798) = result;\n      }\n    }\n    else\n    {\n      result = 4294967294LL;\n      if ( *(_BYTE *)(a1 + 1796) )\n        result = 0xFFFFFFFFLL;\n      *(_WORD *)(a1 + 1798) = result;\n    }\n  }\n  else if ( v1 == 1934 )\n  {\n    result = 4294967293LL;\n    if ( *(_BYTE *)(a1 + 1796) )\n      result = 0xFFFFFFFFLL;\n    *(_WORD *)(a1 + 1798) = result;\n  }\n  else\n  {\n    v2 = v1 - 200;\n    if ( v2 )\n    {\n      v3 = v2 - 2;\n      if ( v3 )\n      {\n        v4 = v3 - 1;\n        if ( v4 )\n        {\n          v5 = v4 - 1131;\n          if ( v5 )\n          {\n            if ( v5 == 583 )\n            {\n              result = 0xFFFFFFFFLL;\n              if ( *(_BYTE *)(a1 + 1796) )\n                result = 0xFFFFFFFFLL;\n              *(_WORD *)(a1 + 1798) = -1;\n              return result;\n            }\n            goto LABEL_31;\n          }\n          result = 4;\n          if ( *(_BYTE *)(a1 + 1796) )\n            result = 0xFFFFFFFFLL;\n          *(_WORD *)(a1 + 1798) = result;\n        }\n        else\n        {\n          result = 3;\n          if ( *(_BYTE *)(a1 + 1796) )\n            result = 0xFFFFFFFFLL;\n          *(_WORD *)(a1 + 1798) = result;\n        }\n      }\n      else\n      {\n        result = 2;\n        if ( *(_BYTE *)(a1 + 1796) )\n          result = 0xFFFFFFFFLL;\n        *(_WORD *)(a1 + 1798) = result;\n      }\n    }\n    else\n    {\n      result = 1;\n      if ( *(_BYTE *)(a1 + 1796) )\n        result = 0xFFFFFFFFLL;\n      *(_WORD *)(a1 + 1798) = result;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EffectGameObject::updateSpeedModType from 0x14064dbd0 to 0x14064dd1d (333 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onCreateObject @ 0x1401b2e8b\n; > LevelEditorLayer::tryUpdateSpeedObject @ 0x1403f5995\n; > PlayLayer::addObject @ 0x14050d454\n; > SetupObjectOptionsPopup::onClose @ 0x140597798\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 11:35:41 +0000\n; \nmov     edx, [rcx+40Ch]                                                ; +0x0, 0x14064dbd0\nmov     r8d, 0FFFFFFFFh                                                ; +0x6, 0x14064dbd6\ncmp     edx, 78Eh                                                      ; +0xc, 0x14064dbdc\njg      loc_14064DCA2                                                  ; +0x12, 0x14064dbe2\njz      loc_14064DC8A                                                  ; +0x18, 0x14064dbe8\nsub     edx, 0C8h                                                      ; +0x1e, 0x14064dbee\njz      short loc_14064DC72                                            ; +0x24, 0x14064dbf4\nsub     edx, 2                                                         ; +0x26, 0x14064dbf6\njz      short loc_14064DC5A                                            ; +0x29, 0x14064dbf9\nsub     edx, 1                                                         ; +0x2b, 0x14064dbfb\njz      short loc_14064DC42                                            ; +0x2e, 0x14064dbfe\nsub     edx, 46Bh                                                      ; +0x30, 0x14064dc00\njz      short loc_14064DC2A                                            ; +0x36, 0x14064dc06\ncmp     edx, 247h                                                      ; +0x38, 0x14064dc08\njnz     loc_14064DCC1                                                  ; +0x3e, 0x14064dc0e\ncmp     byte ptr [rcx+704h], 0                                         ; +0x44, 0x14064dc14\nmov     eax, r8d                                                       ; +0x4b, 0x14064dc1b\ncmovnz  eax, r8d                                                       ; +0x4e, 0x14064dc1e\nmov     [rcx+706h], ax                                                 ; +0x52, 0x14064dc22\nretn                                                                   ; +0x59, 0x14064dc29\ncmp     byte ptr [rcx+704h], 0                                         ; +0x5a, 0x14064dc2a\nmov     eax, 4                                                         ; +0x61, 0x14064dc31\ncmovnz  eax, r8d                                                       ; +0x66, 0x14064dc36\nmov     [rcx+706h], ax                                                 ; +0x6a, 0x14064dc3a\nretn                                                                   ; +0x71, 0x14064dc41\ncmp     byte ptr [rcx+704h], 0                                         ; +0x72, 0x14064dc42\nmov     eax, 3                                                         ; +0x79, 0x14064dc49\ncmovnz  eax, r8d                                                       ; +0x7e, 0x14064dc4e\nmov     [rcx+706h], ax                                                 ; +0x82, 0x14064dc52\nretn                                                                   ; +0x89, 0x14064dc59\ncmp     byte ptr [rcx+704h], 0                                         ; +0x8a, 0x14064dc5a\nmov     eax, 2                                                         ; +0x91, 0x14064dc61\ncmovnz  eax, r8d                                                       ; +0x96, 0x14064dc66\nmov     [rcx+706h], ax                                                 ; +0x9a, 0x14064dc6a\nretn                                                                   ; +0xa1, 0x14064dc71\ncmp     byte ptr [rcx+704h], 0                                         ; +0xa2, 0x14064dc72\nmov     eax, 1                                                         ; +0xa9, 0x14064dc79\ncmovnz  eax, r8d                                                       ; +0xae, 0x14064dc7e\nmov     [rcx+706h], ax                                                 ; +0xb2, 0x14064dc82\nretn                                                                   ; +0xb9, 0x14064dc89\ncmp     byte ptr [rcx+704h], 0                                         ; +0xba, 0x14064dc8a\nmov     eax, 0FFFFFFFDh                                                ; +0xc1, 0x14064dc91\ncmovnz  eax, r8d                                                       ; +0xc6, 0x14064dc96\nmov     [rcx+706h], ax                                                 ; +0xca, 0x14064dc9a\nretn                                                                   ; +0xd1, 0x14064dca1\nsub     edx, 78Fh                                                      ; +0xd2, 0x14064dca2\njz      short loc_14064DD05                                            ; +0xd8, 0x14064dca8\nsub     edx, 3C5h                                                      ; +0xda, 0x14064dcaa\njz      short loc_14064DCED                                            ; +0xe0, 0x14064dcb0\nsub     edx, 2                                                         ; +0xe2, 0x14064dcb2\njz      short loc_14064DCD5                                            ; +0xe5, 0x14064dcb5\nsub     edx, 78h ; 'x'                                                 ; +0xe7, 0x14064dcb7\njz      short loc_14064DCD5                                            ; +0xea, 0x14064dcba\ncmp     edx, 5                                                         ; +0xec, 0x14064dcbc\njz      short loc_14064DCD5                                            ; +0xef, 0x14064dcbf\nxor     eax, eax                                                       ; +0xf1, 0x14064dcc1\ncmp     [rcx+704h], al                                                 ; +0xf3, 0x14064dcc3\ncmovnz  eax, r8d                                                       ; +0xf9, 0x14064dcc9\nmov     [rcx+706h], ax                                                 ; +0xfd, 0x14064dccd\nretn                                                                   ; +0x104, 0x14064dcd4\ncmp     byte ptr [rcx+704h], 0                                         ; +0x105, 0x14064dcd5\nmov     eax, 0FFFFFFFBh                                                ; +0x10c, 0x14064dcdc\ncmovnz  eax, r8d                                                       ; +0x111, 0x14064dce1\nmov     [rcx+706h], ax                                                 ; +0x115, 0x14064dce5\nretn                                                                   ; +0x11c, 0x14064dcec\ncmp     byte ptr [rcx+704h], 0                                         ; +0x11d, 0x14064dced\nmov     eax, 0FFFFFFFCh                                                ; +0x124, 0x14064dcf4\ncmovnz  eax, r8d                                                       ; +0x129, 0x14064dcf9\nmov     [rcx+706h], ax                                                 ; +0x12d, 0x14064dcfd\nretn                                                                   ; +0x134, 0x14064dd04\ncmp     byte ptr [rcx+704h], 0                                         ; +0x135, 0x14064dd05\nmov     eax, 0FFFFFFFEh                                                ; +0x13c, 0x14064dd0c\ncmovnz  eax, r8d                                                       ; +0x141, 0x14064dd11\nmov     [rcx+706h], ax                                                 ; +0x145, 0x14064dd15\nretn                                                                   ; +0x14c, 0x14064dd1c", "xrefs": ["EditorUI::onCreateObject @ 0x1401b2e8b", "LevelEditorLayer::tryUpdateSpeedObject @ 0x1403f5995", "PlayLayer::addObject @ 0x14050d454", "SetupObjectOptionsPopup::onClose @ 0x140597798"], "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"}