// // GJSmartTemplate::offsetForDir from 0x100007460 to 0x10000756c (268 bytes) // // 18 xrefs: // > sub_10000710C @ 0x10000717c // > sub_10000710C @ 0x1000071ac // > sub_10000710C @ 0x1000071dc // > sub_10000710C @ 0x10000720c // > sub_10000710C @ 0x10000723c // > sub_10000710C @ 0x10000726c // > sub_10000710C @ 0x10000729c // > sub_10000710C @ 0x1000072cc // > EditorUI::addObjectsToSmartTemplate @ 0x100478814 // > EditorUI::addObjectsToSmartTemplate @ 0x100478850 // > EditorUI::addObjectsToSmartTemplate @ 0x10047888c // > EditorUI::addObjectsToSmartTemplate @ 0x1004788c8 // > EditorUI::addObjectsToSmartTemplate @ 0x100478904 // > EditorUI::addObjectsToSmartTemplate @ 0x100478940 // > EditorUI::addObjectsToSmartTemplate @ 0x10047897c // > EditorUI::addObjectsToSmartTemplate @ 0x1004789b8 // > EditorUI::getSmartNeighbor @ 0x100478cfc // > EditorUI::getNeighbor @ 0x10047a0d8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:57:11 +0000 // __int64 __usercall GJSmartTemplate::offsetForDir@(int a1@, __int64 a2@, __int64 a3@) { __int64 v6; // x0 __n128 v7; // q0 __n128 v8; // q1 float v9; // s2 __int64 v10; // x0 v6 = ObjectToolbox::sharedState(); if ( ObjectToolbox::gridNodeSizeForKey(v6, a2) == 15.0 ) v9 = 15.0; else v9 = 30.0; if ( a1 > 4 ) { if ( a1 <= 6 ) { if ( a1 != 5 ) { v10 = a3; v7.n128_f32[0] = v9; LABEL_21: v8.n128_f32[0] = v9; return sub_1000262BC(v10, v7, v8); } v7.n128_f32[0] = -v9; LABEL_20: v10 = a3; goto LABEL_21; } if ( a1 == 7 ) { v7.n128_f32[0] = -v9; v10 = a3; v8.n128_f32[0] = -v9; return sub_1000262BC(v10, v7, v8); } if ( a1 != 8 ) { LABEL_24: v7.n128_u32[0] = 0; goto LABEL_25; } v8.n128_f32[0] = -v9; } else { if ( a1 <= 2 ) { if ( a1 != 1 ) { if ( a1 == 2 ) { v8.n128_f32[0] = -v9; v7.n128_u32[0] = 0; LABEL_26: v10 = a3; return sub_1000262BC(v10, v7, v8); } goto LABEL_24; } v7.n128_u32[0] = 0; goto LABEL_20; } if ( a1 == 3 ) { v7.n128_f32[0] = -v9; LABEL_25: v8.n128_u32[0] = 0; goto LABEL_26; } v8.n128_u32[0] = 0; } v10 = a3; v7.n128_f32[0] = v9; return sub_1000262BC(v10, v7, v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source