{"type": "func", "start": 4296158592, "end": 4296158708, "name": "GJBaseGameLayer::updateOBB2", "pseudocode": "// \n// GJBaseGameLayer::updateOBB2 from 0x100122d80 to 0x100122df4 (116 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::objectsInRect @ 0x1000e0c9c\n// > LevelEditorLayer::objectAtPosition @ 0x1000e122d\n// > LevelEditorLayer::objectsAtPosition @ 0x1000e19ad\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 __fastcall GJBaseGameLayer::updateOBB2(GJBaseGameLayer *a1, cocos2d::CCRect a2)\n{\n  __int64 v2; // rsi\n  float v3; // xmm3_4\n  OBB2D *m_obb2; // rbx\n  _BYTE v5[8]; // [rsp+0h] [rbp-30h] BYREF\n  _BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  m_obb2 = a1->m_obb2;\n  sub_10028CBE0(v6, *(float *)(v2 + 8) * 0.5, 0.5 * *(float *)(v2 + 12));\n  sub_10028CCE0(v5, v2);\n  OBB2D::calculateWithCenter(m_obb2, (cocos2d::CCPoint)*(unsigned int *)(v2 + 8), *(float *)(v2 + 12), 0.0, v3);\n}", "assembly": "; \n; GJBaseGameLayer::updateOBB2 from 0x100122d80 to 0x100122df4 (116 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::objectsInRect @ 0x1000e0c9c\n; > LevelEditorLayer::objectAtPosition @ 0x1000e122d\n; > LevelEditorLayer::objectsAtPosition @ 0x1000e19ad\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\npush    rbp                                                            ; +0x0, 0x100122d80\nmov     rbp, rsp                                                       ; +0x1, 0x100122d81\npush    r15                                                            ; +0x4, 0x100122d84\npush    r14                                                            ; +0x6, 0x100122d86\npush    r12                                                            ; +0x8, 0x100122d88\npush    rbx                                                            ; +0xa, 0x100122d8a\nsub     rsp, 10h                                                       ; +0xb, 0x100122d8b\nmov     r14, rsi                                                       ; +0xf, 0x100122d8f\nmov     rbx, [rdi+808h]                                                ; +0x12, 0x100122d92\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x19, 0x100122d99\nmovss   xmm0, dword ptr [rsi+8]                                        ; +0x21, 0x100122da1\nmulss   xmm0, xmm1                                                     ; +0x26, 0x100122da6\nmulss   xmm1, dword ptr [rsi+0Ch]                                      ; +0x2a, 0x100122daa\nlea     r15, [rbp+var_28]                                              ; +0x2f, 0x100122daf\nmov     rdi, r15                                                       ; +0x33, 0x100122db3\ncall    sub_10028CBE0                                                  ; +0x36, 0x100122db6\nlea     r12, [rbp+var_30]                                              ; +0x3b, 0x100122dbb\nmov     rdi, r12                                                       ; +0x3f, 0x100122dbf\nmov     rsi, r14                                                       ; +0x42, 0x100122dc2\nmov     rdx, r15                                                       ; +0x45, 0x100122dc5\ncall    sub_10028CCE0                                                  ; +0x48, 0x100122dc8\nmovss   xmm0, dword ptr [r14+8]                                        ; +0x4d, 0x100122dcd\nmovss   xmm1, dword ptr [r14+0Ch]                                      ; +0x53, 0x100122dd3\nxorps   xmm2, xmm2                                                     ; +0x59, 0x100122dd9\nmov     rdi, rbx                                                       ; +0x5c, 0x100122ddc\nmov     rsi, r12                                                       ; +0x5f, 0x100122ddf\ncall    OBB2D__calculateWithCenter                                     ; +0x62, 0x100122de2\nadd     rsp, 10h                                                       ; +0x67, 0x100122de7\npop     rbx                                                            ; +0x6b, 0x100122deb\npop     r12                                                            ; +0x6c, 0x100122dec\npop     r14                                                            ; +0x6e, 0x100122dee\npop     r15                                                            ; +0x70, 0x100122df0\npop     rbp                                                            ; +0x72, 0x100122df2\nretn                                                                   ; +0x73, 0x100122df3", "xrefs": ["LevelEditorLayer::objectsInRect @ 0x1000e0c9c", "LevelEditorLayer::objectAtPosition @ 0x1000e122d", "LevelEditorLayer::objectsAtPosition @ 0x1000e19ad"], "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"}