{"type": "func", "start": 3961980, "end": 3962230, "name": "CCPartAnimSprite::transformSprite", "pseudocode": "// \n// CCPartAnimSprite::transformSprite from 0x3c747c to 0x3c7576 (250 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x3c7600\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::transformSprite(cocos2d::CCArray **this, SpriteDescription *a2, int a3, int a4)\n{\n  cocos2d::CCNode *v6; // r4\n  float v7; // s15\n  int v8; // r1\n  cocos2d::CCNode *v9; // r0\n  float v10; // s15\n  int v11; // r3\n  int v12; // r1\n  void (__fastcall *v13)(cocos2d::CCNode *, int); // r3\n  cocos2d::CCNode *v14; // r0\n  int v15; // r2\n  int v16; // r3\n  int v18[4]; // [sp+0h] [bp-10h] BYREF\n\n  v18[0] = (int)this;\n  v18[1] = (int)a2;\n  v18[2] = a3;\n  v18[3] = a4;\n  v6 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(this + 132), *((_DWORD *)a2 + 21));\n  cocos2d::CCNode::stopAllActions(v6);\n  (*(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_DWORD *)v6 + 92))(v6, (char *)a2 + 52);\n  v7 = *((float *)a2 + 17);\n  if ( v7 == 0.0 )\n  {\n    v9 = v6;\n    v8 = *((_DWORD *)a2 + 15);\n  }\n  else\n  {\n    v8 = *((_DWORD *)a2 + 15);\n    v9 = v6;\n  }\n  if ( v7 != 0.0 )\n    v8 ^= 0x80000000;\n  (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v6 + 64))(v9, v8);\n  v10 = *((float *)a2 + 18);\n  v11 = *(_DWORD *)v6;\n  if ( v10 == 0.0 )\n  {\n    v13 = *(void (__fastcall **)(cocos2d::CCNode *, int))(v11 + 72);\n    v14 = v6;\n    v12 = *((_DWORD *)a2 + 16);\n  }\n  else\n  {\n    v12 = *((_DWORD *)a2 + 16);\n    v13 = *(void (__fastcall **)(cocos2d::CCNode *, int))(v11 + 72);\n    v14 = v6;\n  }\n  if ( v10 != 0.0 )\n    v12 ^= 0x80000000;\n  v13(v14, v12);\n  (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v6 + 180))(v6, *((_DWORD *)a2 + 19));\n  if ( *((_BYTE *)a2 + 88) )\n  {\n    (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v6 + 580))(v6, *((_DWORD *)a2 + 23));\n    std::string::basic_string(v18, *((_DWORD *)a2 + 23) + 136);\n    CCSpritePart::frameChanged((int)v6, (unsigned __int8 *)v18, v15, v16);\n    std::string::~string((int)v18);\n  }\n  if ( (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v6 + 52))(v6) != *((_DWORD *)a2 + 20) )\n    (*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCNode *))*this + 74))(this, v6);\n  CCSpritePart::setBeingUsed((int)v6, 1);\n  return (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v6 + 172))(v6, 1);\n}", "assembly": "; \n; CCPartAnimSprite::transformSprite from 0x3c747c to 0x3c7576 (250 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x3c7600\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, 0x3c747c\nMOV             R5, R1                                                 ; +0x4, 0x3c7480\nLDR             R7, =(__stack_chk_guard_ptr - 0x3C748C)                ; +0x6, 0x3c7482\nMOV             R8, R0                                                 ; +0x8, 0x3c7484\nLDR             R1, [R1,#0x54]; unsigned int                           ; +0xa, 0x3c7486\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3c7488\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xe, 0x3c748a\nLDR.W           R0, [R0,#0x210]; this                                  ; +0x10, 0x3c748c\nLDR             R3, [R7]                                               ; +0x14, 0x3c7490\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x16, 0x3c7492\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x18, 0x3c7494\nMOV             R4, R0                                                 ; +0x1c, 0x3c7498\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x1e, 0x3c749a\nLDR             R3, [R4]                                               ; +0x22, 0x3c749e\nADD.W           R1, R5, #0x34 ; '4'                                    ; +0x24, 0x3c74a0\nMOV             R0, R4                                                 ; +0x28, 0x3c74a4\nLDR             R3, [R3,#0x5C]                                         ; +0x2a, 0x3c74a6\nBLX             R3                                                     ; +0x2c, 0x3c74a8\nVLDR            S15, [R5,#0x44]                                        ; +0x2e, 0x3c74aa\nLDR             R3, [R4]                                               ; +0x32, 0x3c74ae\nVCMP.F32        S15, #0.0                                              ; +0x34, 0x3c74b0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x38, 0x3c74b4\nITTEE NE                                                               ; +0x3c, 0x3c74b8\nLDRNE           R1, [R5,#0x3C]                                         ; +0x3e, 0x3c74ba\nMOVNE           R0, R4                                                 ; +0x40, 0x3c74bc\nMOVEQ           R0, R4                                                 ; +0x42, 0x3c74be\nLDREQ           R1, [R5,#0x3C]                                         ; +0x44, 0x3c74c0\nITET NE                                                                ; +0x46, 0x3c74c2\nLDRNE           R3, [R3,#0x40]                                         ; +0x48, 0x3c74c4\nLDREQ           R3, [R3,#0x40]                                         ; +0x4a, 0x3c74c6\nEORNE.W         R1, R1, #0x80000000                                    ; +0x4c, 0x3c74c8\nBLX             R3                                                     ; +0x50, 0x3c74cc\nVLDR            S15, [R5,#0x48]                                        ; +0x52, 0x3c74ce\nLDR             R3, [R4]                                               ; +0x56, 0x3c74d2\nVCMP.F32        S15, #0.0                                              ; +0x58, 0x3c74d4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x3c74d8\nITTTE NE                                                               ; +0x60, 0x3c74dc\nLDRNE           R1, [R5,#0x40]                                         ; +0x62, 0x3c74de\nLDRNE           R3, [R3,#0x48]                                         ; +0x64, 0x3c74e0\nMOVNE           R0, R4                                                 ; +0x66, 0x3c74e2\nLDREQ           R3, [R3,#0x48]                                         ; +0x68, 0x3c74e4\nITTE EQ                                                                ; +0x6a, 0x3c74e6\nMOVEQ           R0, R4                                                 ; +0x6c, 0x3c74e8\nLDREQ           R1, [R5,#0x40]                                         ; +0x6e, 0x3c74ea\nEORNE.W         R1, R1, #0x80000000                                    ; +0x70, 0x3c74ec\nBLX             R3                                                     ; +0x74, 0x3c74f0\nLDR             R3, [R4]                                               ; +0x76, 0x3c74f2\nMOV             R0, R4                                                 ; +0x78, 0x3c74f4\nLDR             R1, [R5,#0x4C]                                         ; +0x7a, 0x3c74f6\nLDR.W           R3, [R3,#0xB4]                                         ; +0x7c, 0x3c74f8\nBLX             R3                                                     ; +0x80, 0x3c74fc\nLDRB.W          R3, [R5,#0x58]                                         ; +0x82, 0x3c74fe\nCBZ             R3, loc_3C752A                                         ; +0x86, 0x3c7502\nLDR             R3, [R4]                                               ; +0x88, 0x3c7504\nMOV             R0, R4                                                 ; +0x8a, 0x3c7506\nLDR             R1, [R5,#0x5C]                                         ; +0x8c, 0x3c7508\nMOV             R6, SP                                                 ; +0x8e, 0x3c750a\nLDR.W           R3, [R3,#0x244]                                        ; +0x90, 0x3c750c\nBLX             R3                                                     ; +0x94, 0x3c7510\nLDR             R1, [R5,#0x5C]                                         ; +0x96, 0x3c7512\nMOV             R0, SP                                                 ; +0x98, 0x3c7514\nADDS            R1, #0x88                                              ; +0x9a, 0x3c7516\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x9c, 0x3c7518\nMOV             R0, R4                                                 ; +0xa0, 0x3c751c\nMOV             R1, SP                                                 ; +0xa2, 0x3c751e\nBL              _ZN12CCSpritePart12frameChangedENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCSpritePart::frameChanged(std::string) ; +0xa4, 0x3c7520\nMOV             R0, SP                                                 ; +0xa8, 0x3c7524\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xaa, 0x3c7526\nLDR             R3, [R4]                                               ; +0xae, 0x3c752a\nMOV             R0, R4                                                 ; +0xb0, 0x3c752c\nLDR             R3, [R3,#0x34]                                         ; +0xb2, 0x3c752e\nBLX             R3                                                     ; +0xb4, 0x3c7530\nLDR             R2, [R5,#0x50]                                         ; +0xb6, 0x3c7532\nCMP             R0, R2                                                 ; +0xb8, 0x3c7534\nBEQ             loc_3C7546                                             ; +0xba, 0x3c7536\nLDR.W           R3, [R8]                                               ; +0xbc, 0x3c7538\nMOV             R0, R8                                                 ; +0xc0, 0x3c753c\nMOV             R1, R4                                                 ; +0xc2, 0x3c753e\nLDR.W           R3, [R3,#0x128]                                        ; +0xc4, 0x3c7540\nBLX             R3                                                     ; +0xc8, 0x3c7544\nMOV             R0, R4; this                                           ; +0xca, 0x3c7546\nMOVS            R1, #1; bool                                           ; +0xcc, 0x3c7548\nBL              _ZN12CCSpritePart12setBeingUsedEb; CCSpritePart::setBeingUsed(bool) ; +0xce, 0x3c754a\nLDR             R3, [R4]                                               ; +0xd2, 0x3c754e\nMOV             R0, R4                                                 ; +0xd4, 0x3c7550\nMOVS            R1, #1                                                 ; +0xd6, 0x3c7552\nLDR.W           R3, [R3,#0xAC]                                         ; +0xd8, 0x3c7554\nBLX             R3                                                     ; +0xdc, 0x3c7558\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xde, 0x3c755a\nLDR             R3, [R7]                                               ; +0xe0, 0x3c755c\nCMP             R2, R3                                                 ; +0xe2, 0x3c755e\nBEQ             loc_3C7570                                             ; +0xe4, 0x3c7560\nBLX             __stack_chk_fail                                       ; +0xe6, 0x3c7562\nMOV             R0, R6                                                 ; +0xea, 0x3c7566\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xec, 0x3c7568\nBL              __cxa_end_cleanup                                      ; +0xf0, 0x3c756c\nADD             SP, SP, #0x10                                          ; +0xf4, 0x3c7570\nPOP.W           {R4-R8,PC}                                             ; +0xf6, 0x3c7572", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x3c7600"], "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"}