{"type": "func", "start": 4299647424, "end": 4299647549, "name": "CCSpritePlus::setScale", "pseudocode": "// \n// CCSpritePlus::setScale from 0x1004769c0 to 0x100476a3d (125 bytes)\n// \n// 4 xrefs:\n// > GameObject::setScale @ 0x10068da95\n// > <???> @ 0x100b25fe8\n// > <???> @ 0x100b46880\n// > <???> @ 0x100ba6de0\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 12:30:35 +0000\n// \n\nvoid __fastcall CCSpritePlus::setScale(__int64 a1, float a2)\n{\n  unsigned int v2; // r14d\n  __int64 v3; // rax\n\n  cocos2d::CCSprite::setScale(a1, a2);\n  if ( *(_BYTE *)(a1 + 616) == 1 && *(_BYTE *)(a1 + 617) == 1 && (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 600)) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 600), v2);\n      (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, a2);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 600)) );\n  }\n}", "assembly": "; \n; CCSpritePlus::setScale from 0x1004769c0 to 0x100476a3d (125 bytes)\n; \n; 4 xrefs:\n; > GameObject::setScale @ 0x10068da95\n; > <???> @ 0x100b25fe8\n; > <???> @ 0x100b46880\n; > <???> @ 0x100ba6de0\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 12:30:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004769c0\nmov     rbp, rsp                                                       ; +0x1, 0x1004769c1\npush    r14                                                            ; +0x4, 0x1004769c4\npush    rbx                                                            ; +0x6, 0x1004769c6\nsub     rsp, 10h                                                       ; +0x7, 0x1004769c7\nmov     rbx, rdi                                                       ; +0xb, 0x1004769cb\nmovss   [rbp+var_14], xmm0                                             ; +0xe, 0x1004769ce\ncall    cocos2d__CCSprite__setScale                                    ; +0x13, 0x1004769d3\ncmp     byte ptr [rbx+268h], 1                                         ; +0x18, 0x1004769d8\njnz     short loc_100476A34                                            ; +0x1f, 0x1004769df\ncmp     byte ptr [rbx+269h], 1                                         ; +0x21, 0x1004769e1\njnz     short loc_100476A34                                            ; +0x28, 0x1004769e8\nmov     rdi, [rbx+258h]                                                ; +0x2a, 0x1004769ea\ncall    sub_1007FEF90                                                  ; +0x31, 0x1004769f1\ntest    eax, eax                                                       ; +0x36, 0x1004769f6\njz      short loc_100476A34                                            ; +0x38, 0x1004769f8\nxor     r14d, r14d                                                     ; +0x3a, 0x1004769fa\nnop     dword ptr [rax]                                                ; +0x3d, 0x1004769fd\nmov     rdi, [rbx+258h]                                                ; +0x40, 0x100476a00\nmov     esi, r14d                                                      ; +0x47, 0x100476a07\ncall    sub_1007FEFE0                                                  ; +0x4a, 0x100476a0a\nmov     rcx, [rax]                                                     ; +0x4f, 0x100476a0f\nmov     rdi, rax                                                       ; +0x52, 0x100476a12\nmovss   xmm0, [rbp+var_14]                                             ; +0x55, 0x100476a15\ncall    qword ptr [rcx+0A0h]                                           ; +0x5a, 0x100476a1a\ninc     r14d                                                           ; +0x60, 0x100476a20\nmov     rdi, [rbx+258h]                                                ; +0x63, 0x100476a23\ncall    sub_1007FEF90                                                  ; +0x6a, 0x100476a2a\ncmp     r14d, eax                                                      ; +0x6f, 0x100476a2f\njb      short loc_100476A00                                            ; +0x72, 0x100476a32\nadd     rsp, 10h                                                       ; +0x74, 0x100476a34\npop     rbx                                                            ; +0x78, 0x100476a38\npop     r14                                                            ; +0x79, 0x100476a39\npop     rbp                                                            ; +0x7b, 0x100476a3b\nretn                                                                   ; +0x7c, 0x100476a3c", "xrefs": ["GameObject::setScale @ 0x10068da95", "<???> @ 0x100b25fe8", "<???> @ 0x100b46880", "<???> @ 0x100ba6de0"], "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"}