{"type": "func", "start": 4294998276, "end": 4294998444, "name": "GJSmartTemplate::shouldDiscardObject", "pseudocode": "// \n// GJSmartTemplate::shouldDiscardObject from 0x100007904 to 0x1000079ac (168 bytes)\n// \n// 1 xrefs:\n// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008eb4\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  unsigned int v2; // w8\n  bool v3; // cf\n  unsigned int v4; // w8\n\n  LOBYTE(v2) = 0;\n  if ( a1 <= WideSlope9 )\n  {\n    if ( a1 > WideSlope5 )\n    {\n      if ( a1 != WideSlope6 )\n      {\n        if ( a1 != WideSlope8 )\n          return v2 & 1;\n        goto LABEL_12;\n      }\n    }\n    else if ( a1 != WideSlope2 )\n    {\n      if ( a1 != WideSlope4 )\n        return v2 & 1;\nLABEL_12:\n      v3 = (unsigned int)a2 >= BottomRight;\n      v4 = 166;\n      goto LABEL_17;\n    }\n    v3 = (unsigned int)a2 >= 9;\n    v4 = 326;\nLABEL_17:\n    v2 = v4 >> a2;\n    if ( v3 )\n      LOBYTE(v2) = 0;\n    return v2 & 1;\n  }\n  if ( a1 > WideSlope13 )\n  {\n    if ( a1 == WideSlope14 || a1 == WideSlope16 )\n      LOBYTE(v2) = (unsigned int)(a2 - 3) < 4;\n  }\n  else if ( a1 == WideSlope10 || a1 == WideSlope12 )\n  {\n    LOBYTE(v2) = ((a2 - 3) & 0xFFFFFFFA) == 0;\n  }\n  return v2 & 1;\n}", "assembly": "; \n; GJSmartTemplate::shouldDiscardObject from 0x100007904 to 0x1000079ac (168 bytes)\n; \n; 1 xrefs:\n; > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008eb4\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\nMOV             W8, #0                                                 ; +0x0, 0x100007904\nCMP             W0, #0x45 ; 'E'                                        ; +0x4, 0x100007908\nB.GT            loc_10000792C                                          ; +0x8, 0x10000790c\nCMP             W0, #0x41 ; 'A'                                        ; +0xc, 0x100007910\nB.GT            loc_100007958                                          ; +0x10, 0x100007914\nCMP             W0, #0x37 ; '7'                                        ; +0x14, 0x100007918\nB.EQ            loc_100007994                                          ; +0x18, 0x10000791c\nCMP             W0, #0x39 ; '9'                                        ; +0x1c, 0x100007920\nB.EQ            loc_100007968                                          ; +0x20, 0x100007924\nB               loc_1000079A4                                          ; +0x24, 0x100007928\nCMP             W0, #0x49 ; 'I'                                        ; +0x28, 0x10000792c\nB.GT            loc_100007974                                          ; +0x2c, 0x100007930\nCMP             W0, #0x46 ; 'F'                                        ; +0x30, 0x100007934\nB.EQ            loc_100007944                                          ; +0x34, 0x100007938\nCMP             W0, #0x48 ; 'H'                                        ; +0x38, 0x10000793c\nB.NE            loc_1000079A4                                          ; +0x3c, 0x100007940\nSUB             W8, W1, #3                                             ; +0x40, 0x100007944\nMOV             W9, #0xFFFFFFFA                                        ; +0x44, 0x100007948\nTST             W8, W9                                                 ; +0x48, 0x10000794c\nCSET            W8, EQ                                                 ; +0x4c, 0x100007950\nB               loc_1000079A4                                          ; +0x50, 0x100007954\nCMP             W0, #0x42 ; 'B'                                        ; +0x54, 0x100007958\nB.EQ            loc_100007994                                          ; +0x58, 0x10000795c\nCMP             W0, #0x44 ; 'D'                                        ; +0x5c, 0x100007960\nB.NE            loc_1000079A4                                          ; +0x60, 0x100007964\nCMP             W1, #8                                                 ; +0x64, 0x100007968\nMOV             W8, #0xA6                                              ; +0x68, 0x10000796c\nB               loc_10000799C                                          ; +0x6c, 0x100007970\nCMP             W0, #0x4A ; 'J'                                        ; +0x70, 0x100007974\nB.EQ            loc_100007984                                          ; +0x74, 0x100007978\nCMP             W0, #0x4C ; 'L'                                        ; +0x78, 0x10000797c\nB.NE            loc_1000079A4                                          ; +0x7c, 0x100007980\nSUB             W8, W1, #3                                             ; +0x80, 0x100007984\nCMP             W8, #4                                                 ; +0x84, 0x100007988\nCSET            W8, CC                                                 ; +0x88, 0x10000798c\nB               loc_1000079A4                                          ; +0x8c, 0x100007990\nCMP             W1, #9                                                 ; +0x90, 0x100007994\nMOV             W8, #0x146                                             ; +0x94, 0x100007998\nLSR             W8, W8, W1                                             ; +0x98, 0x10000799c\nCSEL            W8, W8, WZR, CC                                        ; +0x9c, 0x1000079a0\nAND             W0, W8, #1                                             ; +0xa0, 0x1000079a4\nRET                                                                    ; +0xa4, 0x1000079a8", "xrefs": ["GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008eb4"], "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"}