{"type": "func", "start": 4089832, "end": 4089894, "name": "CCSpritePlus::setScale", "pseudocode": "// \n// CCSpritePlus::setScale from 0x3e67e8 to 0x3e6826 (62 bytes)\n// \n// 1 xrefs:\n// > GameObject::setScale @ 0x44b87a\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:47:05 +0000\n// \n\nunsigned int __fastcall CCSpritePlus::setScale(cocos2d::CCArray **this, float a2)\n{\n  unsigned int result; // r0\n  unsigned int i; // r4\n  int v6; // r0\n\n  result = cocos2d::CCSprite::setScale((cocos2d::CCSprite *)this, a2);\n  if ( *((_BYTE *)this + 516) && *((_BYTE *)this + 517) )\n  {\n    for ( i = 0; ; ++i )\n    {\n      result = cocos2d::CCArray::count(*(this + 127));\n      if ( i >= result )\n        break;\n      v6 = cocos2d::CCArray::objectAtIndex(*(this + 127), i);\n      (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 80))(v6, LODWORD(a2));\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCSpritePlus::setScale from 0x3e67e8 to 0x3e6826 (62 bytes)\n; \n; 1 xrefs:\n; > GameObject::setScale @ 0x44b87a\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:47:05 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3e67e8\nMOV             R5, R0                                                 ; +0x2, 0x3e67ea\nMOV             R6, R1                                                 ; +0x4, 0x3e67ec\nBL              _ZN7cocos2d8CCSprite8setScaleEf; cocos2d::CCSprite::setScale(float) ; +0x6, 0x3e67ee\nLDRB.W          R3, [R5,#0x204]                                        ; +0xa, 0x3e67f2\nCBZ             R3, locret_3E6824                                      ; +0xe, 0x3e67f6\nLDRB.W          R3, [R5,#0x205]                                        ; +0x10, 0x3e67f8\nCBNZ            R3, loc_3E6800                                         ; +0x14, 0x3e67fc\nPOP             {R4-R6,PC}                                             ; +0x16, 0x3e67fe\nMOVS            R4, #0                                                 ; +0x18, 0x3e6800\nLDR.W           R0, [R5,#0x1FC]; this                                  ; +0x1a, 0x3e6802\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x3e6806\nCMP             R4, R0                                                 ; +0x22, 0x3e680a\nBCS             locret_3E6824                                          ; +0x24, 0x3e680c\nMOV             R1, R4; unsigned int                                   ; +0x26, 0x3e680e\nLDR.W           R0, [R5,#0x1FC]; this                                  ; +0x28, 0x3e6810\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x3e6814\nMOV             R1, R6                                                 ; +0x30, 0x3e6818\nADDS            R4, #1                                                 ; +0x32, 0x3e681a\nLDR             R3, [R0]                                               ; +0x34, 0x3e681c\nLDR             R3, [R3,#0x50]                                         ; +0x36, 0x3e681e\nBLX             R3                                                     ; +0x38, 0x3e6820\nB               loc_3E6802                                             ; +0x3a, 0x3e6822\nPOP             {R4-R6,PC}                                             ; +0x3c, 0x3e6824", "xrefs": ["GameObject::setScale @ 0x44b87a"], "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"}