{"type": "func", "start": 6877264, "end": 6877432, "name": "EditorUI::getSnapAngle", "pseudocode": "// \n// EditorUI::getSnapAngle from 0x68f050 to 0x68f0f8 (168 bytes)\n// \n// 4 xrefs:\n// > EditorUI::transformObject @ 0x693878\n// > EditorUI::transformObjectCall @ 0x6b9f8c\n// > EditorUI::transformObjectCall @ 0x6ba020\n// > <???> @ 0xa1df0\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 EditorUI::getSnapAngle(EditorUI *a1, GameObject *a2, cocos2d::CCArray *a3)\n{\n  int v5; // w0\n  unsigned int v6; // w19\n  GameObject *v7; // x0\n  float result; // s0\n  GameObject *v9; // [xsp+38h] [xbp+38h]\n\n  if ( a3 && (v9 = a2, v5 = cocos2d::CCArray::count(a3), a2 = v9, v5) )\n  {\n    v6 = 0;\n    while ( v6 < (unsigned int)cocos2d::CCArray::count(a3) )\n    {\n      v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v6++);\n      result = LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, v7);\n      if ( result != -1.0 )\n        return result;\n    }\n  }\n  else if ( a2 )\n  {\n    return LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, a2);\n  }\n  return -1.0;\n}", "assembly": "; \n; EditorUI::getSnapAngle from 0x68f050 to 0x68f0f8 (168 bytes)\n; \n; 4 xrefs:\n; > EditorUI::transformObject @ 0x693878\n; > EditorUI::transformObjectCall @ 0x6b9f8c\n; > EditorUI::transformObjectCall @ 0x6ba020\n; > <???> @ 0xa1df0\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             X29, X30, [SP,#var_40]!                                ; +0x0, 0x68f050\nMOV             X29, SP                                                ; +0x4, 0x68f054\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x68f058\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x68f05c\nMOV             X20, X2                                                ; +0x10, 0x68f060\nSTR             D8, [SP,#0x40+var_18]                                  ; +0x14, 0x68f064\nMOV             X21, X0                                                ; +0x18, 0x68f068\nCBZ             X2, loc_68F0DC                                         ; +0x1c, 0x68f06c\nMOV             X0, X2; this                                           ; +0x20, 0x68f070\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x24, 0x68f074\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x68f078\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0x68f07c\nCBZ             W0, loc_68F0DC                                         ; +0x30, 0x68f080\nMOV             W19, #0                                                ; +0x34, 0x68f084\nFMOV            S8, #-1.0                                              ; +0x38, 0x68f088\nB               loc_68F0AC                                             ; +0x3c, 0x68f08c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x40, 0x68f090\nMOV             X1, X0; GameObject *                                   ; +0x44, 0x68f094\nLDR             X0, [X21,#0x4F8]; this                                 ; +0x48, 0x68f098\nADD             W19, W19, #1                                           ; +0x4c, 0x68f09c\nBL              _ZN16LevelEditorLayer26rotationForSlopeNearObjectEP10GameObject; LevelEditorLayer::rotationForSlopeNearObject(GameObject *) ; +0x50, 0x68f0a0\nFCMP            S0, S8                                                 ; +0x54, 0x68f0a4\nB.NE            loc_68F0C8                                             ; +0x58, 0x68f0a8\nMOV             X0, X20; this                                          ; +0x5c, 0x68f0ac\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x68f0b0\nCMP             W19, W0                                                ; +0x64, 0x68f0b4\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x68f0b8\nMOV             X0, X20; this                                          ; +0x6c, 0x68f0bc\nB.CC            loc_68F090                                             ; +0x70, 0x68f0c0\nFMOV            S0, #-1.0                                              ; +0x74, 0x68f0c4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x78, 0x68f0c8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x7c, 0x68f0cc\nLDR             D8, [SP,#0x40+var_18]                                  ; +0x80, 0x68f0d0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0x68f0d4\nRET                                                                    ; +0x88, 0x68f0d8\nCBZ             X1, loc_68F0C4                                         ; +0x8c, 0x68f0dc\nLDR             D8, [SP,#0x40+var_18]                                  ; +0x90, 0x68f0e0\nLDR             X0, [X21,#0x4F8]; this                                 ; +0x94, 0x68f0e4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0x68f0e8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x9c, 0x68f0ec\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0x68f0f0\nB               _ZN16LevelEditorLayer26rotationForSlopeNearObjectEP10GameObject; LevelEditorLayer::rotationForSlopeNearObject(GameObject *) ; +0xa4, 0x68f0f4", "xrefs": ["EditorUI::transformObject @ 0x693878", "EditorUI::transformObjectCall @ 0x6b9f8c", "EditorUI::transformObjectCall @ 0x6ba020", "<???> @ 0xa1df0"], "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"}