{"type": "func", "start": 5369021440, "end": 5369021573, "name": "CCSpritePlus::setScale", "pseudocode": "// \n// CCSpritePlus::setScale from 0x14004c400 to 0x14004c485 (133 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x140709ee8\n// > <???> @ 0x14070a340\n// > <???> @ 0x1407385e8\n// > <???> @ 0x140886134\n// > <???> @ 0x140886144\n// > <???> @ 0x14091001c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:33 +0000\n// \n\nvoid __fastcall CCSpritePlus::setScale(__int64 a1, float a2)\n{\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v4; // rax\n\n  cocos2d::CCSprite::setScale((cocos2d::CCSprite *)a1, a2);\n  if ( *(_BYTE *)(a1 + 616) )\n  {\n    if ( *(_BYTE *)(a1 + 617) )\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)); ++i )\n      {\n        v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), i);\n        (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 160LL))(v4);\n      }\n    }\n  }\n}", "assembly": "; \n; CCSpritePlus::setScale from 0x14004c400 to 0x14004c485 (133 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x140709ee8\n; > <???> @ 0x14070a340\n; > <???> @ 0x1407385e8\n; > <???> @ 0x140886134\n; > <???> @ 0x140886144\n; > <???> @ 0x14091001c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:33 +0000\n; \npush    rbx                                                            ; +0x0, 0x14004c400\nsub     rsp, 30h                                                       ; +0x2, 0x14004c402\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x14004c406\nmov     rbx, rcx                                                       ; +0xb, 0x14004c40b\nmovaps  xmm6, xmm1                                                     ; +0xe, 0x14004c40e\ncall    cs:__imp_?setScale@CCSprite@cocos2d@@UEAAXM@Z; cocos2d::CCSprite::setScale(float) ; +0x11, 0x14004c411\ncmp     byte ptr [rbx+268h], 0                                         ; +0x17, 0x14004c417\njz      short loc_14004C47A                                            ; +0x1e, 0x14004c41e\ncmp     byte ptr [rbx+269h], 0                                         ; +0x20, 0x14004c420\njz      short loc_14004C47A                                            ; +0x27, 0x14004c427\nmov     rcx, [rbx+258h]                                                ; +0x29, 0x14004c429\nmov     [rsp+38h+arg_0], rdi                                           ; +0x30, 0x14004c430\nxor     edi, edi                                                       ; +0x35, 0x14004c435\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x14004c437\ntest    eax, eax                                                       ; +0x3d, 0x14004c43d\njz      short loc_14004C475                                            ; +0x3f, 0x14004c43f\nmov     rcx, [rbx+258h]                                                ; +0x41, 0x14004c441\nmov     edx, edi                                                       ; +0x48, 0x14004c448\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a, 0x14004c44a\nmovaps  xmm1, xmm6                                                     ; +0x50, 0x14004c450\nmov     rcx, [rax]                                                     ; +0x53, 0x14004c453\nmov     rdx, [rcx+0A0h]                                                ; +0x56, 0x14004c456\nmov     rcx, rax                                                       ; +0x5d, 0x14004c45d\ncall    rdx                                                            ; +0x60, 0x14004c460\nmov     rcx, [rbx+258h]                                                ; +0x62, 0x14004c462\ninc     edi                                                            ; +0x69, 0x14004c469\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6b, 0x14004c46b\ncmp     edi, eax                                                       ; +0x71, 0x14004c471\njb      short loc_14004C441                                            ; +0x73, 0x14004c473\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x75, 0x14004c475\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7a, 0x14004c47a\nadd     rsp, 30h                                                       ; +0x7f, 0x14004c47f\npop     rbx                                                            ; +0x83, 0x14004c483\nretn                                                                   ; +0x84, 0x14004c484", "xrefs": ["<???> @ 0x140709ee8", "<???> @ 0x14070a340", "<???> @ 0x1407385e8", "<???> @ 0x140886134", "<???> @ 0x140886144", "<???> @ 0x14091001c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}