{"type": "func", "start": 12586428, "end": 12586596, "name": "EditorUI::getSnapAngle", "pseudocode": "// \n// EditorUI::getSnapAngle from 0xc00dbc to 0xc00e64 (168 bytes)\n// \n// 4 xrefs:\n// > EditorUI::transformObject @ 0xc0114c\n// > EditorUI::transformObjectCall @ 0xc018bc\n// > EditorUI::transformObjectCall @ 0xc01abc\n// > <???> @ 0xd4da0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:03:48 +0000\n// \n\ncocos2d::CCArray *__fastcall EditorUI::getSnapAngle(cocos2d::CCArray *this, GameObject *a2, cocos2d::CCArray *a3)\n{\n  __int64 v4; // x21\n  unsigned int v5; // w19\n  GameObject *v6; // x0\n  float v7; // s0\n  bool v8; // cf\n  GameObject *v9; // [xsp+38h] [xbp+38h]\n\n  v4 = (__int64)this;\n  if ( a3 && (v9 = a2, this = (cocos2d::CCArray *)cocos2d::CCArray::count(a3), a2 = v9, (_DWORD)this) )\n  {\n    v5 = 0;\n    do\n    {\n      v8 = v5 >= (unsigned int)cocos2d::CCArray::count(a3);\n      this = a3;\n      if ( v8 )\n        break;\n      v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v5++);\n      this = (cocos2d::CCArray *)LevelEditorLayer::rotationForSlopeNearObject(*(LevelEditorLayer **)(v4 + 1440), v6);\n    }\n    while ( v7 == -1.0 );\n  }\n  else if ( a2 )\n  {\n    return (cocos2d::CCArray *)LevelEditorLayer::rotationForSlopeNearObject(*(LevelEditorLayer **)(v4 + 1440), a2);\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::getSnapAngle from 0xc00dbc to 0xc00e64 (168 bytes)\n; \n; 4 xrefs:\n; > EditorUI::transformObject @ 0xc0114c\n; > EditorUI::transformObjectCall @ 0xc018bc\n; > EditorUI::transformObjectCall @ 0xc01abc\n; > <???> @ 0xd4da0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:03:48 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xc00dbc\nMOV             X29, SP                                                ; +0x4, 0xc00dc0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xc00dc4\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0xc00dc8\nMOV             X20, X2                                                ; +0x10, 0xc00dcc\nSTR             D8, [SP,#0x40+var_18]                                  ; +0x14, 0xc00dd0\nMOV             X21, X0                                                ; +0x18, 0xc00dd4\nCBZ             X2, loc_C00E48                                         ; +0x1c, 0xc00dd8\nMOV             X0, X2; this                                           ; +0x20, 0xc00ddc\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x24, 0xc00de0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0xc00de4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0xc00de8\nCBZ             W0, loc_C00E48                                         ; +0x30, 0xc00dec\nMOV             W19, #0                                                ; +0x34, 0xc00df0\nFMOV            S8, #-1.0                                              ; +0x38, 0xc00df4\nB               loc_C00E18                                             ; +0x3c, 0xc00df8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x40, 0xc00dfc\nMOV             X1, X0; GameObject *                                   ; +0x44, 0xc00e00\nLDR             X0, [X21,#0x5A0]; this                                 ; +0x48, 0xc00e04\nADD             W19, W19, #1                                           ; +0x4c, 0xc00e08\nBL              _ZN16LevelEditorLayer26rotationForSlopeNearObjectEP10GameObject; LevelEditorLayer::rotationForSlopeNearObject(GameObject *) ; +0x50, 0xc00e0c\nFCMP            S0, S8                                                 ; +0x54, 0xc00e10\nB.NE            loc_C00E34                                             ; +0x58, 0xc00e14\nMOV             X0, X20; this                                          ; +0x5c, 0xc00e18\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0xc00e1c\nCMP             W19, W0                                                ; +0x64, 0xc00e20\nMOV             W1, W19; unsigned int                                  ; +0x68, 0xc00e24\nMOV             X0, X20; this                                          ; +0x6c, 0xc00e28\nB.CC            loc_C00DFC                                             ; +0x70, 0xc00e2c\nFMOV            S0, #-1.0                                              ; +0x74, 0xc00e30\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x78, 0xc00e34\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x7c, 0xc00e38\nLDR             D8, [SP,#0x40+var_18]                                  ; +0x80, 0xc00e3c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0xc00e40\nRET                                                                    ; +0x88, 0xc00e44\nCBZ             X1, loc_C00E30                                         ; +0x8c, 0xc00e48\nLDR             D8, [SP,#0x40+var_18]                                  ; +0x90, 0xc00e4c\nLDR             X0, [X21,#0x5A0]; this                                 ; +0x94, 0xc00e50\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0xc00e54\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x9c, 0xc00e58\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0xc00e5c\nB               _ZN16LevelEditorLayer26rotationForSlopeNearObjectEP10GameObject; LevelEditorLayer::rotationForSlopeNearObject(GameObject *) ; +0xa4, 0xc00e60", "xrefs": ["EditorUI::transformObject @ 0xc0114c", "EditorUI::transformObjectCall @ 0xc018bc", "EditorUI::transformObjectCall @ 0xc01abc", "<???> @ 0xd4da0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}