{"type": "func", "start": 5369159984, "end": 5369160289, "name": "OBB2D::overlaps1Way", "pseudocode": "// \n// OBB2D::overlaps1Way from 0x14006e130 to 0x14006e261 (305 bytes)\n// \n// 15 xrefs:\n// > GJBaseGameLayer::damagingObjectsInRect @ 0x140211d17\n// > GJBaseGameLayer::damagingObjectsInRect @ 0x140211d2a\n// > GJBaseGameLayer::checkCollisions @ 0x1402148b4\n// > GJBaseGameLayer::checkCollisions @ 0x1402148c3\n// > GJBaseGameLayer::collisionCheckObjects @ 0x140214bb0\n// > GJBaseGameLayer::collisionCheckObjects @ 0x140214bbf\n// > GJBaseGameLayer::checkCollisionBlocks @ 0x140219014\n// > GJBaseGameLayer::checkCollisionBlocks @ 0x140219023\n// > LevelEditorLayer::objectAtPosition @ 0x1402d5381\n// > LevelEditorLayer::objectAtPosition @ 0x1402d5390\n// > LevelEditorLayer::objectsAtPosition @ 0x1402d574d\n// > LevelEditorLayer::objectsAtPosition @ 0x1402d575c\n// > LevelEditorLayer::objectsInRect @ 0x1402d60d6\n// > LevelEditorLayer::objectsInRect @ 0x1402d60e5\n// > <???> @ 0x1406c60d8\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\nbool OBB2D::overlaps1Way(OBB2D *a1)\n{\n  float *v1; // rdx\n  int v2; // eax\n  std::array<cocos2d::CCPoint, 4> *i; // rcx\n  float y; // xmm5_4\n  float x; // xmm6_4\n  double v6; // xmm2_8\n  double v7; // xmm3_8\n  double v8; // xmm4_8\n  double v9; // xmm4_8\n  double v10; // xmm0_8\n\n  v2 = 0;\n  for ( i = &a1->m_edges; ; i = (std::array<cocos2d::CCPoint, 4> *)((char *)i + 8) )\n  {\n    y = i->_Elems[0].y;\n    x = i->_Elems[0].x;\n    v6 = (float)((float)(i->_Elems[0].x * v1[80]) + (float)(y * v1[81]));\n    v7 = v6;\n    v8 = (float)((float)(y * v1[83]) + (float)(i->_Elems[0].x * v1[82]));\n    if ( v6 <= v8 )\n      v7 = fmax(v8, v6);\n    else\n      v6 = (float)((float)(i->_Elems[0].y * v1[83]) + (float)(i->_Elems[0].x * v1[82]));\n    v9 = (float)((float)(y * v1[85]) + (float)(x * v1[84]));\n    if ( v6 <= v9 )\n      v7 = fmax(v9, v7);\n    else\n      v6 = (float)((float)(y * v1[85]) + (float)(x * v1[84]));\n    v10 = (float)((float)(y * v1[87]) + (float)(x * v1[86]));\n    if ( v6 <= v10 )\n      v7 = fmax(v10, v7);\n    else\n      v6 = (float)((float)(y * v1[87]) + (float)(x * v1[86]));\n    if ( v6 > *(double *)i[1]._Elems + 1.0 || *(double *)i[1]._Elems > v7 )\n      break;\n    if ( ++v2 >= 2 )\n      return 1;\n  }\n  return 0;\n}", "assembly": "; \n; OBB2D::overlaps1Way from 0x14006e130 to 0x14006e261 (305 bytes)\n; \n; 15 xrefs:\n; > GJBaseGameLayer::damagingObjectsInRect @ 0x140211d17\n; > GJBaseGameLayer::damagingObjectsInRect @ 0x140211d2a\n; > GJBaseGameLayer::checkCollisions @ 0x1402148b4\n; > GJBaseGameLayer::checkCollisions @ 0x1402148c3\n; > GJBaseGameLayer::collisionCheckObjects @ 0x140214bb0\n; > GJBaseGameLayer::collisionCheckObjects @ 0x140214bbf\n; > GJBaseGameLayer::checkCollisionBlocks @ 0x140219014\n; > GJBaseGameLayer::checkCollisionBlocks @ 0x140219023\n; > LevelEditorLayer::objectAtPosition @ 0x1402d5381\n; > LevelEditorLayer::objectAtPosition @ 0x1402d5390\n; > LevelEditorLayer::objectsAtPosition @ 0x1402d574d\n; > LevelEditorLayer::objectsAtPosition @ 0x1402d575c\n; > LevelEditorLayer::objectsInRect @ 0x1402d60d6\n; > LevelEditorLayer::objectsInRect @ 0x1402d60e5\n; > <???> @ 0x1406c60d8\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\nsub     rsp, 48h                                                       ; +0x0, 0x14006e130\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x4, 0x14006e134\nxor     eax, eax                                                       ; +0x9, 0x14006e139\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0xb, 0x14006e13b\nadd     rcx, 180h                                                      ; +0x10, 0x14006e140\nmovsd   xmm7, cs:qword_140622E18                                       ; +0x17, 0x14006e147\nmovaps  [rsp+48h+var_38], xmm8                                         ; +0x1f, 0x14006e14f\nmovss   xmm8, dword ptr [rdx+144h]                                     ; +0x25, 0x14006e155\nmovaps  [rsp+48h+var_48], xmm9                                         ; +0x2e, 0x14006e15e\nmovss   xmm9, dword ptr [rdx+140h]                                     ; +0x33, 0x14006e163\nnop     dword ptr [rax+00h]                                            ; +0x3c, 0x14006e16c\nmovss   xmm5, dword ptr [rcx+4]                                        ; +0x40, 0x14006e170\nmovss   xmm6, dword ptr [rcx]                                          ; +0x45, 0x14006e175\nmovaps  xmm0, xmm5                                                     ; +0x49, 0x14006e179\nmovaps  xmm1, xmm6                                                     ; +0x4c, 0x14006e17c\nmulss   xmm0, xmm8                                                     ; +0x4f, 0x14006e17f\nmulss   xmm1, xmm9                                                     ; +0x54, 0x14006e184\naddss   xmm1, xmm0                                                     ; +0x59, 0x14006e189\nmovaps  xmm0, xmm6                                                     ; +0x5d, 0x14006e18d\nmulss   xmm0, dword ptr [rdx+148h]                                     ; +0x60, 0x14006e190\ncvtps2pd xmm2, xmm1                                                    ; +0x68, 0x14006e198\nmovaps  xmm1, xmm5                                                     ; +0x6b, 0x14006e19b\nmulss   xmm1, dword ptr [rdx+14Ch]                                     ; +0x6e, 0x14006e19e\nmovaps  xmm3, xmm2                                                     ; +0x76, 0x14006e1a6\naddss   xmm1, xmm0                                                     ; +0x79, 0x14006e1a9\ncvtps2pd xmm4, xmm1                                                    ; +0x7d, 0x14006e1ad\ncomisd  xmm2, xmm4                                                     ; +0x80, 0x14006e1b0\njbe     short loc_14006E1BB                                            ; +0x84, 0x14006e1b4\nmovaps  xmm2, xmm4                                                     ; +0x86, 0x14006e1b6\njmp     short loc_14006E1C2                                            ; +0x89, 0x14006e1b9\nmaxsd   xmm4, xmm2                                                     ; +0x8b, 0x14006e1bb\nmovaps  xmm3, xmm4                                                     ; +0x8f, 0x14006e1bf\nmovaps  xmm1, xmm5                                                     ; +0x92, 0x14006e1c2\nmovaps  xmm0, xmm6                                                     ; +0x95, 0x14006e1c5\nmulss   xmm1, dword ptr [rdx+154h]                                     ; +0x98, 0x14006e1c8\nmulss   xmm0, dword ptr [rdx+150h]                                     ; +0xa0, 0x14006e1d0\naddss   xmm1, xmm0                                                     ; +0xa8, 0x14006e1d8\ncvtps2pd xmm4, xmm1                                                    ; +0xac, 0x14006e1dc\ncomisd  xmm2, xmm4                                                     ; +0xaf, 0x14006e1df\njbe     short loc_14006E1EA                                            ; +0xb3, 0x14006e1e3\nmovaps  xmm2, xmm4                                                     ; +0xb5, 0x14006e1e5\njmp     short loc_14006E1F1                                            ; +0xb8, 0x14006e1e8\nmaxsd   xmm4, xmm3                                                     ; +0xba, 0x14006e1ea\nmovaps  xmm3, xmm4                                                     ; +0xbe, 0x14006e1ee\nmulss   xmm5, dword ptr [rdx+15Ch]                                     ; +0xc1, 0x14006e1f1\nmulss   xmm6, dword ptr [rdx+158h]                                     ; +0xc9, 0x14006e1f9\naddss   xmm5, xmm6                                                     ; +0xd1, 0x14006e201\ncvtps2pd xmm0, xmm5                                                    ; +0xd5, 0x14006e205\ncomisd  xmm2, xmm0                                                     ; +0xd8, 0x14006e208\njbe     short loc_14006E213                                            ; +0xdc, 0x14006e20c\nmovaps  xmm2, xmm0                                                     ; +0xde, 0x14006e20e\njmp     short loc_14006E21A                                            ; +0xe1, 0x14006e211\nmaxsd   xmm0, xmm3                                                     ; +0xe3, 0x14006e213\nmovaps  xmm3, xmm0                                                     ; +0xe7, 0x14006e217\nmovsd   xmm1, qword ptr [rcx+20h]                                      ; +0xea, 0x14006e21a\nmovaps  xmm0, xmm1                                                     ; +0xef, 0x14006e21f\naddsd   xmm0, xmm7                                                     ; +0xf2, 0x14006e222\ncomisd  xmm2, xmm0                                                     ; +0xf6, 0x14006e226\nja      short loc_14006E245                                            ; +0xfa, 0x14006e22a\ncomisd  xmm1, xmm3                                                     ; +0xfc, 0x14006e22c\nja      short loc_14006E245                                            ; +0x100, 0x14006e230\ninc     eax                                                            ; +0x102, 0x14006e232\nadd     rcx, 8                                                         ; +0x104, 0x14006e234\ncmp     eax, 2                                                         ; +0x108, 0x14006e238\njl      loc_14006E170                                                  ; +0x10b, 0x14006e23b\nmov     al, 1                                                          ; +0x111, 0x14006e241\njmp     short loc_14006E247                                            ; +0x113, 0x14006e243\nxor     al, al                                                         ; +0x115, 0x14006e245\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x117, 0x14006e247\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x11c, 0x14006e24c\nmovaps  xmm8, [rsp+48h+var_38]                                         ; +0x121, 0x14006e251\nmovaps  xmm9, [rsp+48h+var_48]                                         ; +0x127, 0x14006e257\nadd     rsp, 48h                                                       ; +0x12c, 0x14006e25c\nretn                                                                   ; +0x130, 0x14006e260", "xrefs": ["GJBaseGameLayer::damagingObjectsInRect @ 0x140211d17", "GJBaseGameLayer::damagingObjectsInRect @ 0x140211d2a", "GJBaseGameLayer::checkCollisions @ 0x1402148b4", "GJBaseGameLayer::checkCollisions @ 0x1402148c3", "GJBaseGameLayer::collisionCheckObjects @ 0x140214bb0", "GJBaseGameLayer::collisionCheckObjects @ 0x140214bbf", "GJBaseGameLayer::checkCollisionBlocks @ 0x140219014", "GJBaseGameLayer::checkCollisionBlocks @ 0x140219023", "LevelEditorLayer::objectAtPosition @ 0x1402d5381", "LevelEditorLayer::objectAtPosition @ 0x1402d5390", "LevelEditorLayer::objectsAtPosition @ 0x1402d574d", "LevelEditorLayer::objectsAtPosition @ 0x1402d575c", "LevelEditorLayer::objectsInRect @ 0x1402d60d6", "LevelEditorLayer::objectsInRect @ 0x1402d60e5", "<???> @ 0x1406c60d8"], "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"}