{"type": "func", "start": 3963280, "end": 3963426, "name": "CCPartAnimSprite::changeTextureOfID", "pseudocode": "// \n// CCPartAnimSprite::changeTextureOfID from 0x3c7990 to 0x3c7a22 (146 bytes)\n// \n// 0 xrefs:\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\nint __fastcall CCPartAnimSprite::changeTextureOfID(CCPartAnimSprite *this, const char *a2, const char *a3, int a4)\n{\n  int v6; // r8\n  size_t v7; // r0\n  CCSpritePart *v8; // r6\n  int result; // r0\n  size_t v10; // r0\n  CCPartAnimSprite *v11; // [sp+0h] [bp-10h] BYREF\n  const char *v12; // [sp+4h] [bp-Ch]\n  const char *v13; // [sp+8h] [bp-8h]\n  int v14; // [sp+Ch] [bp-4h]\n\n  v11 = this;\n  v12 = a2;\n  v13 = a3;\n  v14 = a4;\n  v6 = *((_DWORD *)this + 127);\n  v11 = nullptr;\n  v12 = nullptr;\n  v13 = nullptr;\n  v7 = strlen(a2);\n  std::string::__init((int *)&v11, a2, v7);\n  v8 = (CCSpritePart *)cocos2d::CCDictionary::objectForKey(v6, &v11);\n  result = std::string::~string((int)&v11);\n  if ( v8 )\n  {\n    if ( a3 )\n    {\n      v11 = nullptr;\n      v12 = nullptr;\n      v13 = nullptr;\n      v10 = strlen(a3);\n      std::string::__init((int *)&v11, a3, v10);\n      CCSpritePart::updateDisplayFrame((int)v8, (int)&v11);\n      return std::string::~string((int)&v11);\n    }\n    else\n    {\n      return CCSpritePart::resetTextureRect(v8);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::changeTextureOfID from 0x3c7990 to 0x3c7a22 (146 bytes)\n; \n; 0 xrefs:\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-R8,LR}                                             ; +0x0, 0x3c7990\nMOV             R6, R1                                                 ; +0x4, 0x3c7994\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C79A4)                ; +0x6, 0x3c7996\nMOV             R7, R2                                                 ; +0x8, 0x3c7998\nLDR.W           R8, [R0,#0x1FC]                                        ; +0xa, 0x3c799a\nMOV             R0, R1; char *                                         ; +0xe, 0x3c799e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3c79a0\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3c79a2\nMOV             R4, SP                                                 ; +0x14, 0x3c79a4\nLDR             R3, [R5]                                               ; +0x16, 0x3c79a6\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x3c79a8\nMOVS            R3, #0                                                 ; +0x1a, 0x3c79aa\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x1c, 0x3c79ac\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x1e, 0x3c79ae\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x20, 0x3c79b0\nBLX             strlen                                                 ; +0x22, 0x3c79b2\nMOV             R1, R6                                                 ; +0x26, 0x3c79b6\nMOV             R2, R0                                                 ; +0x28, 0x3c79b8\nMOV             R0, SP                                                 ; +0x2a, 0x3c79ba\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2c, 0x3c79bc\nMOV             R0, R8                                                 ; +0x30, 0x3c79c0\nMOV             R1, SP                                                 ; +0x32, 0x3c79c2\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x34, 0x3c79c4\nMOV             R6, R0                                                 ; +0x38, 0x3c79c8\nMOV             R0, SP                                                 ; +0x3a, 0x3c79ca\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x3c, 0x3c79cc\nCBZ             R6, loc_3C7A10                                         ; +0x40, 0x3c79d0\nCBNZ            R7, loc_3C79DC                                         ; +0x42, 0x3c79d2\nMOV             R0, R6; this                                           ; +0x44, 0x3c79d4\nBL              _ZN12CCSpritePart16resetTextureRectEv; CCSpritePart::resetTextureRect(void) ; +0x46, 0x3c79d6\nB               loc_3C7A10                                             ; +0x4a, 0x3c79da\nMOV             R0, R7; char *                                         ; +0x4c, 0x3c79dc\nMOVS            R3, #0                                                 ; +0x4e, 0x3c79de\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x50, 0x3c79e0\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x52, 0x3c79e2\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x54, 0x3c79e4\nBLX             strlen                                                 ; +0x56, 0x3c79e6\nMOV             R1, R7                                                 ; +0x5a, 0x3c79ea\nMOV             R2, R0                                                 ; +0x5c, 0x3c79ec\nMOV             R0, SP                                                 ; +0x5e, 0x3c79ee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x60, 0x3c79f0\nMOV             R0, R6                                                 ; +0x64, 0x3c79f4\nMOV             R1, SP                                                 ; +0x66, 0x3c79f6\nBL              _ZN12CCSpritePart18updateDisplayFrameENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCSpritePart::updateDisplayFrame(std::string) ; +0x68, 0x3c79f8\nMOV             R0, SP                                                 ; +0x6c, 0x3c79fc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6e, 0x3c79fe\nB               loc_3C7A10                                             ; +0x72, 0x3c7a02\nB               loc_3C7A06                                             ; +0x74, 0x3c7a04\nMOV             R0, R4                                                 ; +0x76, 0x3c7a06\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x3c7a08\nBL              __cxa_end_cleanup                                      ; +0x7c, 0x3c7a0c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x80, 0x3c7a10\nLDR             R3, [R5]                                               ; +0x82, 0x3c7a12\nCMP             R2, R3                                                 ; +0x84, 0x3c7a14\nBEQ             loc_3C7A1C                                             ; +0x86, 0x3c7a16\nBLX             __stack_chk_fail                                       ; +0x88, 0x3c7a18\nADD             SP, SP, #0x10                                          ; +0x8c, 0x3c7a1c\nPOP.W           {R4-R8,PC}                                             ; +0x8e, 0x3c7a1e", "xrefs": [], "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"}