{"type": "func", "start": 4299320320, "end": 4299320422, "name": "GJSmartTemplate::flipBlockType", "pseudocode": "// \n// GJSmartTemplate::flipBlockType from 0x100426c00 to 0x100426c66 (102 bytes)\n// \n// 9 xrefs:\n// > GJSmartTemplate::flipKey @ 0x100425cfd\n// > GJSmartTemplate::flipKey @ 0x100425d0e\n// > GJSmartTemplate::flipKey @ 0x100425d1f\n// > GJSmartTemplate::flipKey @ 0x100425d30\n// > GJSmartTemplate::flipKey @ 0x100425d41\n// > GJSmartTemplate::flipKey @ 0x100425d52\n// > GJSmartTemplate::flipKey @ 0x100425d63\n// > GJSmartTemplate::flipKey @ 0x100425d73\n// > GJSmartTemplate::flipKey @ 0x100425d84\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nSmartBlockType __fastcall GJSmartTemplate::flipBlockType(SmartBlockType a1, bool a2, bool a3)\n{\n  SmartBlockType result; // eax\n  SmartBlockType v4; // ecx\n  unsigned int v5; // ecx\n\n  result = a1;\n  if ( (a1 & 0xFFFFFFFE) != 48 && (a3 || a2) )\n  {\n    if ( a2 )\n    {\n      v4 = NormalSlope2;\n      if ( (unsigned int)(a1 - 51) <= 0x19 )\n        v4 = *(_DWORD *)&a2_5[4 * (a1 - 51)];\n      if ( a3 )\n        goto LABEL_6;\n    }\n    else\n    {\n      v4 = a1;\n      if ( a3 )\n      {\nLABEL_6:\n        v5 = v4 - 51;\n        result = NormalSlope3;\n        if ( v5 <= 0x19 )\n          return *(_DWORD *)&a5_4[4 * v5];\n        return result;\n      }\n    }\n    return v4;\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::flipBlockType from 0x100426c00 to 0x100426c66 (102 bytes)\n; \n; 9 xrefs:\n; > GJSmartTemplate::flipKey @ 0x100425cfd\n; > GJSmartTemplate::flipKey @ 0x100425d0e\n; > GJSmartTemplate::flipKey @ 0x100425d1f\n; > GJSmartTemplate::flipKey @ 0x100425d30\n; > GJSmartTemplate::flipKey @ 0x100425d41\n; > GJSmartTemplate::flipKey @ 0x100425d52\n; > GJSmartTemplate::flipKey @ 0x100425d63\n; > GJSmartTemplate::flipKey @ 0x100425d73\n; > GJSmartTemplate::flipKey @ 0x100425d84\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100426c00\nmov     rbp, rsp                                                       ; +0x1, 0x100426c01\nmov     eax, edi                                                       ; +0x4, 0x100426c04\nmov     ecx, edi                                                       ; +0x6, 0x100426c06\nand     ecx, 0FFFFFFFEh                                                ; +0x8, 0x100426c08\ncmp     ecx, 30h ; '0'                                                 ; +0xb, 0x100426c0b\nsetz    cl                                                             ; +0xe, 0x100426c0e\nmov     edi, esi                                                       ; +0x11, 0x100426c11\nor      dil, dl                                                        ; +0x13, 0x100426c13\nxor     dil, 1                                                         ; +0x16, 0x100426c16\nor      dil, cl                                                        ; +0x1a, 0x100426c1a\njnz     short loc_100426C5A                                            ; +0x1d, 0x100426c1d\ntest    sil, sil                                                       ; +0x1f, 0x100426c1f\njz      short loc_100426C5C                                            ; +0x22, 0x100426c22\nadd     eax, 0FFFFFFCDh                                                ; +0x24, 0x100426c24\nmov     ecx, 33h ; '3'                                                 ; +0x27, 0x100426c27\ncmp     eax, 19h                                                       ; +0x2c, 0x100426c2c\nja      short loc_100426C3D                                            ; +0x2f, 0x100426c2f\nmov     eax, eax                                                       ; +0x31, 0x100426c31\nlea     rcx, a2_5; \"2\"                                                 ; +0x33, 0x100426c33\nmov     ecx, [rcx+rax*4]                                               ; +0x3a, 0x100426c3a\ntest    dl, dl                                                         ; +0x3d, 0x100426c3d\njz      short loc_100426C62                                            ; +0x3f, 0x100426c3f\nadd     ecx, 0FFFFFFCDh                                                ; +0x41, 0x100426c41\nmov     eax, 34h ; '4'                                                 ; +0x44, 0x100426c44\ncmp     ecx, 19h                                                       ; +0x49, 0x100426c49\nja      short loc_100426C5A                                            ; +0x4c, 0x100426c4c\nmov     eax, ecx                                                       ; +0x4e, 0x100426c4e\nlea     rcx, a5_4; \"5\"                                                 ; +0x50, 0x100426c50\nmov     eax, [rcx+rax*4]                                               ; +0x57, 0x100426c57\npop     rbp                                                            ; +0x5a, 0x100426c5a\nretn                                                                   ; +0x5b, 0x100426c5b\nmov     ecx, eax                                                       ; +0x5c, 0x100426c5c\ntest    dl, dl                                                         ; +0x5e, 0x100426c5e\njnz     short loc_100426C41                                            ; +0x60, 0x100426c60\nmov     eax, ecx                                                       ; +0x62, 0x100426c62\npop     rbp                                                            ; +0x64, 0x100426c64\nretn                                                                   ; +0x65, 0x100426c65", "xrefs": ["GJSmartTemplate::flipKey @ 0x100425cfd", "GJSmartTemplate::flipKey @ 0x100425d0e", "GJSmartTemplate::flipKey @ 0x100425d1f", "GJSmartTemplate::flipKey @ 0x100425d30", "GJSmartTemplate::flipKey @ 0x100425d41", "GJSmartTemplate::flipKey @ 0x100425d52", "GJSmartTemplate::flipKey @ 0x100425d63", "GJSmartTemplate::flipKey @ 0x100425d73", "GJSmartTemplate::flipKey @ 0x100425d84"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}