{"type": "func", "start": 6442503904, "end": 6442504016, "name": "cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor", "pseudocode": "// \n// cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor from 0x18000cee0 to 0x18000cf50 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bcd8\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:15:38 +0000\n// \n\nstruct cocos2d::CCSprite *__fastcall cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor(\n        const char *a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4)\n{\n  struct cocos2d::CCSprite *result; // rax\n  struct cocos2d::CCSprite *v8; // rbx\n\n  result = cocos2d::CCSprite::createWithSpriteFrameName(a1);\n  v8 = result;\n  if ( result )\n  {\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)result + 184LL))(result, a3);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v8 + 288LL))(v8, a4);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 464LL))(a2, v8);\n    return v8;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCControlUtils::addSpriteToTargetWithPosAndAnchor from 0x18000cee0 to 0x18000cf50 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bcd8\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:15:38 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000cee0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18000cee5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18000ceea\npush    rdi                                                            ; +0xf, 0x18000ceef\nsub     rsp, 20h                                                       ; +0x10, 0x18000cef0\nmov     rsi, r9                                                        ; +0x14, 0x18000cef4\nmov     rbp, r8                                                        ; +0x17, 0x18000cef7\nmov     rdi, rdx                                                       ; +0x1a, 0x18000cefa\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x1d, 0x18000cefd\nmov     rbx, rax                                                       ; +0x23, 0x18000cf03\ntest    rax, rax                                                       ; +0x26, 0x18000cf06\njz      short loc_18000CF3B                                            ; +0x29, 0x18000cf09\nmov     rax, [rax]                                                     ; +0x2b, 0x18000cf0b\nmov     rdx, rbp                                                       ; +0x2e, 0x18000cf0e\nmov     rcx, rbx                                                       ; +0x31, 0x18000cf11\ncall    qword ptr [rax+0B8h]                                           ; +0x34, 0x18000cf14\nmov     rax, [rbx]                                                     ; +0x3a, 0x18000cf1a\nmov     rdx, rsi                                                       ; +0x3d, 0x18000cf1d\nmov     rcx, rbx                                                       ; +0x40, 0x18000cf20\ncall    qword ptr [rax+120h]                                           ; +0x43, 0x18000cf23\nmov     rax, [rdi]                                                     ; +0x49, 0x18000cf29\nmov     rdx, rbx                                                       ; +0x4c, 0x18000cf2c\nmov     rcx, rdi                                                       ; +0x4f, 0x18000cf2f\ncall    qword ptr [rax+1D0h]                                           ; +0x52, 0x18000cf32\nmov     rax, rbx                                                       ; +0x58, 0x18000cf38\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x18000cf3b\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x60, 0x18000cf40\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x65, 0x18000cf45\nadd     rsp, 20h                                                       ; +0x6a, 0x18000cf4a\npop     rdi                                                            ; +0x6e, 0x18000cf4e\nretn                                                                   ; +0x6f, 0x18000cf4f", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004bcd8"], "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"}