{"type": "func", "start": 3961864, "end": 3961976, "name": "CCSpritePart::frameChanged", "pseudocode": "// \n// CCSpritePart::frameChanged from 0x3c7408 to 0x3c7478 (112 bytes)\n// \n// 3 xrefs:\n// > CCPartAnimSprite::transformSprite @ 0x3c7520\n// > CCPartAnimSprite::tweenSpriteTo @ 0x3c76ee\n// > CCSpritePart::updateDisplayFrame @ 0x3c776a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:35 +0000\n// \n\nunsigned __int8 *__fastcall CCSpritePart::frameChanged(int a1, unsigned __int8 *a2, int a3, int a4)\n{\n  void (__fastcall ***v6)(_DWORD, int, int *); // r8\n  unsigned __int8 *v7; // r9\n  void (__fastcall *v8)(_DWORD, int, int *); // r10\n  int v10[4]; // [sp+0h] [bp-10h] BYREF\n\n  v10[0] = a1;\n  v10[1] = (int)a2;\n  v10[2] = a3;\n  v10[3] = a4;\n  v6 = *(void (__fastcall ****)(_DWORD, int, int *))(a1 + 532);\n  v7 = (unsigned __int8 *)(a1 + 520);\n  if ( v6 && !sub_3C6FE4(a2, v7) )\n  {\n    v8 = **v6;\n    std::string::basic_string(v10, (int)a2);\n    v8(v6, a1, v10);\n    std::string::~string((int)v10);\n  }\n  return std::string::operator=(v7, a2);\n}", "assembly": "; \n; CCSpritePart::frameChanged from 0x3c7408 to 0x3c7478 (112 bytes)\n; \n; 3 xrefs:\n; > CCPartAnimSprite::transformSprite @ 0x3c7520\n; > CCPartAnimSprite::tweenSpriteTo @ 0x3c76ee\n; > CCSpritePart::updateDisplayFrame @ 0x3c776a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:35 +0000\n; \nPUSH.W          {R0-R10,LR}                                            ; +0x0, 0x3c7408\nMOV             R7, R0                                                 ; +0x4, 0x3c740c\nLDR             R3, =(__stack_chk_guard_ptr - 0x3C741E)                ; +0x6, 0x3c740e\nMOV             R6, R1                                                 ; +0x8, 0x3c7410\nLDR.W           R8, [R0,#0x214]                                        ; +0xa, 0x3c7412\nADD.W           R9, R0, #0x208                                         ; +0xe, 0x3c7416\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x12, 0x3c741a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x14, 0x3c741c\nLDR             R2, [R3]                                               ; +0x16, 0x3c741e\nMOV             R5, R3                                                 ; +0x18, 0x3c7420\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x1a, 0x3c7422\nCMP.W           R8, #0                                                 ; +0x1c, 0x3c7424\nBEQ             loc_3C7454                                             ; +0x20, 0x3c7428\nMOV             R0, R1                                                 ; +0x22, 0x3c742a\nMOV             R1, R9                                                 ; +0x24, 0x3c742c\nBL              sub_3C6FE4                                             ; +0x26, 0x3c742e\nCBNZ            R0, loc_3C7454                                         ; +0x2a, 0x3c7432\nLDR.W           R3, [R8]                                               ; +0x2c, 0x3c7434\nMOV             R1, R6                                                 ; +0x30, 0x3c7438\nMOV             R0, SP                                                 ; +0x32, 0x3c743a\nMOV             R4, SP                                                 ; +0x34, 0x3c743c\nLDR.W           R10, [R3]                                              ; +0x36, 0x3c743e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x3a, 0x3c7442\nMOV             R0, R8                                                 ; +0x3e, 0x3c7446\nMOV             R1, R7                                                 ; +0x40, 0x3c7448\nMOV             R2, SP                                                 ; +0x42, 0x3c744a\nBLX             R10                                                    ; +0x44, 0x3c744c\nMOV             R0, R4                                                 ; +0x46, 0x3c744e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x48, 0x3c7450\nMOV             R0, R9                                                 ; +0x4c, 0x3c7454\nMOV             R1, R6                                                 ; +0x4e, 0x3c7456\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x50, 0x3c7458\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x54, 0x3c745c\nLDR             R3, [R5]                                               ; +0x56, 0x3c745e\nCMP             R2, R3                                                 ; +0x58, 0x3c7460\nBEQ             loc_3C7472                                             ; +0x5a, 0x3c7462\nBLX             __stack_chk_fail                                       ; +0x5c, 0x3c7464\nMOV             R0, R4                                                 ; +0x60, 0x3c7468\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x62, 0x3c746a\nBL              __cxa_end_cleanup                                      ; +0x66, 0x3c746e\nADD             SP, SP, #0x10                                          ; +0x6a, 0x3c7472\nPOP.W           {R4-R10,PC}                                            ; +0x6c, 0x3c7474", "xrefs": ["CCPartAnimSprite::transformSprite @ 0x3c7520", "CCPartAnimSprite::tweenSpriteTo @ 0x3c76ee", "CCSpritePart::updateDisplayFrame @ 0x3c776a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}