{"type": "func", "start": 4301641648, "end": 4301641816, "name": "CharacterColorPage::toggleShip", "pseudocode": "// \n// CharacterColorPage::toggleShip from 0x10065d7b0 to 0x10065d858 (168 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::init @ 0x10065d066\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 __fastcall CharacterColorPage::toggleShip(CharacterColorPage *a1, cocos2d::CCObject *a2)\n{\n  SimplePlayer *v3; // r14\n  int v4; // r15d\n  GameManager *v5; // rax\n  int v6; // esi\n  IconType v7; // r15d\n  float v8; // [rsp+0h] [rbp-1Ch]\n\n  v3 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);\n  v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v5 = GameManager::sharedState();\n  if ( v4 == 1 )\n  {\n    v6 = v5->m_playerJetpack.random - v5->m_playerJetpack.seed;\n    v8 = 1.05;\n    v7 = Jetpack;\n  }\n  else\n  {\n    v6 = v5->m_playerShip.random - v5->m_playerShip.seed;\n    v8 = 1.15;\n    v7 = Ship;\n  }\n  SimplePlayer::updatePlayerFrame(v3, v6, v7);\n  ((void (__fastcall *)(SimplePlayer *, float))v3->setScale)(v3, v8);\n  ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->setTag)(a2, (unsigned int)v7);\n}", "assembly": "; \n; CharacterColorPage::toggleShip from 0x10065d7b0 to 0x10065d858 (168 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::init @ 0x10065d066\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\npush    rbp                                                            ; +0x0, 0x10065d7b0\nmov     rbp, rsp                                                       ; +0x1, 0x10065d7b1\npush    r15                                                            ; +0x4, 0x10065d7b4\npush    r14                                                            ; +0x6, 0x10065d7b6\npush    rbx                                                            ; +0x8, 0x10065d7b8\npush    rax                                                            ; +0x9, 0x10065d7b9\nmov     rbx, rsi                                                       ; +0xa, 0x10065d7ba\nmov     rax, [rsi]                                                     ; +0xd, 0x10065d7bd\nmov     rdi, rsi                                                       ; +0x10, 0x10065d7c0\ncall    qword ptr [rax+420h]                                           ; +0x13, 0x10065d7c3\nmov     r14, rax                                                       ; +0x19, 0x10065d7c9\nmov     rax, [rbx]                                                     ; +0x1c, 0x10065d7cc\nmov     rdi, rbx                                                       ; +0x1f, 0x10065d7cf\ncall    qword ptr [rax+40h]                                            ; +0x22, 0x10065d7d2\nmov     r15d, eax                                                      ; +0x25, 0x10065d7d5\ncall    GameManager__sharedState                                       ; +0x28, 0x10065d7d8\ncmp     r15d, 1                                                        ; +0x2d, 0x10065d7dd\njnz     short loc_10065D804                                            ; +0x31, 0x10065d7e1\nmov     esi, [rax+34Ch]                                                ; +0x33, 0x10065d7e3\nsub     esi, [rax+350h]                                                ; +0x39, 0x10065d7e9\nmovss   xmm0, cs:dword_10081B4A0                                       ; +0x3f, 0x10065d7ef\nmovss   [rbp+var_1C], xmm0                                             ; +0x47, 0x10065d7f7\nmov     r15d, 8                                                        ; +0x4c, 0x10065d7fc\njmp     short loc_10065D823                                            ; +0x52, 0x10065d802\nmov     esi, [rax+2B0h]                                                ; +0x54, 0x10065d804\nsub     esi, [rax+2B4h]                                                ; +0x5a, 0x10065d80a\nmovss   xmm0, cs:dword_100817FC4                                       ; +0x60, 0x10065d810\nmovss   [rbp+var_1C], xmm0                                             ; +0x68, 0x10065d818\nmov     r15d, 1                                                        ; +0x6d, 0x10065d81d\nmov     rdi, r14                                                       ; +0x73, 0x10065d823\nmov     edx, r15d                                                      ; +0x76, 0x10065d826\ncall    SimplePlayer__updatePlayerFrame                                ; +0x79, 0x10065d829\nmov     rax, [r14]                                                     ; +0x7e, 0x10065d82e\nmov     rdi, r14                                                       ; +0x81, 0x10065d831\nmovss   xmm0, [rbp+var_1C]                                             ; +0x84, 0x10065d834\ncall    qword ptr [rax+0A0h]                                           ; +0x89, 0x10065d839\nmov     rax, [rbx]                                                     ; +0x8f, 0x10065d83f\nmov     rax, [rax+48h]                                                 ; +0x92, 0x10065d842\nmov     rdi, rbx                                                       ; +0x96, 0x10065d846\nmov     esi, r15d                                                      ; +0x99, 0x10065d849\nadd     rsp, 8                                                         ; +0x9c, 0x10065d84c\npop     rbx                                                            ; +0xa0, 0x10065d850\npop     r14                                                            ; +0xa1, 0x10065d851\npop     r15                                                            ; +0xa3, 0x10065d853\npop     rbp                                                            ; +0xa5, 0x10065d855\njmp     rax                                                            ; +0xa6, 0x10065d856", "xrefs": ["CharacterColorPage::init @ 0x10065d066"], "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"}