{"type": "func", "start": 4296653232, "end": 4296653418, "name": "EffectGameObject::updateSpeedModType", "pseudocode": "// \n// EffectGameObject::updateSpeedModType from 0x10019b9b0 to 0x10019ba6a (186 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::addObject @ 0x10007ffc7\n// > LevelEditorLayer::tryUpdateSpeedObject @ 0x1000bce68\n// > DrawGridLayer::addToSpeedObjects @ 0x1000bd540\n// > LevelEditorLayer::reverseObjectChanged @ 0x1000c3dc6\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:25:57 +0000\n// \n\n__int64 __fastcall EffectGameObject::updateSpeedModType(__int64 a1, __int64 a2, __int64 a3, unsigned int a4)\n{\n  int v4; // eax\n  __int64 result; // rax\n\n  v4 = *(_DWORD *)(a1 + 1028);\n  if ( v4 <= 1933 )\n  {\n    if ( v4 <= 202 )\n    {\n      LOWORD(a4) = 1;\n      if ( v4 == 200 )\n        goto LABEL_24;\n      if ( v4 == 202 )\n      {\n        LOWORD(a4) = 2;\n        goto LABEL_24;\n      }\n    }\n    else\n    {\n      switch ( v4 )\n      {\n        case 203:\n          LOWORD(a4) = 3;\n          goto LABEL_24;\n        case 1334:\n          LOWORD(a4) = 4;\n          goto LABEL_24;\n        case 1917:\n          LOWORD(a4) = -1;\n          goto LABEL_24;\n      }\n    }\n  }\n  else if ( v4 > 2901 )\n  {\n    if ( v4 == 2902 || v4 == 3022 || v4 == 3027 )\n    {\n      LOWORD(a4) = -5;\n      goto LABEL_24;\n    }\n  }\n  else\n  {\n    switch ( v4 )\n    {\n      case 1934:\n        LOWORD(a4) = -3;\n        goto LABEL_24;\n      case 1935:\n        LOWORD(a4) = -2;\n        goto LABEL_24;\n      case 2900:\n        LOWORD(a4) = -4;\n        goto LABEL_24;\n    }\n  }\n  a4 = 0;\nLABEL_24:\n  result = 0xFFFF;\n  if ( !*(_BYTE *)(a1 + 1780) )\n    result = a4;\n  *(_WORD *)(a1 + 1782) = result;\n  return result;\n}", "assembly": "; \n; EffectGameObject::updateSpeedModType from 0x10019b9b0 to 0x10019ba6a (186 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::addObject @ 0x10007ffc7\n; > LevelEditorLayer::tryUpdateSpeedObject @ 0x1000bce68\n; > DrawGridLayer::addToSpeedObjects @ 0x1000bd540\n; > LevelEditorLayer::reverseObjectChanged @ 0x1000c3dc6\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:25:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x10019b9b0\nmov     rbp, rsp                                                       ; +0x1, 0x10019b9b1\nmov     eax, [rdi+404h]                                                ; +0x4, 0x10019b9b4\ncmp     eax, 78Dh                                                      ; +0xa, 0x10019b9ba\njle     short loc_10019B9E3                                            ; +0xf, 0x10019b9bf\ncmp     eax, 0B55h                                                     ; +0x11, 0x10019b9c1\njg      short loc_10019BA05                                            ; +0x16, 0x10019b9c6\ncmp     eax, 78Eh                                                      ; +0x18, 0x10019b9c8\njz      short loc_10019BA4A                                            ; +0x1d, 0x10019b9cd\ncmp     eax, 78Fh                                                      ; +0x1f, 0x10019b9cf\njz      short loc_10019BA3E                                            ; +0x24, 0x10019b9d4\ncmp     eax, 0B54h                                                     ; +0x26, 0x10019b9d6\njnz     short loc_10019BA50                                            ; +0x2b, 0x10019b9db\nmov     cx, 0FFFCh                                                     ; +0x2d, 0x10019b9dd\njmp     short loc_10019BA52                                            ; +0x31, 0x10019b9e1\ncmp     eax, 0CAh                                                      ; +0x33, 0x10019b9e3\njle     short loc_10019BA20                                            ; +0x38, 0x10019b9e8\ncmp     eax, 0CBh                                                      ; +0x3a, 0x10019b9ea\njz      short loc_10019BA44                                            ; +0x3f, 0x10019b9ef\ncmp     eax, 536h                                                      ; +0x41, 0x10019b9f1\njz      short loc_10019BA38                                            ; +0x46, 0x10019b9f6\ncmp     eax, 77Dh                                                      ; +0x48, 0x10019b9f8\njnz     short loc_10019BA50                                            ; +0x4d, 0x10019b9fd\nmov     cx, 0FFFFh                                                     ; +0x4f, 0x10019b9ff\njmp     short loc_10019BA52                                            ; +0x53, 0x10019ba03\ncmp     eax, 0B56h                                                     ; +0x55, 0x10019ba05\njz      short loc_10019BA1A                                            ; +0x5a, 0x10019ba0a\ncmp     eax, 0BCEh                                                     ; +0x5c, 0x10019ba0c\njz      short loc_10019BA1A                                            ; +0x61, 0x10019ba11\ncmp     eax, 0BD3h                                                     ; +0x63, 0x10019ba13\njnz     short loc_10019BA50                                            ; +0x68, 0x10019ba18\nmov     cx, 0FFFBh                                                     ; +0x6a, 0x10019ba1a\njmp     short loc_10019BA52                                            ; +0x6e, 0x10019ba1e\nmov     cx, 1                                                          ; +0x70, 0x10019ba20\ncmp     eax, 0C8h                                                      ; +0x74, 0x10019ba24\njz      short loc_10019BA52                                            ; +0x79, 0x10019ba29\ncmp     eax, 0CAh                                                      ; +0x7b, 0x10019ba2b\njnz     short loc_10019BA50                                            ; +0x80, 0x10019ba30\nmov     cx, 2                                                          ; +0x82, 0x10019ba32\njmp     short loc_10019BA52                                            ; +0x86, 0x10019ba36\nmov     cx, 4                                                          ; +0x88, 0x10019ba38\njmp     short loc_10019BA52                                            ; +0x8c, 0x10019ba3c\nmov     cx, 0FFFEh                                                     ; +0x8e, 0x10019ba3e\njmp     short loc_10019BA52                                            ; +0x92, 0x10019ba42\nmov     cx, 3                                                          ; +0x94, 0x10019ba44\njmp     short loc_10019BA52                                            ; +0x98, 0x10019ba48\nmov     cx, 0FFFDh                                                     ; +0x9a, 0x10019ba4a\njmp     short loc_10019BA52                                            ; +0x9e, 0x10019ba4e\nxor     ecx, ecx                                                       ; +0xa0, 0x10019ba50\ncmp     byte ptr [rdi+6F4h], 0                                         ; +0xa2, 0x10019ba52\nmov     eax, 0FFFFh                                                    ; +0xa9, 0x10019ba59\ncmovz   eax, ecx                                                       ; +0xae, 0x10019ba5e\nmov     [rdi+6F6h], ax                                                 ; +0xb1, 0x10019ba61\npop     rbp                                                            ; +0xb8, 0x10019ba68\nretn                                                                   ; +0xb9, 0x10019ba69", "xrefs": ["PlayLayer::addObject @ 0x10007ffc7", "LevelEditorLayer::tryUpdateSpeedObject @ 0x1000bce68", "DrawGridLayer::addToSpeedObjects @ 0x1000bd540", "LevelEditorLayer::reverseObjectChanged @ 0x1000c3dc6"], "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"}