{"type": "func", "start": 3045204, "end": 3045324, "name": "CCPartAnimSprite::changeTextureOfID", "pseudocode": "// \n// CCPartAnimSprite::changeTextureOfID from 0x2e7754 to 0x2e77cc (120 bytes)\n// \n// 0 xrefs:\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 CCPartAnimSprite::changeTextureOfID(CCPartAnimSprite *a1, const char *a2, const char *a3)\n{\n  cocos2d::CCDictionary *m_spritePartIDs; // r6\n  CCSpritePart *v5; // r6\n  int v6; // r2\n  std::string v7; // [sp+8h] [bp+4h] BYREF\n\n  v7.m_data.m_data = (stl::StringData<char>::Internal *)a3;\n  m_spritePartIDs = a1->m_spritePartIDs;\n  sub_776584((int)&v7, (char *)a2);\n  v5 = (CCSpritePart *)cocos2d::CCDictionary::objectForKey(m_spritePartIDs, &v7);\n  sub_774008(&v7);\n  if ( v5 )\n  {\n    if ( a3 )\n    {\n      sub_776584((int)&v7, (char *)a3);\n      CCSpritePart::updateDisplayFrame((int)v5, (const char **)&v7, v6);\n      sub_774008(&v7);\n    }\n    else\n    {\n      CCSpritePart::resetTextureRect(v5);\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::changeTextureOfID from 0x2e7754 to 0x2e77cc (120 bytes)\n; \n; 0 xrefs:\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.W          {R0-R8,LR}                                             ; +0x0, 0x2e7754\nADD             R4, SP, #0x10+var_8                                    ; +0x4, 0x2e7758\nLDR             R5, =(__stack_chk_guard_ptr - 0x2E7768)                ; +0x6, 0x2e775a\nADD             R7, SP, #4                                             ; +0x8, 0x2e775c\nLDR.W           R6, [R0,#0x1FC]                                        ; +0xa, 0x2e775e\nMOV             R8, R2                                                 ; +0xe, 0x2e7762\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x2e7764\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x2e7766\nMOV             R0, R4; int                                            ; +0x14, 0x2e7768\nMOV             R2, R7                                                 ; +0x16, 0x2e776a\nLDR             R3, [R5]                                               ; +0x18, 0x2e776c\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1a, 0x2e776e\nBL              sub_776584                                             ; +0x1c, 0x2e7770\nMOV             R0, R6                                                 ; +0x20, 0x2e7774\nMOV             R1, R4                                                 ; +0x22, 0x2e7776\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x24, 0x2e7778\nMOV             R6, R0                                                 ; +0x28, 0x2e777c\nMOV             R0, R4                                                 ; +0x2a, 0x2e777e\nBL              sub_774008                                             ; +0x2c, 0x2e7780\nCBZ             R6, loc_2E77BA                                         ; +0x30, 0x2e7784\nCMP.W           R8, #0                                                 ; +0x32, 0x2e7786\nBNE             loc_2E7794                                             ; +0x36, 0x2e778a\nMOV             R0, R6; this                                           ; +0x38, 0x2e778c\nBL              _ZN12CCSpritePart16resetTextureRectEv; CCSpritePart::resetTextureRect(void) ; +0x3a, 0x2e778e\nB               loc_2E77BA                                             ; +0x3e, 0x2e7792\nMOV             R1, R8; char *                                         ; +0x40, 0x2e7794\nMOV             R0, R4; int                                            ; +0x42, 0x2e7796\nMOV             R2, R7                                                 ; +0x44, 0x2e7798\nBL              sub_776584                                             ; +0x46, 0x2e779a\nMOV             R0, R6                                                 ; +0x4a, 0x2e779e\nMOV             R1, R4                                                 ; +0x4c, 0x2e77a0\nBL              _ZN12CCSpritePart18updateDisplayFrameESs; CCSpritePart::updateDisplayFrame(std::string) ; +0x4e, 0x2e77a2\nMOV             R0, R4                                                 ; +0x52, 0x2e77a6\nBL              sub_774008                                             ; +0x54, 0x2e77a8\nB               loc_2E77BA                                             ; +0x58, 0x2e77ac\nB               loc_2E77B0                                             ; +0x5a, 0x2e77ae\nMOV             R0, R4                                                 ; +0x5c, 0x2e77b0\nBL              sub_774008                                             ; +0x5e, 0x2e77b2\nBL              __cxa_end_cleanup                                      ; +0x62, 0x2e77b6\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x66, 0x2e77ba\nLDR             R3, [R5]                                               ; +0x68, 0x2e77bc\nCMP             R2, R3                                                 ; +0x6a, 0x2e77be\nBEQ             loc_2E77C6                                             ; +0x6c, 0x2e77c0\nBLX             __stack_chk_fail                                       ; +0x6e, 0x2e77c2\nADD             SP, SP, #0x10                                          ; +0x72, 0x2e77c6\nPOP.W           {R4-R8,PC}                                             ; +0x74, 0x2e77c8", "xrefs": [], "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"}