{"type": "func", "start": 4299121264, "end": 4299121444, "name": "EditorUI::getSnapAngle", "pseudocode": "// \n// EditorUI::getSnapAngle from 0x1003f6270 to 0x1003f6324 (180 bytes)\n// \n// 2 xrefs:\n// > EditorUI::transformObjectCall_1 @ 0x1003f6478\n// > EditorUI::transformObjectCall_1 @ 0x1003f64a4\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\nfloat __fastcall EditorUI::getSnapAngle(EditorUI *a1, GameObject *a2, cocos2d::CCArray *a3)\n{\n  unsigned int v6; // w21\n  GameObject *v7; // x0\n  float result; // s0\n\n  if ( !a3 || !(unsigned int)sub_10024A36C((__int64)a3) )\n  {\n    if ( a2 )\n      return LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, a2);\n    return -1.0;\n  }\n  if ( !(unsigned int)sub_10024A36C((__int64)a3) )\n    return -1.0;\n  v6 = 0;\n  while ( 1 )\n  {\n    v7 = (GameObject *)sub_10024A388((__int64)a3, v6);\n    result = LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, v7);\n    if ( result != -1.0 )\n      break;\n    if ( ++v6 >= (unsigned int)sub_10024A36C((__int64)a3) )\n      return -1.0;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::getSnapAngle from 0x1003f6270 to 0x1003f6324 (180 bytes)\n; \n; 2 xrefs:\n; > EditorUI::transformObjectCall_1 @ 0x1003f6478\n; > EditorUI::transformObjectCall_1 @ 0x1003f64a4\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\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x1003f6270\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003f6274\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003f6278\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003f627c\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003f6280\nMOV             X21, X1                                                ; +0x14, 0x1003f6284\nMOV             X19, X0                                                ; +0x18, 0x1003f6288\nCBZ             X2, loc_1003F62EC                                      ; +0x1c, 0x1003f628c\nMOV             X20, X2                                                ; +0x20, 0x1003f6290\nMOV             X0, X2                                                 ; +0x24, 0x1003f6294\nBL              sub_10024A36C                                          ; +0x28, 0x1003f6298\nCBZ             W0, loc_1003F62EC                                      ; +0x2c, 0x1003f629c\nMOV             X0, X20                                                ; +0x30, 0x1003f62a0\nBL              sub_10024A36C                                          ; +0x34, 0x1003f62a4\nCBZ             W0, loc_1003F630C                                      ; +0x38, 0x1003f62a8\nMOV             W21, #0                                                ; +0x3c, 0x1003f62ac\nFMOV            S8, #-1.0                                              ; +0x40, 0x1003f62b0\nMOV             X0, X20                                                ; +0x44, 0x1003f62b4\nMOV             X1, X21                                                ; +0x48, 0x1003f62b8\nBL              sub_10024A388                                          ; +0x4c, 0x1003f62bc\nMOV             X1, X0                                                 ; +0x50, 0x1003f62c0\nLDR             X0, [X19,#0x4E8]                                       ; +0x54, 0x1003f62c4\nBL              LevelEditorLayer__rotationForSlopeNearObject           ; +0x58, 0x1003f62c8\nFCMP            S0, S8                                                 ; +0x5c, 0x1003f62cc\nB.NE            loc_1003F6310                                          ; +0x60, 0x1003f62d0\nADD             W21, W21, #1                                           ; +0x64, 0x1003f62d4\nMOV             X0, X20                                                ; +0x68, 0x1003f62d8\nBL              sub_10024A36C                                          ; +0x6c, 0x1003f62dc\nCMP             W21, W0                                                ; +0x70, 0x1003f62e0\nB.CC            loc_1003F62B4                                          ; +0x74, 0x1003f62e4\nB               loc_1003F630C                                          ; +0x78, 0x1003f62e8\nCBZ             X21, loc_1003F630C                                     ; +0x7c, 0x1003f62ec\nLDR             X0, [X19,#0x4E8]                                       ; +0x80, 0x1003f62f0\nMOV             X1, X21                                                ; +0x84, 0x1003f62f4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x88, 0x1003f62f8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x8c, 0x1003f62fc\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x90, 0x1003f6300\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x94, 0x1003f6304\nB               LevelEditorLayer__rotationForSlopeNearObject           ; +0x98, 0x1003f6308\nFMOV            S0, #-1.0                                              ; +0x9c, 0x1003f630c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x1003f6310\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x1003f6314\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa8, 0x1003f6318\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0xac, 0x1003f631c\nRET                                                                    ; +0xb0, 0x1003f6320", "xrefs": ["EditorUI::transformObjectCall_1 @ 0x1003f6478", "EditorUI::transformObjectCall_1 @ 0x1003f64a4"], "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"}