{"type": "func", "start": 5369215856, "end": 5369216291, "name": "OBB2D::overlaps1Way", "pseudocode": "// \n// OBB2D::overlaps1Way from 0x14007bb70 to 0x14007bd23 (435 bytes)\n// \n// 15 xrefs:\n// > GJBaseGameLayer::damagingObjectsInRect @ 0x140318bf6\n// > GJBaseGameLayer::damagingObjectsInRect @ 0x140318c09\n// > GJBaseGameLayer::checkCollisions @ 0x14031bc2a\n// > GJBaseGameLayer::checkCollisions @ 0x14031bc39\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031bf34\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031bf43\n// > GJBaseGameLayer::checkCollisionBlocks @ 0x1403205b7\n// > GJBaseGameLayer::checkCollisionBlocks @ 0x1403205c6\n// > LevelEditorLayer::objectAtPosition @ 0x1403f1513\n// > LevelEditorLayer::objectAtPosition @ 0x1403f1522\n// > LevelEditorLayer::objectsAtPosition @ 0x1403f18c5\n// > LevelEditorLayer::objectsAtPosition @ 0x1403f18d4\n// > LevelEditorLayer::objectsInRect @ 0x1403f2115\n// > LevelEditorLayer::objectsInRect @ 0x1403f2124\n// > <???> @ 0x140911dbc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:53 +0000\n// \n\nchar __fastcall OBB2D::overlaps1Way(__int64 a1, float *a2)\n{\n  float v2; // xmm8_4\n  float v3; // xmm10_4\n  int v4; // eax\n  __int64 i; // rcx\n  float v6; // xmm5_4\n  float v7; // xmm6_4\n  double v8; // xmm2_8\n  double v9; // xmm3_8\n  double v10; // xmm4_8\n  double v11; // xmm4_8\n  double v12; // xmm4_8\n\n  v4 = 0;\n  for ( i = a1 + 388; ; i += 8 )\n  {\n    v6 = *(float *)(i - 4);\n    v7 = *(float *)i;\n    v8 = (float)((float)(*(float *)i * a2[81]) + (float)(v6 * a2[80]));\n    v9 = v8;\n    v10 = (float)((float)(*(float *)i * a2[83]) + (float)(v6 * a2[82]));\n    if ( v8 <= v10 )\n      v9 = fmax(v10, v8);\n    else\n      v8 = (float)((float)(*(float *)i * a2[83]) + (float)(*(float *)(i - 4) * a2[82]));\n    v2 = a2[84];\n    v11 = (float)((float)(a2[85] * v7) + (float)(v2 * v6));\n    if ( v8 <= v11 )\n      v9 = fmax(v11, v9);\n    else\n      v8 = (float)((float)(a2[85] * v7) + (float)(v2 * v6));\n    v3 = a2[86];\n    v12 = (float)((float)(a2[87] * v7) + (float)(v3 * v6));\n    if ( v8 <= v12 )\n      v9 = fmax(v12, v9);\n    else\n      v8 = (float)((float)(a2[87] * v7) + (float)(v3 * v6));\n    if ( v8 > *(double *)(i + 28) + 1.0 || *(double *)(i + 28) > v9 )\n      break;\n    if ( ++v4 >= 2 )\n      return 1;\n  }\n  return 0;\n}", "assembly": "; \n; OBB2D::overlaps1Way from 0x14007bb70 to 0x14007bd23 (435 bytes)\n; \n; 15 xrefs:\n; > GJBaseGameLayer::damagingObjectsInRect @ 0x140318bf6\n; > GJBaseGameLayer::damagingObjectsInRect @ 0x140318c09\n; > GJBaseGameLayer::checkCollisions @ 0x14031bc2a\n; > GJBaseGameLayer::checkCollisions @ 0x14031bc39\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031bf34\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031bf43\n; > GJBaseGameLayer::checkCollisionBlocks @ 0x1403205b7\n; > GJBaseGameLayer::checkCollisionBlocks @ 0x1403205c6\n; > LevelEditorLayer::objectAtPosition @ 0x1403f1513\n; > LevelEditorLayer::objectAtPosition @ 0x1403f1522\n; > LevelEditorLayer::objectsAtPosition @ 0x1403f18c5\n; > LevelEditorLayer::objectsAtPosition @ 0x1403f18d4\n; > LevelEditorLayer::objectsInRect @ 0x1403f2115\n; > LevelEditorLayer::objectsInRect @ 0x1403f2124\n; > <???> @ 0x140911dbc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:53 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14007bb70\nsub     rsp, 0A8h                                                      ; +0x3, 0x14007bb73\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xa, 0x14007bb7a\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0xe, 0x14007bb7e\nmovsd   xmm7, cs:qword_140835278                                       ; +0x12, 0x14007bb82\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x1a, 0x14007bb8a\nmovss   xmm8, dword ptr [rdx+150h]                                     ; +0x1f, 0x14007bb8f\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x28, 0x14007bb98\nmovss   xmm9, dword ptr [rdx+154h]                                     ; +0x2d, 0x14007bb9d\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x36, 0x14007bba6\nmovss   xmm10, dword ptr [rdx+158h]                                    ; +0x3b, 0x14007bbab\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x44, 0x14007bbb4\nmovss   xmm11, dword ptr [rdx+15Ch]                                    ; +0x49, 0x14007bbb9\nmovaps  xmmword ptr [rax-78h], xmm12                                   ; +0x52, 0x14007bbc2\nxor     eax, eax                                                       ; +0x57, 0x14007bbc7\nmovss   xmm12, dword ptr [rdx+140h]                                    ; +0x59, 0x14007bbc9\nadd     rcx, 184h                                                      ; +0x62, 0x14007bbd2\nmovaps  [rsp+0A8h+var_88], xmm13                                       ; +0x69, 0x14007bbd9\nmovss   xmm13, dword ptr [rdx+144h]                                    ; +0x6f, 0x14007bbdf\nmovaps  [rsp+0A8h+var_98], xmm14                                       ; +0x78, 0x14007bbe8\nmovss   xmm14, dword ptr [rdx+148h]                                    ; +0x7e, 0x14007bbee\nmovaps  [rsp+0A8h+var_A8], xmm15                                       ; +0x87, 0x14007bbf7\nmovss   xmm15, dword ptr [rdx+14Ch]                                    ; +0x8c, 0x14007bbfc\nnop     word ptr [rax+rax+00000000h]                                   ; +0x95, 0x14007bc05\nmovss   xmm5, dword ptr [rcx-4]                                        ; +0xa0, 0x14007bc10\nmovss   xmm6, dword ptr [rcx]                                          ; +0xa5, 0x14007bc15\nmovaps  xmm0, xmm5                                                     ; +0xa9, 0x14007bc19\nmovaps  xmm1, xmm6                                                     ; +0xac, 0x14007bc1c\nmulss   xmm0, xmm12                                                    ; +0xaf, 0x14007bc1f\nmulss   xmm1, xmm13                                                    ; +0xb4, 0x14007bc24\naddss   xmm1, xmm0                                                     ; +0xb9, 0x14007bc29\nmovaps  xmm0, xmm5                                                     ; +0xbd, 0x14007bc2d\nmulss   xmm0, xmm14                                                    ; +0xc0, 0x14007bc30\ncvtps2pd xmm2, xmm1                                                    ; +0xc5, 0x14007bc35\nmovaps  xmm1, xmm6                                                     ; +0xc8, 0x14007bc38\nmulss   xmm1, xmm15                                                    ; +0xcb, 0x14007bc3b\nmovaps  xmm3, xmm2                                                     ; +0xd0, 0x14007bc40\naddss   xmm1, xmm0                                                     ; +0xd3, 0x14007bc43\ncvtps2pd xmm4, xmm1                                                    ; +0xd7, 0x14007bc47\ncomisd  xmm2, xmm4                                                     ; +0xda, 0x14007bc4a\njbe     short loc_14007BC55                                            ; +0xde, 0x14007bc4e\nmovaps  xmm2, xmm4                                                     ; +0xe0, 0x14007bc50\njmp     short loc_14007BC5C                                            ; +0xe3, 0x14007bc53\nmovaps  xmm3, xmm4                                                     ; +0xe5, 0x14007bc55\nmaxsd   xmm3, xmm2                                                     ; +0xe8, 0x14007bc58\nmovaps  xmm1, xmm9                                                     ; +0xec, 0x14007bc5c\nmovaps  xmm0, xmm8                                                     ; +0xf0, 0x14007bc60\nmulss   xmm1, xmm6                                                     ; +0xf4, 0x14007bc64\nxorps   xmm4, xmm4                                                     ; +0xf8, 0x14007bc68\nmulss   xmm0, xmm5                                                     ; +0xfb, 0x14007bc6b\naddss   xmm1, xmm0                                                     ; +0xff, 0x14007bc6f\ncvtss2sd xmm4, xmm1                                                    ; +0x103, 0x14007bc73\ncomisd  xmm2, xmm4                                                     ; +0x107, 0x14007bc77\njbe     short loc_14007BC82                                            ; +0x10b, 0x14007bc7b\nmovaps  xmm2, xmm4                                                     ; +0x10d, 0x14007bc7d\njmp     short loc_14007BC89                                            ; +0x110, 0x14007bc80\nmaxsd   xmm4, xmm3                                                     ; +0x112, 0x14007bc82\nmovaps  xmm3, xmm4                                                     ; +0x116, 0x14007bc86\nmovaps  xmm1, xmm11                                                    ; +0x119, 0x14007bc89\nmovaps  xmm0, xmm10                                                    ; +0x11d, 0x14007bc8d\nmulss   xmm1, xmm6                                                     ; +0x121, 0x14007bc91\nxorps   xmm4, xmm4                                                     ; +0x125, 0x14007bc95\nmulss   xmm0, xmm5                                                     ; +0x128, 0x14007bc98\naddss   xmm1, xmm0                                                     ; +0x12c, 0x14007bc9c\ncvtss2sd xmm4, xmm1                                                    ; +0x130, 0x14007bca0\ncomisd  xmm2, xmm4                                                     ; +0x134, 0x14007bca4\njbe     short loc_14007BCAF                                            ; +0x138, 0x14007bca8\nmovaps  xmm2, xmm4                                                     ; +0x13a, 0x14007bcaa\njmp     short loc_14007BCB6                                            ; +0x13d, 0x14007bcad\nmaxsd   xmm4, xmm3                                                     ; +0x13f, 0x14007bcaf\nmovaps  xmm3, xmm4                                                     ; +0x143, 0x14007bcb3\nmovsd   xmm1, qword ptr [rcx+1Ch]                                      ; +0x146, 0x14007bcb6\nmovaps  xmm0, xmm1                                                     ; +0x14b, 0x14007bcbb\naddsd   xmm0, xmm7                                                     ; +0x14e, 0x14007bcbe\ncomisd  xmm2, xmm0                                                     ; +0x152, 0x14007bcc2\nja      short loc_14007BCE1                                            ; +0x156, 0x14007bcc6\ncomisd  xmm1, xmm3                                                     ; +0x158, 0x14007bcc8\nja      short loc_14007BCE1                                            ; +0x15c, 0x14007bccc\ninc     eax                                                            ; +0x15e, 0x14007bcce\nadd     rcx, 8                                                         ; +0x160, 0x14007bcd0\ncmp     eax, 2                                                         ; +0x164, 0x14007bcd4\njl      loc_14007BC10                                                  ; +0x167, 0x14007bcd7\nmov     al, 1                                                          ; +0x16d, 0x14007bcdd\njmp     short loc_14007BCE3                                            ; +0x16f, 0x14007bcdf\nxor     al, al                                                         ; +0x171, 0x14007bce1\nmovaps  xmm13, [rsp+0A8h+var_88]                                       ; +0x173, 0x14007bce3\nlea     r11, [rsp+0A8h]                                                ; +0x179, 0x14007bce9\nmovaps  xmm6, xmmword ptr [r11-18h]                                    ; +0x181, 0x14007bcf1\nmovaps  xmm7, xmmword ptr [r11-28h]                                    ; +0x186, 0x14007bcf6\nmovaps  xmm8, xmmword ptr [r11-38h]                                    ; +0x18b, 0x14007bcfb\nmovaps  xmm9, xmmword ptr [r11-48h]                                    ; +0x190, 0x14007bd00\nmovaps  xmm10, xmmword ptr [r11-58h]                                   ; +0x195, 0x14007bd05\nmovaps  xmm11, xmmword ptr [r11-68h]                                   ; +0x19a, 0x14007bd0a\nmovaps  xmm12, xmmword ptr [r11-78h]                                   ; +0x19f, 0x14007bd0f\nmovaps  xmm14, [rsp+0A8h+var_98]                                       ; +0x1a4, 0x14007bd14\nmovaps  xmm15, [rsp+0A8h+var_A8]                                       ; +0x1aa, 0x14007bd1a\nmov     rsp, r11                                                       ; +0x1af, 0x14007bd1f\nretn                                                                   ; +0x1b2, 0x14007bd22", "xrefs": ["GJBaseGameLayer::damagingObjectsInRect @ 0x140318bf6", "GJBaseGameLayer::damagingObjectsInRect @ 0x140318c09", "GJBaseGameLayer::checkCollisions @ 0x14031bc2a", "GJBaseGameLayer::checkCollisions @ 0x14031bc39", "GJBaseGameLayer::collisionCheckObjects @ 0x14031bf34", "GJBaseGameLayer::collisionCheckObjects @ 0x14031bf43", "GJBaseGameLayer::checkCollisionBlocks @ 0x1403205b7", "GJBaseGameLayer::checkCollisionBlocks @ 0x1403205c6", "LevelEditorLayer::objectAtPosition @ 0x1403f1513", "LevelEditorLayer::objectAtPosition @ 0x1403f1522", "LevelEditorLayer::objectsAtPosition @ 0x1403f18c5", "LevelEditorLayer::objectsAtPosition @ 0x1403f18d4", "LevelEditorLayer::objectsInRect @ 0x1403f2115", "LevelEditorLayer::objectsInRect @ 0x1403f2124", "<???> @ 0x140911dbc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}