{"type": "func", "start": 7396572, "end": 7396684, "name": "EditorUI::getSnapAngle", "pseudocode": "// \n// EditorUI::getSnapAngle from 0x70dcdc to 0x70dd4c (112 bytes)\n// \n// 3 xrefs:\n// > EditorUI::transformObject @ 0x70df9c\n// > EditorUI::transformObjectCall @ 0x70e48e\n// > EditorUI::transformObjectCall @ 0x70e580\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:57:42 +0000\n// \n\nint __fastcall EditorUI::getSnapAngle(LevelEditorLayer **this, GameObject *a2, cocos2d::CCArray *a3)\n{\n  unsigned int i; // r4\n  GameObject *v7; // r0\n  float v8; // r2\n  float v9; // s15\n\n  if ( a3 && cocos2d::CCArray::count(a3) )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a3); ++i )\n    {\n      v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, i);\n      v9 = COERCE_FLOAT(LevelEditorLayer::rotationForSlopeNearObject(*(this + 236), v7, v8));\n      if ( v9 != -1.0 )\n        return LODWORD(v9);\n    }\n  }\n  else if ( a2 )\n  {\n    return LevelEditorLayer::rotationForSlopeNearObject(*(this + 236), a2, *(float *)&a3);\n  }\n  v9 = -1.0;\n  return LODWORD(v9);\n}", "assembly": "; \n; EditorUI::getSnapAngle from 0x70dcdc to 0x70dd4c (112 bytes)\n; \n; 3 xrefs:\n; > EditorUI::transformObject @ 0x70df9c\n; > EditorUI::transformObjectCall @ 0x70e48e\n; > EditorUI::transformObjectCall @ 0x70e580\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:57:42 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x70dcdc\nMOV             R6, R0                                                 ; +0x2, 0x70dcde\nVPUSH           {D8}                                                   ; +0x4, 0x70dce0\nMOV             R4, R1                                                 ; +0x8, 0x70dce4\nMOV             R5, R2                                                 ; +0xa, 0x70dce6\nCBZ             R2, loc_70DD2C                                         ; +0xc, 0x70dce8\nMOV             R0, R2; this                                           ; +0xe, 0x70dcea\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10, 0x70dcec\nCBZ             R0, loc_70DD2C                                         ; +0x14, 0x70dcf0\nVMOV.F32        S16, #-1.0                                             ; +0x16, 0x70dcf2\nMOVS            R4, #0                                                 ; +0x1a, 0x70dcf6\nMOV             R0, R5; this                                           ; +0x1c, 0x70dcf8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x70dcfa\nCMP             R4, R0                                                 ; +0x22, 0x70dcfe\nBCS             loc_70DD26                                             ; +0x24, 0x70dd00\nMOV             R1, R4; unsigned int                                   ; +0x26, 0x70dd02\nMOV             R0, R5; this                                           ; +0x28, 0x70dd04\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2a, 0x70dd06\nMOV             R1, R0; GameObject *                                   ; +0x2e, 0x70dd0a\nLDR.W           R0, [R6,#0x3B0]; this                                  ; +0x30, 0x70dd0c\nBL              _ZN16LevelEditorLayer26rotationForSlopeNearObjectEP10GameObject; LevelEditorLayer::rotationForSlopeNearObject(GameObject *) ; +0x34, 0x70dd10\nVMOV            S15, R0                                                ; +0x38, 0x70dd14\nVCMP.F32        S15, S16                                               ; +0x3c, 0x70dd18\nVMRS            APSR_nzcv, FPSCR                                       ; +0x40, 0x70dd1c\nBNE             loc_70DD42                                             ; +0x44, 0x70dd20\nADDS            R4, #1                                                 ; +0x46, 0x70dd22\nB               loc_70DCF8                                             ; +0x48, 0x70dd24\nVMOV.F32        S15, #-1.0                                             ; +0x4a, 0x70dd26\nB               loc_70DD42                                             ; +0x4e, 0x70dd2a\nCMP             R4, #0                                                 ; +0x50, 0x70dd2c\nBEQ             loc_70DD26                                             ; +0x52, 0x70dd2e\nVPOP            {D8}                                                   ; +0x54, 0x70dd30\nMOV             R1, R4; GameObject *                                   ; +0x58, 0x70dd34\nLDR.W           R0, [R6,#0x3B0]; this                                  ; +0x5a, 0x70dd36\nPOP.W           {R4-R6,LR}                                             ; +0x5e, 0x70dd3a\nB.W             _ZN16LevelEditorLayer26rotationForSlopeNearObjectEP10GameObject; LevelEditorLayer::rotationForSlopeNearObject(GameObject *) ; +0x62, 0x70dd3e\nVPOP            {D8}                                                   ; +0x66, 0x70dd42\nVMOV            R0, S15                                                ; +0x6a, 0x70dd46\nPOP             {R4-R6,PC}                                             ; +0x6e, 0x70dd4a", "xrefs": ["EditorUI::transformObject @ 0x70df9c", "EditorUI::transformObjectCall @ 0x70e48e", "EditorUI::transformObjectCall @ 0x70e580"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}