{"type": "func", "start": 6442648768, "end": 6442648875, "name": "cocos2d::CCCallFuncO::initWithTarget", "pseudocode": "// \n// cocos2d::CCCallFuncO::initWithTarget from 0x1800304c0 to 0x18003052b (107 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCCallFuncO::create @ 0x18002fdb1\n// > cocos2d::CCCallFuncO::create @ 0x18002fd99\n// > <???> @ 0x1800e9350\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0174\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nchar __fastcall cocos2d::CCCallFuncO::initWithTarget(\n        _QWORD *a1,\n        cocos2d::CCObject *a2,\n        __int64 a3,\n        cocos2d::CCObject *a4)\n{\n  cocos2d::CCObject *v8; // rcx\n\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n  v8 = (cocos2d::CCObject *)a1[11];\n  if ( v8 )\n    cocos2d::CCObject::release(v8);\n  a1[11] = a2;\n  a1[15] = a4;\n  if ( a4 )\n    cocos2d::CCObject::retain(a4);\n  a1[13] = a3;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCCallFuncO::initWithTarget from 0x1800304c0 to 0x18003052b (107 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCCallFuncO::create @ 0x18002fdb1\n; > cocos2d::CCCallFuncO::create @ 0x18002fd99\n; > <???> @ 0x1800e9350\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0174\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800304c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800304c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800304ca\npush    rdi                                                            ; +0xf, 0x1800304cf\nsub     rsp, 20h                                                       ; +0x10, 0x1800304d0\nmov     rdi, r9                                                        ; +0x14, 0x1800304d4\nmov     rbp, r8                                                        ; +0x17, 0x1800304d7\nmov     rsi, rdx                                                       ; +0x1a, 0x1800304da\nmov     rbx, rcx                                                       ; +0x1d, 0x1800304dd\ntest    rdx, rdx                                                       ; +0x20, 0x1800304e0\njz      short loc_1800304ED                                            ; +0x23, 0x1800304e3\nmov     rcx, rdx; this                                                 ; +0x25, 0x1800304e5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x28, 0x1800304e8\nmov     rcx, [rbx+58h]; this                                           ; +0x2d, 0x1800304ed\ntest    rcx, rcx                                                       ; +0x31, 0x1800304f1\njz      short loc_1800304FB                                            ; +0x34, 0x1800304f4\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x36, 0x1800304f6\nmov     [rbx+58h], rsi                                                 ; +0x3b, 0x1800304fb\nmov     [rbx+78h], rdi                                                 ; +0x3f, 0x1800304ff\ntest    rdi, rdi                                                       ; +0x43, 0x180030503\njz      short loc_180030510                                            ; +0x46, 0x180030506\nmov     rcx, rdi; this                                                 ; +0x48, 0x180030508\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x4b, 0x18003050b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x50, 0x180030510\nmov     al, 1                                                          ; +0x55, 0x180030515\nmov     [rbx+68h], rbp                                                 ; +0x57, 0x180030517\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x18003051b\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x60, 0x180030520\nadd     rsp, 20h                                                       ; +0x65, 0x180030525\npop     rdi                                                            ; +0x69, 0x180030529\nretn                                                                   ; +0x6a, 0x18003052a", "xrefs": ["cocos2d::CCCallFuncO::create @ 0x18002fdb1", "cocos2d::CCCallFuncO::create @ 0x18002fd99", "<???> @ 0x1800e9350", "<???> @ 0x1801438a8", "<???> @ 0x1801b0174"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}