{"type": "func", "start": 8754084, "end": 8754240, "name": "GJBaseGameLayer::updateOBB2", "pseudocode": "// \n// GJBaseGameLayer::updateOBB2 from 0x8593a4 to 0x859440 (156 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::objectAtPosition @ 0x65e014\n// > LevelEditorLayer::objectsAtPosition @ 0x65e3ac\n// > LevelEditorLayer::objectsInRect @ 0x65e74c\n// > GJBaseGameLayer::damagingObjectsInRect @ 0x859494\n// > <???> @ 0xa8540\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\nvoid GJBaseGameLayer::updateOBB2(GJBaseGameLayer *a1, cocos2d::CCRect a2)\n{\n  cocos2d::CCPoint *v2; // x1\n  cocos2d::CCPoint *v3; // x19\n  OBB2D *m_obb2; // x22\n  float v5; // s3\n  float v6; // s4\n  cocos2d::CCPoint v7; // [xsp+48h] [xbp+48h] BYREF\n  __int64 v8; // [xsp+50h] [xbp+50h] BYREF\n\n  v3 = v2;\n  m_obb2 = a1->m_obb2;\n  cocos2d::CCPoint::CCPoint(&v7, v2[1].x * 0.5, v2[1].y * 0.5);\n  cocos2d::CCPoint::operator+(&v8, v3, &v7);\n  OBB2D::calculateWithCenter(m_obb2, v3[1], 0.0, v5, v6);\n}", "assembly": "; \n; GJBaseGameLayer::updateOBB2 from 0x8593a4 to 0x859440 (156 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::objectAtPosition @ 0x65e014\n; > LevelEditorLayer::objectsAtPosition @ 0x65e3ac\n; > LevelEditorLayer::objectsInRect @ 0x65e74c\n; > GJBaseGameLayer::damagingObjectsInRect @ 0x859494\n; > <???> @ 0xa8540\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_60]!                                ; +0x0, 0x8593a4\nFMOV            S1, #0.5                                               ; +0x4, 0x8593a8\nMOV             X29, SP                                                ; +0x8, 0x8593ac\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0xc, 0x8593b0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8593b4\nMOV             X19, X1                                                ; +0x14, 0x8593b8\nADD             X1, X29, #0x60+var_18                                  ; +0x18, 0x8593bc\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x1c, 0x8593c0\nLDR             S2, [X19,#0xC]                                         ; +0x20, 0x8593c4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x8593c8\nLDR             S0, [X19,#8]                                           ; +0x28, 0x8593cc\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x2c, 0x8593d0\nFMUL            S0, S0, S1; float                                      ; +0x30, 0x8593d4\nLDR             X2, [X20]                                              ; +0x34, 0x8593d8\nFMUL            S1, S2, S1; float                                      ; +0x38, 0x8593dc\nLDR             X22, [X0,#0x918]                                       ; +0x3c, 0x8593e0\nMOV             X0, X1; this                                           ; +0x40, 0x8593e4\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x44, 0x8593e8\nADD             X21, X29, #0x60+var_10                                 ; +0x48, 0x8593ec\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x4c, 0x8593f0\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x50, 0x8593f4\nMOV             X8, X21                                                ; +0x54, 0x8593f8\nMOV             X0, X19                                                ; +0x58, 0x8593fc\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x5c, 0x859400\nLDR             S0, [X19,#8]                                           ; +0x60, 0x859404\nMOV             X0, X22                                                ; +0x64, 0x859408\nLDR             S1, [X19,#0xC]                                         ; +0x68, 0x85940c\nMOV             X1, X21                                                ; +0x6c, 0x859410\nFMOV            S2, WZR                                                ; +0x70, 0x859414\nBL              _ZN5OBB2D19calculateWithCenterEN7cocos2d7CCPointEfff; OBB2D::calculateWithCenter(cocos2d::CCPoint,float,float,float) ; +0x74, 0x859418\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x78, 0x85941c\nLDR             X0, [X20]                                              ; +0x7c, 0x859420\nCMP             X1, X0                                                 ; +0x80, 0x859424\nB.NE            loc_85943C                                             ; +0x84, 0x859428\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x88, 0x85942c\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x8c, 0x859430\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x90, 0x859434\nRET                                                                    ; +0x94, 0x859438\nBL              .__stack_chk_fail                                      ; +0x98, 0x85943c", "xrefs": ["LevelEditorLayer::objectAtPosition @ 0x65e014", "LevelEditorLayer::objectsAtPosition @ 0x65e3ac", "LevelEditorLayer::objectsInRect @ 0x65e74c", "GJBaseGameLayer::damagingObjectsInRect @ 0x859494", "<???> @ 0xa8540"], "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"}