{"type": "func", "start": 5372511392, "end": 5372511812, "name": "PlayerObject::copyAttributes", "pseudocode": "// \n// PlayerObject::copyAttributes from 0x1403a04a0 to 0x1403a0644 (420 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::toggleDualMode @ 0x140216a01\n// > GJBaseGameLayer::toggleDualMode @ 0x140216bf7\n// > <???> @ 0x1406d6920\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 PlayerObject::copyAttributes(PlayerObject *a1)\n{\n  __int64 v1; // rdx\n  __int64 v2; // rsi\n  PlayerObject_vtbl *v4; // rbx\n  __int64 v5; // rax\n  int v6; // r8d\n  cocos2d::CCPoint v7; // [rsp+30h] [rbp+8h] BYREF\n\n  a1->m_maybeReducedEffects = 1;\n  v2 = v1;\n  a1->m_totalTime = *(double *)(v1 + 2720);\n  cocos2d::CCPoint::CCPoint(&v7);\n  cocos2d::CCPoint::operator=(&a1->m_position, &v7);\n  v4 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 200LL))(v2);\n  v4->setPosition_0(a1, (const cocos2d::CCPoint *)v5);\n  cocos2d::CCPoint::CCPoint(&v7);\n  cocos2d::CCPoint::operator=(&a1->m_shipRotation, &v7);\n  PlayerObject::flipGravity(a1, *(_BYTE *)(v2 + 2495), 1);\n  PlayerObject::doReversePlayer(a1, *(_BYTE *)(v2 + 2498));\n  PlayerObject::toggleFlyMode(a1, *(_BYTE *)(v2 + 2489), 0);\n  PlayerObject::toggleBirdMode(a1, *(_BYTE *)(v2 + 2490), 0);\n  PlayerObject::toggleRollMode(a1, *(_BYTE *)(v2 + 2491), 0);\n  PlayerObject::toggleDartMode(a1, *(_BYTE *)(v2 + 2492), 0);\n  PlayerObject::toggleRobotMode(a1, *(_BYTE *)(v2 + 2493), 0);\n  PlayerObject::toggleSpiderMode(a1, *(_BYTE *)(v2 + 2494), 0);\n  PlayerObject::toggleSwingMode(a1, *(_BYTE *)(v2 + 2500), 0);\n  PlayerObject::updateTimeMod(a1, *(float *)(v2 + 2548), 0);\n  PlayerObject::togglePlayerScale(a1, *(float *)(v2 + 2544) != 1.0, 0);\n  PlayerObject::setYVelocity(a1, *(double *)(v2 + 2464), v6);\n  a1->m_maybeReducedEffects = 0;\n  a1->m_jumpBuffered = *(_BYTE *)(v2 + 2437);\n  a1->m_stateRingJump = *(_BYTE *)(v2 + 2438);\n}", "assembly": "; \n; PlayerObject::copyAttributes from 0x1403a04a0 to 0x1403a0644 (420 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::toggleDualMode @ 0x140216a01\n; > GJBaseGameLayer::toggleDualMode @ 0x140216bf7\n; > <???> @ 0x1406d6920\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, 0x1403a04a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1403a04a5\npush    rdi                                                            ; +0xa, 0x1403a04aa\nsub     rsp, 20h                                                       ; +0xb, 0x1403a04ab\nmov     byte ptr [rcx+7E1h], 1                                         ; +0xf, 0x1403a04af\nmov     rsi, rdx                                                       ; +0x16, 0x1403a04b6\nmov     rax, [rdx+0AA0h]                                               ; +0x19, 0x1403a04b9\nmov     rdi, rcx                                                       ; +0x20, 0x1403a04c0\nmov     [rcx+0AA0h], rax                                               ; +0x23, 0x1403a04c3\nadd     rdx, 0A90h                                                     ; +0x2a, 0x1403a04ca\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x31, 0x1403a04d1\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x36, 0x1403a04d6\nlea     rcx, [rdi+0A90h]                                               ; +0x3c, 0x1403a04dc\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x43, 0x1403a04e3\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x48, 0x1403a04e8\nmov     rax, [rsi]                                                     ; +0x4e, 0x1403a04ee\nmov     rcx, rsi                                                       ; +0x51, 0x1403a04f1\nmov     rbx, [rdi]                                                     ; +0x54, 0x1403a04f4\ncall    qword ptr [rax+0C8h]                                           ; +0x57, 0x1403a04f7\nmov     rdx, rax                                                       ; +0x5d, 0x1403a04fd\nmov     rcx, rdi                                                       ; +0x60, 0x1403a0500\ncall    qword ptr [rbx+0B8h]                                           ; +0x63, 0x1403a0503\nlea     rdx, [rsi+9F8h]                                                ; +0x69, 0x1403a0509\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x70, 0x1403a0510\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x75, 0x1403a0515\nlea     rcx, [rdi+9F8h]                                                ; +0x7b, 0x1403a051b\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x82, 0x1403a0522\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x87, 0x1403a0527\nmovzx   edx, byte ptr [rsi+9BFh]                                       ; +0x8d, 0x1403a052d\nmov     r8b, 1                                                         ; +0x94, 0x1403a0534\nmov     rcx, rdi                                                       ; +0x97, 0x1403a0537\ncall    PlayerObject__flipGravity                                      ; +0x9a, 0x1403a053a\nmovzx   edx, byte ptr [rsi+9C2h]                                       ; +0x9f, 0x1403a053f\nmov     rcx, rdi                                                       ; +0xa6, 0x1403a0546\ncall    PlayerObject__doReversePlayer                                  ; +0xa9, 0x1403a0549\nmovzx   edx, byte ptr [rsi+9B9h]                                       ; +0xae, 0x1403a054e\nxor     r8d, r8d                                                       ; +0xb5, 0x1403a0555\nmov     rcx, rdi                                                       ; +0xb8, 0x1403a0558\ncall    PlayerObject__toggleFlyMode                                    ; +0xbb, 0x1403a055b\nmovzx   edx, byte ptr [rsi+9BAh]                                       ; +0xc0, 0x1403a0560\nxor     r8d, r8d                                                       ; +0xc7, 0x1403a0567\nmov     rcx, rdi                                                       ; +0xca, 0x1403a056a\ncall    PlayerObject__toggleBirdMode                                   ; +0xcd, 0x1403a056d\nmovzx   edx, byte ptr [rsi+9BBh]                                       ; +0xd2, 0x1403a0572\nxor     r8d, r8d                                                       ; +0xd9, 0x1403a0579\nmov     rcx, rdi                                                       ; +0xdc, 0x1403a057c\ncall    PlayerObject__toggleRollMode                                   ; +0xdf, 0x1403a057f\nmovzx   edx, byte ptr [rsi+9BCh]                                       ; +0xe4, 0x1403a0584\nxor     r8d, r8d                                                       ; +0xeb, 0x1403a058b\nmov     rcx, rdi                                                       ; +0xee, 0x1403a058e\ncall    PlayerObject__toggleDartMode                                   ; +0xf1, 0x1403a0591\nmovzx   edx, byte ptr [rsi+9BDh]                                       ; +0xf6, 0x1403a0596\nxor     r8d, r8d                                                       ; +0xfd, 0x1403a059d\nmov     rcx, rdi                                                       ; +0x100, 0x1403a05a0\ncall    PlayerObject__toggleRobotMode                                  ; +0x103, 0x1403a05a3\nmovzx   edx, byte ptr [rsi+9BEh]                                       ; +0x108, 0x1403a05a8\nxor     r8d, r8d                                                       ; +0x10f, 0x1403a05af\nmov     rcx, rdi                                                       ; +0x112, 0x1403a05b2\ncall    PlayerObject__toggleSpiderMode                                 ; +0x115, 0x1403a05b5\nmovzx   edx, byte ptr [rsi+9C4h]                                       ; +0x11a, 0x1403a05ba\nxor     r8d, r8d                                                       ; +0x121, 0x1403a05c1\nmov     rcx, rdi                                                       ; +0x124, 0x1403a05c4\ncall    PlayerObject__toggleSwingMode                                  ; +0x127, 0x1403a05c7\nmovss   xmm1, dword ptr [rsi+9F4h]                                     ; +0x12c, 0x1403a05cc\nxor     r8d, r8d                                                       ; +0x134, 0x1403a05d4\nmov     rcx, rdi                                                       ; +0x137, 0x1403a05d7\ncall    PlayerObject__updateTimeMod                                    ; +0x13a, 0x1403a05da\nmovss   xmm0, dword ptr [rsi+9F0h]                                     ; +0x13f, 0x1403a05df\nucomiss xmm0, cs:flt_140622C24                                         ; +0x147, 0x1403a05e7\njp      short loc_1403A05F6                                            ; +0x14e, 0x1403a05ee\njnz     short loc_1403A05F6                                            ; +0x150, 0x1403a05f0\nxor     edx, edx                                                       ; +0x152, 0x1403a05f2\njmp     short loc_1403A05F8                                            ; +0x154, 0x1403a05f4\nmov     dl, 1                                                          ; +0x156, 0x1403a05f6\nxor     r8d, r8d                                                       ; +0x158, 0x1403a05f8\nmov     rcx, rdi                                                       ; +0x15b, 0x1403a05fb\ncall    PlayerObject__togglePlayerScale                                ; +0x15e, 0x1403a05fe\nmovsd   xmm1, qword ptr [rsi+9A0h]                                     ; +0x163, 0x1403a0603\nmov     rcx, rdi                                                       ; +0x16b, 0x1403a060b\ncall    PlayerObject__setYVelocity                                     ; +0x16e, 0x1403a060e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x173, 0x1403a0613\nmov     byte ptr [rdi+7E1h], 0                                         ; +0x178, 0x1403a0618\nmovzx   eax, byte ptr [rsi+985h]                                       ; +0x17f, 0x1403a061f\nmov     [rdi+985h], al                                                 ; +0x186, 0x1403a0626\nmovzx   eax, byte ptr [rsi+986h]                                       ; +0x18c, 0x1403a062c\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x193, 0x1403a0633\nmov     [rdi+986h], al                                                 ; +0x198, 0x1403a0638\nadd     rsp, 20h                                                       ; +0x19e, 0x1403a063e\npop     rdi                                                            ; +0x1a2, 0x1403a0642\nretn                                                                   ; +0x1a3, 0x1403a0643", "xrefs": ["GJBaseGameLayer::toggleDualMode @ 0x140216a01", "GJBaseGameLayer::toggleDualMode @ 0x140216bf7", "<???> @ 0x1406d6920"], "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"}