{"type": "func", "start": 5372653616, "end": 5372653780, "name": "ProfilePage::toggleShip", "pseudocode": "// \n// ProfilePage::toggleShip from 0x1403c3030 to 0x1403c30d4 (164 bytes)\n// \n// 2 xrefs:\n// > ProfilePage::loadPageFromUserInfo @ 0x1403c0ab7\n// > <???> @ 0x1406d7748\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 ProfilePage::toggleShip(ProfilePage *a1, cocos2d::CCObject *a2)\n{\n  SimplePlayer *v4; // rsi\n  int v5; // eax\n  GJUserScore *m_score; // rcx\n  int m_playerJetpack; // edx\n  IconType v8; // ebx\n\n  v4 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);\n  v5 = a2->getTag(a2);\n  m_score = a1->m_score;\n  if ( v5 == 1 )\n    m_playerJetpack = m_score->m_playerJetpack;\n  else\n    m_playerJetpack = m_score->m_playerShip;\n  v8 = Jetpack;\n  if ( v5 != 1 )\n    v8 = Ship;\n  SimplePlayer::updatePlayerFrame(v4, m_playerJetpack, v8);\n  ((void (__fastcall *)(SimplePlayer *))v4->setScale_0)(v4);\n  a2->setTag(a2, v8);\n}", "assembly": "; \n; ProfilePage::toggleShip from 0x1403c3030 to 0x1403c30d4 (164 bytes)\n; \n; 2 xrefs:\n; > ProfilePage::loadPageFromUserInfo @ 0x1403c0ab7\n; > <???> @ 0x1406d7748\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, 0x1403c3030\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1403c3035\npush    rdi                                                            ; +0xa, 0x1403c303a\nsub     rsp, 30h                                                       ; +0xb, 0x1403c303b\nmov     rax, [rdx]                                                     ; +0xf, 0x1403c303f\nmov     rbx, rcx                                                       ; +0x12, 0x1403c3042\nmov     rcx, rdx                                                       ; +0x15, 0x1403c3045\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x18, 0x1403c3048\nmov     rdi, rdx                                                       ; +0x1d, 0x1403c304d\ncall    qword ptr [rax+3A8h]                                           ; +0x20, 0x1403c3050\nmov     r8, [rdi]                                                      ; +0x26, 0x1403c3056\nmov     rcx, rdi                                                       ; +0x29, 0x1403c3059\nmovss   xmm6, cs:dword_140622BF4                                       ; +0x2c, 0x1403c305c\nmov     rsi, rax                                                       ; +0x34, 0x1403c3064\ncall    qword ptr [r8+38h]                                             ; +0x37, 0x1403c3067\nmov     rcx, [rbx+2B0h]                                                ; +0x3b, 0x1403c306b\ncmp     eax, 1                                                         ; +0x42, 0x1403c3072\njnz     short loc_1403C3087                                            ; +0x45, 0x1403c3075\nmov     edx, [rcx+2D0h]                                                ; +0x47, 0x1403c3077\nmovss   xmm6, cs:dword_140622BD8                                       ; +0x4d, 0x1403c307d\njmp     short loc_1403C308D                                            ; +0x55, 0x1403c3085\nmov     edx, [rcx+2B4h]                                                ; +0x57, 0x1403c3087\nmov     ecx, 1                                                         ; +0x5d, 0x1403c308d\nmov     ebx, 8                                                         ; +0x62, 0x1403c3092\ncmovnz  ebx, ecx                                                       ; +0x67, 0x1403c3097\nmov     rcx, rsi                                                       ; +0x6a, 0x1403c309a\nmov     r8d, ebx                                                       ; +0x6d, 0x1403c309d\ncall    SimplePlayer__updatePlayerFrame                                ; +0x70, 0x1403c30a0\nmov     rax, [rsi]                                                     ; +0x75, 0x1403c30a5\nmovaps  xmm1, xmm6                                                     ; +0x78, 0x1403c30a8\nmov     rcx, rsi                                                       ; +0x7b, 0x1403c30ab\ncall    qword ptr [rax+0A0h]                                           ; +0x7e, 0x1403c30ae\nmov     rax, [rdi]                                                     ; +0x84, 0x1403c30b4\nmov     edx, ebx                                                       ; +0x87, 0x1403c30b7\nmov     rcx, rdi                                                       ; +0x89, 0x1403c30b9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8c, 0x1403c30bc\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x91, 0x1403c30c1\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x96, 0x1403c30c6\nadd     rsp, 30h                                                       ; +0x9b, 0x1403c30cb\npop     rdi                                                            ; +0x9f, 0x1403c30cf\njmp     qword ptr [rax+40h]                                            ; +0xa0, 0x1403c30d0", "xrefs": ["ProfilePage::loadPageFromUserInfo @ 0x1403c0ab7", "<???> @ 0x1406d7748"], "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"}