// // GJSmartTemplate::shouldDiscardObject from 0x539d90 to 0x539df2 (98 bytes) // // 1 xrefs: // > GJSmartBlockPreview::addTemplateGuide @ 0x53bc7a // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GJSmartTemplate::shouldDiscardObject(SmartBlockType a1, GJSmartDirection a2) { bool v2; // zf bool result; // r0 unsigned __int32 v4; // r3 switch ( a1 ) { case WideSlope2: case WideSlope6: if ( a2 == TopRight || a2 == BottomRight ) goto LABEL_19; if ( a2 != 1 ) goto LABEL_5; result = 1; break; case WideSlope4: case WideSlope8: if ( a2 == BottomLeft ) goto LABEL_19; result = a2 & 0xFB; if ( (a2 & 0xFFFFFFFB) != 1 ) { LABEL_5: v2 = a2 == 2; goto LABEL_13; } break; case WideSlope10: case WideSlope12: v4 = a2 - 7; goto LABEL_10; case WideSlope14: case WideSlope16: v4 = a2 - 5; LABEL_10: if ( v4 <= 1 || a2 == 3 ) { LABEL_19: result = 1; } else { v2 = a2 == 4; LABEL_13: result = v2; } break; default: result = 0; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source