{"type": "func", "start": 5372505376, "end": 5372505641, "name": "PlayerObject::updateShipSpriteExtra", "pseudocode": "// \n// PlayerObject::updateShipSpriteExtra from 0x14039ed20 to 0x14039ee29 (265 bytes)\n// \n// 5 xrefs:\n// > PlayerObject::init @ 0x1403870bf\n// > PlayerObject::updatePlayerShipFrame @ 0x14039e08e\n// > PlayerObject::updatePlayerJetpackFrame @ 0x14039e2be\n// > PlayerObject::updatePlayerBirdFrame @ 0x14039e561\n// > <???> @ 0x1406d67b8\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 PlayerObject::updateShipSpriteExtra(__int64 a1, const char *a2)\n{\n  const char *v4; // rbx\n  cocos2d::CCSpriteFrameCache *v5; // rax\n  struct cocos2d::CCSpriteFrame *v6; // rax\n  __int64 v7; // rcx\n  __int64 v8; // rdx\n  const struct cocos2d::CCSize *v9; // rax\n  double v10; // xmm0_8\n  __int64 v11; // rbx\n  __int64 v12; // rax\n  cocos2d::CCSize v13[3]; // [rsp+20h] [rbp-28h] BYREF\n\n  v13[2] = (cocos2d::CCSize)a2;\n  v4 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v4 = *(const char **)a2;\n  v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1);\n  v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v4);\n  v7 = *(_QWORD *)(a1 + 1904);\n  if ( v6 )\n  {\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)v7 + 992LL))(v7, v6);\n    LOBYTE(v8) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1904) + 320LL))(*(_QWORD *)(a1 + 1904), v8);\n    v9 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1880) + 304LL))(*(_QWORD *)(a1 + 1880));\n    v10 = cocos2d::CCSize::CCSize(v13, v9);\n    v11 = **(_QWORD **)(a1 + 1904);\n    cocos2d::CCPoint::CCPoint(*(float *)&v10, v13[0].width * 0.5);\n    (*(void (__fastcall **)(_QWORD, __int64))(v11 + 184))(*(_QWORD *)(a1 + 1904), v12);\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 320LL))(v7, 0);\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; PlayerObject::updateShipSpriteExtra from 0x14039ed20 to 0x14039ee29 (265 bytes)\n; \n; 5 xrefs:\n; > PlayerObject::init @ 0x1403870bf\n; > PlayerObject::updatePlayerShipFrame @ 0x14039e08e\n; > PlayerObject::updatePlayerJetpackFrame @ 0x14039e2be\n; > PlayerObject::updatePlayerBirdFrame @ 0x14039e561\n; > <???> @ 0x1406d67b8\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_10], rbx                                              ; +0x0, 0x14039ed20\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x14039ed25\npush    rdi                                                            ; +0xa, 0x14039ed2a\nsub     rsp, 40h                                                       ; +0xb, 0x14039ed2b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14039ed2f\nxor     rax, rsp                                                       ; +0x16, 0x14039ed36\nmov     [rsp+48h+var_10], rax                                          ; +0x19, 0x14039ed39\nmov     rdi, rdx                                                       ; +0x1e, 0x14039ed3e\nmov     rsi, rcx                                                       ; +0x21, 0x14039ed41\nmov     [rsp+48h+var_18], rdx                                          ; +0x24, 0x14039ed44\nmov     rbx, rdx                                                       ; +0x29, 0x14039ed49\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x2c, 0x14039ed4c\njbe     short loc_14039ED56                                            ; +0x31, 0x14039ed51\nmov     rbx, [rdx]                                                     ; +0x33, 0x14039ed53\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x36, 0x14039ed56\nmov     rcx, rax                                                       ; +0x3c, 0x14039ed5c\nmov     rdx, rbx                                                       ; +0x3f, 0x14039ed5f\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x42, 0x14039ed62\nmov     rcx, [rsi+770h]                                                ; +0x48, 0x14039ed68\ntest    rax, rax                                                       ; +0x4f, 0x14039ed6f\njz      loc_14039EDF8                                                  ; +0x52, 0x14039ed72\nmov     r8, [rcx]                                                      ; +0x58, 0x14039ed78\nmov     rdx, rax                                                       ; +0x5b, 0x14039ed7b\ncall    qword ptr [r8+3E0h]                                            ; +0x5e, 0x14039ed7e\nmov     rcx, [rsi+770h]                                                ; +0x65, 0x14039ed85\nmov     rax, [rcx]                                                     ; +0x6c, 0x14039ed8c\nmov     dl, 1                                                          ; +0x6f, 0x14039ed8f\ncall    qword ptr [rax+140h]                                           ; +0x71, 0x14039ed91\nmov     rcx, [rsi+758h]                                                ; +0x77, 0x14039ed97\nmov     rax, [rcx]                                                     ; +0x7e, 0x14039ed9e\ncall    qword ptr [rax+130h]                                           ; +0x81, 0x14039eda1\nmov     rdx, rax                                                       ; +0x87, 0x14039eda7\nlea     rcx, [rsp+48h+var_28]                                          ; +0x8a, 0x14039edaa\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x8f, 0x14039edaf\nmov     rax, [rsi+770h]                                                ; +0x95, 0x14039edb5\nmov     rbx, [rax]                                                     ; +0x9c, 0x14039edbc\nmovss   xmm2, [rsp+48h+var_24]                                         ; +0x9f, 0x14039edbf\nmulss   xmm2, cs:dword_140622B08                                       ; +0xa5, 0x14039edc5\nmovss   xmm1, [rsp+48h+var_28]                                         ; +0xad, 0x14039edcd\nmulss   xmm1, cs:dword_140622B08                                       ; +0xb3, 0x14039edd3\nlea     rcx, [rsp+48h+var_20]                                          ; +0xbb, 0x14039eddb\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc0, 0x14039ede0\nmov     rdx, rax                                                       ; +0xc6, 0x14039ede6\nmov     rcx, [rsi+770h]                                                ; +0xc9, 0x14039ede9\ncall    qword ptr [rbx+0B8h]                                           ; +0xd0, 0x14039edf0\njmp     short loc_14039EE04                                            ; +0xd6, 0x14039edf6\nmov     rax, [rcx]                                                     ; +0xd8, 0x14039edf8\nxor     edx, edx                                                       ; +0xdb, 0x14039edfb\ncall    qword ptr [rax+140h]                                           ; +0xdd, 0x14039edfd\nnop                                                                    ; +0xe3, 0x14039ee03\nmov     rcx, rdi                                                       ; +0xe4, 0x14039ee04\ncall    sub_14003A830                                                  ; +0xe7, 0x14039ee07\nmov     rcx, [rsp+48h+var_10]                                          ; +0xec, 0x14039ee0c\nxor     rcx, rsp; StackCookie                                          ; +0xf1, 0x14039ee11\ncall    __security_check_cookie                                        ; +0xf4, 0x14039ee14\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xf9, 0x14039ee19\nmov     rsi, [rsp+48h+arg_18]                                          ; +0xfe, 0x14039ee1e\nadd     rsp, 40h                                                       ; +0x103, 0x14039ee23\npop     rdi                                                            ; +0x107, 0x14039ee27\nretn                                                                   ; +0x108, 0x14039ee28", "xrefs": ["PlayerObject::init @ 0x1403870bf", "PlayerObject::updatePlayerShipFrame @ 0x14039e08e", "PlayerObject::updatePlayerJetpackFrame @ 0x14039e2be", "PlayerObject::updatePlayerBirdFrame @ 0x14039e561", "<???> @ 0x1406d67b8"], "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"}