// // ObjectToolbox::gridNodeSizeForKey from 0x1002ab6bc to 0x1002aba2c (880 bytes) // // 4 xrefs: // > GJSmartTemplate::offsetForDir @ 0x100007484 // > EditorUI::updateGridNodeSize @ 0x1003e76ac // > EditorUI::updateGridNodeSize @ 0x1003e76f0 // > EditorUI::createSmartObjectsFromType @ 0x1003f2654 // // 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 // float __fastcall ObjectToolbox::gridNodeSizeForKey(ObjectToolbox *a1, int a2) { float result; // s0 unsigned int v3; // w8 result = 15.0; if ( a2 > 3552 ) { if ( a2 <= 4045 ) { if ( (unsigned int)(a2 - 3702) >= 0x57 && ((unsigned int)(a2 - 3553) > 0x2C || ((1LL << ((unsigned __int8)a2 + 31)) & 0x1FFF80003FE3LL) == 0) && (unsigned int)(a2 - 3797) >= 3 ) { return 30.0; } return result; } if ( a2 <= 4191 ) { if ( ((unsigned int)(a2 - 4077) > 0x3E || ((1LL << ((unsigned __int8)a2 + 19)) & 0x7FFFDFFF8000000FLL) == 0) && (unsigned int)(a2 - 4046) >= 0xE ) { return 30.0; } return result; } if ( (unsigned int)(a2 - 4192) <= 0xC && ((1 << (a2 - 96)) & 0x1C07) != 0 || (unsigned int)(a2 - 4286) < 5 ) return result; if ( (unsigned int)(a2 - 4342) >= 4 ) return 30.0; return 7.5; } if ( a2 > 2251 ) { if ( a2 > 2951 ) { switch ( a2 ) { case 2952: case 2953: case 2954: case 2955: case 2956: case 2957: case 2958: case 2959: case 2960: case 3036: case 3040: case 3044: case 3048: case 3054: case 3055: case 3056: case 3057: case 3058: case 3059: case 3060: case 3061: case 3062: case 3063: case 3064: case 3065: case 3066: case 3067: case 3068: case 3069: case 3070: case 3071: case 3072: case 3073: case 3074: case 3075: case 3076: case 3077: case 3078: case 3079: case 3080: case 3081: case 3082: case 3083: case 3084: case 3085: case 3090: case 3091: case 3093: return result; case 3035: case 3039: case 3043: case 3047: result = 20.0; break; case 3037: case 3041: case 3045: case 3049: case 3094: return 10.0; case 3095: return 7.5; case 3096: result = 6.0; break; case 3097: result = 5.0; break; default: return 30.0; } return result; } if ( (unsigned int)(a2 - 2838) < 0x1A || (unsigned int)(a2 - 2252) <= 0x2C && ((1LL << ((unsigned __int8)a2 + 52)) & 0x1FFFE000000FLL) != 0 ) { return result; } v3 = a2 - 2346; goto LABEL_56; } if ( a2 > 1008 ) { if ( a2 <= 1240 ) { if ( ((unsigned int)(a2 - 1078) > 0x3D || ((1LL << ((unsigned __int8)a2 - 54)) & 0x30000003001E000FLL) == 0) && ((unsigned int)(a2 - 1154) > 0x36 || ((1LL << ((unsigned __int8)a2 + 126)) & 0x4000000000001FLL) == 0) && ((unsigned int)(a2 - 1009) > 0x2D || ((1LL << ((unsigned __int8)a2 + 15)) & 0x300000000003LL) == 0) ) { return 30.0; } return result; } if ( a2 > 1909 ) { if ( (unsigned int)(a2 - 1922) < 7 ) return 10.0; if ( (unsigned int)(a2 - 1910) < 2 ) return result; if ( a2 == 1964 ) return 10.0; return 30.0; } if ( (unsigned int)(a2 - 1241) <= 0x33 && ((1LL << ((unsigned __int8)a2 + 39)) & 0x80000C000003FLL) != 0 || (unsigned int)(a2 - 1836) <= 0x38 && ((1LL << ((unsigned __int8)a2 - 44)) & 0x100000000000005LL) != 0 ) { return result; } if ( a2 != 1592 ) return 30.0; return 7.5; } if ( a2 > 722 ) { if ( a2 > 849 ) { if ( (unsigned int)(a2 - 850) <= 0x2C && ((1LL << ((unsigned __int8)a2 - 82)) & 0x1A0001803AF9LL) != 0 || a2 == 916 ) { return result; } if ( a2 != 917 ) return 30.0; return 7.5; } if ( (unsigned int)(a2 - 723) <= 0xD && ((1 << (a2 + 45)) & 0x3003) != 0 ) return result; return 30.0; } if ( a2 <= 391 ) { if ( (unsigned int)(a2 - 195) <= 0x33 && ((1LL << ((unsigned __int8)a2 + 61)) & 0xC018002000A03LL) != 0 ) return result; v3 = a2 - 277; goto LABEL_56; } if ( ((unsigned int)(a2 - 653) > 0xB || ((1 << (a2 + 115)) & 0xF1F) == 0) && (unsigned int)(a2 - 392) >= 2 ) { v3 = a2 - 458; LABEL_56: if ( v3 < 2 ) return result; return 30.0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source