{"type": "func", "start": 5372451248, "end": 5372451426, "name": "PlayerObject::collidedWithObject", "pseudocode": "// \n// PlayerObject::collidedWithObject from 0x1403919b0 to 0x140391a62 (178 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::checkCollisions @ 0x140214687\n// > PlayerObject::postCollision @ 0x14038ea48\n// > <???> @ 0x1406d6254\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::collidedWithObject(PlayerObject *a1, float a2, GameObject *a3, cocos2d::CCRect *a4, bool a5)\n{\n  const struct cocos2d::CCRect *v7; // rax\n  cocos2d::CCRect *v8; // rax\n  cocos2d::CCRect *v10; // rax\n  cocos2d::CCRect v11; // [rsp+40h] [rbp-38h] BYREF\n  cocos2d::CCRect v12; // [rsp+50h] [rbp-28h] BYREF\n\n  if ( a1->m_isSideways )\n  {\n    cocos2d::CCRect::CCRect(&v11, a4);\n    cocos2d::CCRect::CCRect(&v12, v7);\n    return PlayerObject::handleRotatedCollisionInternal(a1, a2, a3, v8, a5, 0, 0);\n  }\n  else\n  {\n    cocos2d::CCRect::CCRect(&v12, a4);\n    return PlayerObject::collidedWithObjectInternal(a1, a2, a3, v10, a5);\n  }\n}", "assembly": "; \n; PlayerObject::collidedWithObject from 0x1403919b0 to 0x140391a62 (178 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::checkCollisions @ 0x140214687\n; > PlayerObject::postCollision @ 0x14038ea48\n; > <???> @ 0x1406d6254\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_0], rbx                                               ; +0x0, 0x1403919b0\npush    rdi                                                            ; +0x5, 0x1403919b5\nsub     rsp, 70h                                                       ; +0x6, 0x1403919b6\ncmp     byte ptr [rcx+9C3h], 0                                         ; +0xa, 0x1403919ba\nmov     rdi, r8                                                        ; +0x11, 0x1403919c1\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0x14, 0x1403919c4\nmov     rbx, rcx                                                       ; +0x19, 0x1403919c9\nmovaps  xmm6, xmm1                                                     ; +0x1c, 0x1403919cc\nmov     rdx, r9                                                        ; +0x1f, 0x1403919cf\njz      short loc_140391A27                                            ; +0x22, 0x1403919d2\nlea     rcx, [rsp+78h+var_38]                                          ; +0x24, 0x1403919d4\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x29, 0x1403919d9\nmov     rdx, rax                                                       ; +0x2f, 0x1403919df\nlea     rcx, [rsp+78h+var_28]                                          ; +0x32, 0x1403919e2\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x37, 0x1403919e7\nmov     [rsp+78h+var_48], 0                                            ; +0x3d, 0x1403919ed\nmov     r8, rdi                                                        ; +0x42, 0x1403919f2\nmov     r9, rax                                                        ; +0x45, 0x1403919f5\nmov     [rsp+78h+var_50], 0                                            ; +0x48, 0x1403919f8\nmovzx   eax, [rsp+78h+arg_20]                                          ; +0x4d, 0x1403919fd\nmovaps  xmm1, xmm6                                                     ; +0x55, 0x140391a05\nmov     rcx, rbx                                                       ; +0x58, 0x140391a08\nmov     [rsp+78h+var_58], al                                           ; +0x5b, 0x140391a0b\ncall    PlayerObject__handleRotatedCollisionInternal                   ; +0x5f, 0x140391a0f\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x64, 0x140391a14\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x6c, 0x140391a1c\nadd     rsp, 70h                                                       ; +0x71, 0x140391a21\npop     rdi                                                            ; +0x75, 0x140391a25\nretn                                                                   ; +0x76, 0x140391a26\nlea     rcx, [rsp+78h+var_28]                                          ; +0x77, 0x140391a27\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x7c, 0x140391a2c\nmov     r8, rdi                                                        ; +0x82, 0x140391a32\nmovaps  xmm1, xmm6                                                     ; +0x85, 0x140391a35\nmov     r9, rax                                                        ; +0x88, 0x140391a38\nmov     rcx, rbx                                                       ; +0x8b, 0x140391a3b\nmovzx   eax, [rsp+78h+arg_20]                                          ; +0x8e, 0x140391a3e\nmov     [rsp+78h+var_58], al                                           ; +0x96, 0x140391a46\ncall    PlayerObject__collidedWithObjectInternal                       ; +0x9a, 0x140391a4a\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x9f, 0x140391a4f\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xa7, 0x140391a57\nadd     rsp, 70h                                                       ; +0xac, 0x140391a5c\npop     rdi                                                            ; +0xb0, 0x140391a60\nretn                                                                   ; +0xb1, 0x140391a61", "xrefs": ["GJBaseGameLayer::checkCollisions @ 0x140214687", "PlayerObject::postCollision @ 0x14038ea48", "<???> @ 0x1406d6254"], "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"}