{"type": "func", "start": 4299319504, "end": 4299319602, "name": "GJSmartTemplate::shouldDiscardObject", "pseudocode": "// \n// GJSmartTemplate::shouldDiscardObject from 0x1004268d0 to 0x100426932 (98 bytes)\n// \n// 0 xrefs:\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\nbool __fastcall GJSmartTemplate::shouldDiscardObject(SmartBlockType a1, GJSmartDirection a2)\n{\n  __int64 v2; // rax\n\n  LOBYTE(v2) = 0;\n  switch ( a1 )\n  {\n    case WideSlope2:\n    case WideSlope6:\n      if ( (unsigned int)a2 >= 9 )\n        goto LABEL_9;\n      LODWORD(v2) = 0x146u >> a2;\n      goto LABEL_4;\n    case WideSlope4:\n    case WideSlope8:\n      if ( (unsigned int)a2 >= BottomRight )\nLABEL_9:\n        v2 = 0;\n      else\n        LOBYTE(v2) = (0xA6u >> a2) & 1;\n      break;\n    case WideSlope10:\n    case WideSlope12:\n      LOBYTE(v2) = ((a2 - 3) & 0xFFFFFFFA) == 0;\n      break;\n    case WideSlope14:\n    case WideSlope16:\n      LOBYTE(v2) = (unsigned int)(a2 - 3) < 4;\n      break;\n    default:\nLABEL_4:\n      LOBYTE(v2) = v2 & 1;\n      break;\n  }\n  return v2;\n}", "assembly": "; \n; GJSmartTemplate::shouldDiscardObject from 0x1004268d0 to 0x100426932 (98 bytes)\n; \n; 0 xrefs:\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, 0x1004268d0\nmov     rbp, rsp                                                       ; +0x1, 0x1004268d1\nxor     eax, eax                                                       ; +0x4, 0x1004268d4\nadd     edi, 0FFFFFFC9h; switch 22 cases                               ; +0x6, 0x1004268d6\ncmp     edi, 15h                                                       ; +0x9, 0x1004268d9\nja      short def_1004268EC; jumptable 00000001004268EC default case, cases 56,58-65,67,69,71,73,75 ; +0xc, 0x1004268dc\nlea     rcx, jpt_1004268EC                                             ; +0xe, 0x1004268de\nmovsxd  rdx, (jpt_1004268EC - 100426934h)[rcx+rdi*4]                   ; +0x15, 0x1004268e5\nadd     rdx, rcx                                                       ; +0x19, 0x1004268e9\njmp     rdx; switch jump                                               ; +0x1c, 0x1004268ec\ncmp     esi, 9; jumptable 00000001004268EC cases 55,66                 ; +0x1e, 0x1004268ee\njnb     short loc_10042692C                                            ; +0x21, 0x1004268f1\nmov     eax, 146h                                                      ; +0x23, 0x1004268f3\nmov     ecx, esi                                                       ; +0x28, 0x1004268f8\nshr     eax, cl                                                        ; +0x2a, 0x1004268fa\nand     al, 1; jumptable 00000001004268EC default case, cases 56,58-65,67,69,71,73,75 ; +0x2c, 0x1004268fc\npop     rbp                                                            ; +0x2e, 0x1004268fe\nretn                                                                   ; +0x2f, 0x1004268ff\nadd     esi, 0FFFFFFFDh; jumptable 00000001004268EC cases 74,76        ; +0x30, 0x100426900\ncmp     esi, 4                                                         ; +0x33, 0x100426903\nsetb    al                                                             ; +0x36, 0x100426906\nand     al, 1                                                          ; +0x39, 0x100426909\npop     rbp                                                            ; +0x3b, 0x10042690b\nretn                                                                   ; +0x3c, 0x10042690c\nadd     esi, 0FFFFFFFDh; jumptable 00000001004268EC cases 70,72        ; +0x3d, 0x10042690d\ntest    esi, 0FFFFFFFAh                                                ; +0x40, 0x100426910\nsetz    al                                                             ; +0x46, 0x100426916\nand     al, 1                                                          ; +0x49, 0x100426919\npop     rbp                                                            ; +0x4b, 0x10042691b\nretn                                                                   ; +0x4c, 0x10042691c\ncmp     esi, 8; jumptable 00000001004268EC cases 57,68                 ; +0x4d, 0x10042691d\njnb     short loc_10042692C                                            ; +0x50, 0x100426920\nmov     al, 0A6h                                                       ; +0x52, 0x100426922\nmov     ecx, esi                                                       ; +0x54, 0x100426924\nshr     al, cl                                                         ; +0x56, 0x100426926\nand     al, 1                                                          ; +0x58, 0x100426928\npop     rbp                                                            ; +0x5a, 0x10042692a\nretn                                                                   ; +0x5b, 0x10042692b\nxor     eax, eax                                                       ; +0x5c, 0x10042692c\nand     al, 1                                                          ; +0x5e, 0x10042692e\npop     rbp                                                            ; +0x60, 0x100426930\nretn                                                                   ; +0x61, 0x100426931", "xrefs": [], "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"}