{"type": "func", "start": 4647300, "end": 4647404, "name": "GJBaseGameLayer::updateOBB2", "pseudocode": "// \n// GJBaseGameLayer::updateOBB2 from 0x46e984 to 0x46e9ec (104 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::objectAtPosition @ 0x3668dc\n// > LevelEditorLayer::objectsAtPosition @ 0x366ad2\n// > LevelEditorLayer::objectsInRect @ 0x366cd2\n// > GJBaseGameLayer::damagingObjectsInRect @ 0x46ea16\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  OBB2D *m_obb2; // r8\n  float x; // r4\n  cocos2d::CCPoint v4; // r1\n  float v5; // [sp+4h] [bp-10h]\n  cocos2d::CCPoint v6; // [sp+Ch] [bp-8h] BYREF\n  _BYTE v7[8]; // [sp+14h] [bp+0h] BYREF\n\n  m_obb2 = a1->m_obb2;\n  x = a2.origin.x;\n  cocos2d::CCPoint::CCPoint(\n    &v6,\n    *(float *)(LODWORD(a2.origin.x) + 8) * 0.5,\n    *(float *)(LODWORD(a2.origin.x) + 12) * 0.5);\n  cocos2d::CCPoint::operator+(v7, LODWORD(x), &v6);\n  v4.y = *(float *)(LODWORD(x) + 8);\n  LODWORD(v4.x) = v7;\n  OBB2D::calculateWithCenter(m_obb2, v4, *(float *)(LODWORD(x) + 12), 0.0, v5);\n}", "assembly": "; \n; GJBaseGameLayer::updateOBB2 from 0x46e984 to 0x46e9ec (104 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::objectAtPosition @ 0x3668dc\n; > LevelEditorLayer::objectsAtPosition @ 0x366ad2\n; > LevelEditorLayer::objectsInRect @ 0x366cd2\n; > GJBaseGameLayer::damagingObjectsInRect @ 0x46ea16\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\nVMOV.F32        S15, #0.5                                              ; +0x0, 0x46e984\nVLDR            S14, [R1,#0xC]                                         ; +0x4, 0x46e988\nPUSH.W          {R4-R8,LR}                                             ; +0x8, 0x46e98c\nSUB             SP, SP, #0x20                                          ; +0xc, 0x46e990\nVLDR            S13, [R1,#8]                                           ; +0xe, 0x46e992\nADD             R6, SP, #0x20+var_14                                   ; +0x12, 0x46e996\nLDR             R5, =(__stack_chk_guard_ptr - 0x46E9A6)                ; +0x14, 0x46e998\nADD             R7, SP, #0x14                                          ; +0x16, 0x46e99a\nLDR.W           R8, [R0,#0x648]                                        ; +0x18, 0x46e99c\nMOV             R4, R1                                                 ; +0x1c, 0x46e9a0\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x1e, 0x46e9a2\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x20, 0x46e9a4\nMOV             R0, R6; this                                           ; +0x22, 0x46e9a6\nLDR             R3, [R5]                                               ; +0x24, 0x46e9a8\nVMUL.F32        S13, S13, S15                                          ; +0x26, 0x46e9aa\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x2a, 0x46e9ae\nVMUL.F32        S15, S14, S15                                          ; +0x2c, 0x46e9b0\nVMOV            R1, S13; float                                         ; +0x30, 0x46e9b4\nVMOV            R2, S15; float                                         ; +0x34, 0x46e9b8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x38, 0x46e9bc\nMOV             R0, R7                                                 ; +0x3c, 0x46e9c0\nMOV             R1, R4                                                 ; +0x3e, 0x46e9c2\nMOV             R2, R6                                                 ; +0x40, 0x46e9c4\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x42, 0x46e9c6\nMOVS            R3, #0                                                 ; +0x46, 0x46e9ca\nLDR             R2, [R4,#8]                                            ; +0x48, 0x46e9cc\nMOV             R0, R8                                                 ; +0x4a, 0x46e9ce\nSTR             R3, [SP,#0x20+var_20]                                  ; +0x4c, 0x46e9d0\nMOV             R1, R7                                                 ; +0x4e, 0x46e9d2\nLDR             R3, [R4,#0xC]                                          ; +0x50, 0x46e9d4\nBL              _ZN5OBB2D19calculateWithCenterEN7cocos2d7CCPointEfff; OBB2D::calculateWithCenter(cocos2d::CCPoint,float,float,float) ; +0x52, 0x46e9d6\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x56, 0x46e9da\nLDR             R3, [R5]                                               ; +0x58, 0x46e9dc\nCMP             R2, R3                                                 ; +0x5a, 0x46e9de\nBEQ             loc_46E9E6                                             ; +0x5c, 0x46e9e0\nBLX             __stack_chk_fail                                       ; +0x5e, 0x46e9e2\nADD             SP, SP, #0x20 ; ' '                                    ; +0x62, 0x46e9e6\nPOP.W           {R4-R8,PC}                                             ; +0x64, 0x46e9e8", "xrefs": ["LevelEditorLayer::objectAtPosition @ 0x3668dc", "LevelEditorLayer::objectsAtPosition @ 0x366ad2", "LevelEditorLayer::objectsInRect @ 0x366cd2", "GJBaseGameLayer::damagingObjectsInRect @ 0x46ea16"], "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"}