{"type": "func", "start": 4302556672, "end": 4302556840, "name": "CharacterColorPage::toggleShip", "pseudocode": "// \n// CharacterColorPage::toggleShip from 0x10073ce00 to 0x10073cea8 (168 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::init @ 0x10073c6b6\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:36:27 +0000\n// \n\n__int64 __fastcall CharacterColorPage::toggleShip(__int64 a1, __int64 a2)\n{\n  __int64 v3; // r14\n  int v4; // r15d\n  _DWORD *v5; // rax\n  unsigned int v6; // esi\n  unsigned int v7; // r15d\n  float v9; // [rsp+0h] [rbp-1Ch]\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2);\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v5 = (_DWORD *)GameManager::sharedState();\n  if ( v4 == 1 )\n  {\n    v6 = v5[221] - v5[222];\n    v9 = 1.05;\n    v7 = 8;\n  }\n  else\n  {\n    v6 = v5[182] - v5[183];\n    v9 = 1.15;\n    v7 = 1;\n  }\n  SimplePlayer::updatePlayerFrame(v3, v6, v7);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, v9);\n  return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 72LL))(a2, v7);\n}", "assembly": "; \n; CharacterColorPage::toggleShip from 0x10073ce00 to 0x10073cea8 (168 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::init @ 0x10073c6b6\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:36:27 +0000\n; \npush    rbp                                                            ; +0x0, 0x10073ce00\nmov     rbp, rsp                                                       ; +0x1, 0x10073ce01\npush    r15                                                            ; +0x4, 0x10073ce04\npush    r14                                                            ; +0x6, 0x10073ce06\npush    rbx                                                            ; +0x8, 0x10073ce08\npush    rax                                                            ; +0x9, 0x10073ce09\nmov     rbx, rsi                                                       ; +0xa, 0x10073ce0a\nmov     rax, [rsi]                                                     ; +0xd, 0x10073ce0d\nmov     rdi, rsi                                                       ; +0x10, 0x10073ce10\ncall    qword ptr [rax+430h]                                           ; +0x13, 0x10073ce13\nmov     r14, rax                                                       ; +0x19, 0x10073ce19\nmov     rax, [rbx]                                                     ; +0x1c, 0x10073ce1c\nmov     rdi, rbx                                                       ; +0x1f, 0x10073ce1f\ncall    qword ptr [rax+40h]                                            ; +0x22, 0x10073ce22\nmov     r15d, eax                                                      ; +0x25, 0x10073ce25\ncall    GameManager__sharedState                                       ; +0x28, 0x10073ce28\ncmp     r15d, 1                                                        ; +0x2d, 0x10073ce2d\njnz     short loc_10073CE54                                            ; +0x31, 0x10073ce31\nmov     esi, [rax+374h]                                                ; +0x33, 0x10073ce33\nsub     esi, [rax+378h]                                                ; +0x39, 0x10073ce39\nmovss   xmm0, cs:dword_100A03754                                       ; +0x3f, 0x10073ce3f\nmovss   [rbp+var_1C], xmm0                                             ; +0x47, 0x10073ce47\nmov     r15d, 8                                                        ; +0x4c, 0x10073ce4c\njmp     short loc_10073CE73                                            ; +0x52, 0x10073ce52\nmov     esi, [rax+2D8h]                                                ; +0x54, 0x10073ce54\nsub     esi, [rax+2DCh]                                                ; +0x5a, 0x10073ce5a\nmovss   xmm0, cs:dword_100A063FC                                       ; +0x60, 0x10073ce60\nmovss   [rbp+var_1C], xmm0                                             ; +0x68, 0x10073ce68\nmov     r15d, 1                                                        ; +0x6d, 0x10073ce6d\nmov     rdi, r14                                                       ; +0x73, 0x10073ce73\nmov     edx, r15d                                                      ; +0x76, 0x10073ce76\ncall    SimplePlayer__updatePlayerFrame                                ; +0x79, 0x10073ce79\nmov     rax, [r14]                                                     ; +0x7e, 0x10073ce7e\nmov     rdi, r14                                                       ; +0x81, 0x10073ce81\nmovss   xmm0, [rbp+var_1C]                                             ; +0x84, 0x10073ce84\ncall    qword ptr [rax+0A0h]                                           ; +0x89, 0x10073ce89\nmov     rax, [rbx]                                                     ; +0x8f, 0x10073ce8f\nmov     rax, [rax+48h]                                                 ; +0x92, 0x10073ce92\nmov     rdi, rbx                                                       ; +0x96, 0x10073ce96\nmov     esi, r15d                                                      ; +0x99, 0x10073ce99\nadd     rsp, 8                                                         ; +0x9c, 0x10073ce9c\npop     rbx                                                            ; +0xa0, 0x10073cea0\npop     r14                                                            ; +0xa1, 0x10073cea1\npop     r15                                                            ; +0xa3, 0x10073cea3\npop     rbp                                                            ; +0xa5, 0x10073cea5\njmp     rax                                                            ; +0xa6, 0x10073cea6", "xrefs": ["CharacterColorPage::init @ 0x10073c6b6"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}