{"type": "func", "start": 5372440896, "end": 5372441303, "name": "PlayerObject::handleRotatedCollisionInternal", "pseudocode": "// \n// PlayerObject::handleRotatedCollisionInternal from 0x14038f140 to 0x14038f2d7 (407 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x140215e5b\n// > PlayerObject::postCollision @ 0x14038eb43\n// > PlayerObject::collidedWithObject @ 0x140391a0f\n// > <???> @ 0x1406d60c8\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 PlayerObject::handleRotatedCollisionInternal(\n        PlayerObject *a1,\n        float a2,\n        GameObject *a3,\n        cocos2d::CCRect *a4,\n        bool a5,\n        bool a6,\n        bool a7)\n{\n  std::_List_val<std::_List_simple_types<std::pair<const int, GameObject *>>>::_Nodeptr Myhead; // rdi\n  __int64 *i; // rbx\n  bool v12; // bp\n  cocos2d::CCRect *v13; // rax\n  std::_List_val<std::_List_simple_types<std::pair<const int, GameObject *>>>::_Nodeptr v14; // rdi\n  __int64 *j; // rbx\n  cocos2d::CCPoint v17; // [rsp+30h] [rbp-48h] BYREF\n  _BYTE v18[8]; // [rsp+38h] [rbp-40h] BYREF\n  cocos2d::CCRect v19; // [rsp+40h] [rbp-38h] BYREF\n  cocos2d::CCPoint v20; // [rsp+80h] [rbp+8h] BYREF\n\n  a1->getPosition_0(a1);\n  cocos2d::CCPoint::CCPoint(&v20);\n  PlayerObject::rotateGameplayObject(a1, a3);\n  Myhead = a1->m_potentialSlopeMap._List._Mypair._Myval2._Myhead;\n  for ( i = *(__int64 **)Myhead; i != (__int64 *)Myhead; i = (__int64 *)*i )\n    PlayerObject::rotateGameplayObject(a1, (GameObject *)i[3]);\n  v12 = 0;\n  if ( a7 )\n  {\n    PlayerObject::collidedWithSlopeInternal(a1, a2, a3, a6);\n  }\n  else\n  {\n    cocos2d::CCRect::CCRect(&v19, a4);\n    v12 = PlayerObject::collidedWithObjectInternal(a1, a2, a3, v13, a5);\n  }\n  a1->getPosition_0(a1);\n  cocos2d::CCPoint::CCPoint(&v17);\n  cocos2d::CCPoint::CCPoint(COERCE_FLOAT(COERCE_UNSIGNED_INT64(v20.x)), (float)(v17.y - v20.y) + v20.x);\n  a1->setPosition_0(a1, (const cocos2d::CCPoint *)v18);\n  PlayerObject::unrotateGameplayObject(a1, a3);\n  v14 = a1->m_potentialSlopeMap._List._Mypair._Myval2._Myhead;\n  for ( j = *(__int64 **)v14; j != (__int64 *)v14; j = (__int64 *)*j )\n    PlayerObject::unrotateGameplayObject(a1, (GameObject *)j[3]);\n  return v12;\n}", "assembly": "; \n; PlayerObject::handleRotatedCollisionInternal from 0x14038f140 to 0x14038f2d7 (407 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x140215e5b\n; > PlayerObject::postCollision @ 0x14038eb43\n; > PlayerObject::collidedWithObject @ 0x140391a0f\n; > <???> @ 0x1406d60c8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14038f140\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14038f145\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14038f14a\npush    rdi                                                            ; +0xf, 0x14038f14f\npush    r14                                                            ; +0x10, 0x14038f150\npush    r15                                                            ; +0x12, 0x14038f152\nsub     rsp, 60h                                                       ; +0x14, 0x14038f154\nmov     rax, [rcx]                                                     ; +0x18, 0x14038f158\nmov     r15, r9                                                        ; +0x1b, 0x14038f15b\nmovaps  [rsp+78h+var_28], xmm6                                         ; +0x1e, 0x14038f15e\nmov     r14, r8                                                        ; +0x23, 0x14038f163\nmovaps  xmm6, xmm1                                                     ; +0x26, 0x14038f166\nmov     rsi, rcx                                                       ; +0x29, 0x14038f169\ncall    qword ptr [rax+0C8h]                                           ; +0x2c, 0x14038f16c\nmov     rdx, rax                                                       ; +0x32, 0x14038f172\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x35, 0x14038f175\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3d, 0x14038f17d\nmov     rdx, r14                                                       ; +0x43, 0x14038f183\nmov     rcx, rsi                                                       ; +0x46, 0x14038f186\ncall    PlayerObject__rotateGameplayObject                             ; +0x49, 0x14038f189\nmov     rdi, [rsi+6E8h]                                                ; +0x4e, 0x14038f18e\nmov     rbx, [rdi]                                                     ; +0x55, 0x14038f195\ncmp     rbx, rdi                                                       ; +0x58, 0x14038f198\njz      short loc_14038F1B4                                            ; +0x5b, 0x14038f19b\nnop     dword ptr [rax]                                                ; +0x5d, 0x14038f19d\nmov     rdx, [rbx+18h]                                                 ; +0x60, 0x14038f1a0\nmov     rcx, rsi                                                       ; +0x64, 0x14038f1a4\ncall    PlayerObject__rotateGameplayObject                             ; +0x67, 0x14038f1a7\nmov     rbx, [rbx]                                                     ; +0x6c, 0x14038f1ac\ncmp     rbx, rdi                                                       ; +0x6f, 0x14038f1af\njnz     short loc_14038F1A0                                            ; +0x72, 0x14038f1b2\nxor     bpl, bpl                                                       ; +0x74, 0x14038f1b4\ncmp     [rsp+78h+arg_30], bpl                                          ; +0x77, 0x14038f1b7\njz      short loc_14038F1DA                                            ; +0x7f, 0x14038f1bf\nmovzx   r9d, [rsp+78h+arg_28]                                          ; +0x81, 0x14038f1c1\nmov     r8, r14                                                        ; +0x8a, 0x14038f1ca\nmovaps  xmm1, xmm6                                                     ; +0x8d, 0x14038f1cd\nmov     rcx, rsi                                                       ; +0x90, 0x14038f1d0\ncall    PlayerObject__collidedWithSlopeInternal                        ; +0x93, 0x14038f1d3\njmp     short loc_14038F208                                            ; +0x98, 0x14038f1d8\nmov     rdx, r15                                                       ; +0x9a, 0x14038f1da\nlea     rcx, [rsp+78h+var_38]                                          ; +0x9d, 0x14038f1dd\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0xa2, 0x14038f1e2\nmov     r8, r14                                                        ; +0xa8, 0x14038f1e8\nmovaps  xmm1, xmm6                                                     ; +0xab, 0x14038f1eb\nmov     r9, rax                                                        ; +0xae, 0x14038f1ee\nmov     rcx, rsi                                                       ; +0xb1, 0x14038f1f1\nmovzx   eax, [rsp+78h+arg_20]                                          ; +0xb4, 0x14038f1f4\nmov     [rsp+78h+var_58], al                                           ; +0xbc, 0x14038f1fc\ncall    PlayerObject__collidedWithObjectInternal                       ; +0xc0, 0x14038f200\nmovzx   ebp, al                                                        ; +0xc5, 0x14038f205\nmov     rdx, [rsi]                                                     ; +0xc8, 0x14038f208\nmov     rcx, rsi                                                       ; +0xcb, 0x14038f20b\ncall    qword ptr [rdx+0C8h]                                           ; +0xce, 0x14038f20e\nmov     rdx, rax                                                       ; +0xd4, 0x14038f214\nlea     rcx, [rsp+78h+var_48]                                          ; +0xd7, 0x14038f217\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xdc, 0x14038f21c\nmovss   xmm3, [rsp+78h+arg_4]                                          ; +0xe2, 0x14038f222\nlea     rcx, [rsp+78h+var_40]                                          ; +0xeb, 0x14038f22b\nmovss   xmm0, [rsp+78h+var_48]                                         ; +0xf0, 0x14038f230\nmovss   xmm4, [rsp+78h+arg_0]                                          ; +0xf6, 0x14038f236\ncvtps2pd xmm1, xmm3                                                    ; +0xff, 0x14038f23f\nsubss   xmm0, xmm4                                                     ; +0x102, 0x14038f242\ncvtps2pd xmm0, xmm0                                                    ; +0x106, 0x14038f246\nsubsd   xmm1, xmm0                                                     ; +0x109, 0x14038f249\ncvtps2pd xmm0, xmm4                                                    ; +0x10d, 0x14038f24d\ncvtpd2ps xmm2, xmm1                                                    ; +0x110, 0x14038f250\nmovss   xmm1, [rsp+78h+var_44]                                         ; +0x114, 0x14038f254\nsubss   xmm1, xmm3                                                     ; +0x11a, 0x14038f25a\ncvtps2pd xmm3, xmm1                                                    ; +0x11e, 0x14038f25e\naddsd   xmm3, xmm0                                                     ; +0x121, 0x14038f261\ncvtpd2ps xmm1, xmm3                                                    ; +0x125, 0x14038f265\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x129, 0x14038f269\nmov     rax, [rsi]                                                     ; +0x12f, 0x14038f26f\nlea     rdx, [rsp+78h+var_40]                                          ; +0x132, 0x14038f272\nmov     rcx, rsi                                                       ; +0x137, 0x14038f277\ncall    qword ptr [rax+0B8h]                                           ; +0x13a, 0x14038f27a\nmov     rdx, r14                                                       ; +0x140, 0x14038f280\nmov     rcx, rsi                                                       ; +0x143, 0x14038f283\ncall    PlayerObject__unrotateGameplayObject                           ; +0x146, 0x14038f286\nmov     rdi, [rsi+6E8h]                                                ; +0x14b, 0x14038f28b\nmov     rbx, [rdi]                                                     ; +0x152, 0x14038f292\ncmp     rbx, rdi                                                       ; +0x155, 0x14038f295\njz      short loc_14038F2B4                                            ; +0x158, 0x14038f298\nnop     word ptr [rax+rax+00h]                                         ; +0x15a, 0x14038f29a\nmov     rdx, [rbx+18h]                                                 ; +0x160, 0x14038f2a0\nmov     rcx, rsi                                                       ; +0x164, 0x14038f2a4\ncall    PlayerObject__unrotateGameplayObject                           ; +0x167, 0x14038f2a7\nmov     rbx, [rbx]                                                     ; +0x16c, 0x14038f2ac\ncmp     rbx, rdi                                                       ; +0x16f, 0x14038f2af\njnz     short loc_14038F2A0                                            ; +0x172, 0x14038f2b2\nmovaps  xmm6, [rsp+78h+var_28]                                         ; +0x174, 0x14038f2b4\nlea     r11, [rsp+78h+var_18]                                          ; +0x179, 0x14038f2b9\nmov     rbx, [r11+28h]                                                 ; +0x17e, 0x14038f2be\nmovzx   eax, bpl                                                       ; +0x182, 0x14038f2c2\nmov     rbp, [r11+30h]                                                 ; +0x186, 0x14038f2c6\nmov     rsi, [r11+38h]                                                 ; +0x18a, 0x14038f2ca\nmov     rsp, r11                                                       ; +0x18e, 0x14038f2ce\npop     r15                                                            ; +0x191, 0x14038f2d1\npop     r14                                                            ; +0x193, 0x14038f2d3\npop     rdi                                                            ; +0x195, 0x14038f2d5\nretn                                                                   ; +0x196, 0x14038f2d6", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x140215e5b", "PlayerObject::postCollision @ 0x14038eb43", "PlayerObject::collidedWithObject @ 0x140391a0f", "<???> @ 0x1406d60c8"], "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"}