{"type": "func", "start": 6442598720, "end": 6442598855, "name": "cocos2d::CCFollow::create", "pseudocode": "// \n// cocos2d::CCFollow::create from 0x180024140 to 0x1800241c7 (135 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af124\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\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCFollow *__fastcall cocos2d::CCFollow::create(\n        struct cocos2d::CCNode *a1,\n        const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCFollow *v4; // rax\n  cocos2d::CCFollow *v5; // rbx\n\n  v4 = (cocos2d::CCFollow *)operator new(0x80u);\n  if ( v4 )\n    v5 = cocos2d::CCFollow::CCFollow(v4);\n  else\n    v5 = nullptr;\n  if ( v5 )\n  {\n    if ( cocos2d::CCFollow::initWithTarget(v5, a1, a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    ((void (__fastcall *)(cocos2d::CCFollow *, __int64))v5->~CCFollow)(v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCFollow::create from 0x180024140 to 0x1800241c7 (135 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af124\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, 0x180024140\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180024145\npush    rdi                                                            ; +0xa, 0x18002414a\nsub     rsp, 20h                                                       ; +0xb, 0x18002414b\nmov     rdi, rdx                                                       ; +0xf, 0x18002414f\nmov     rsi, rcx                                                       ; +0x12, 0x180024152\nmov     ecx, 80h; Size                                                 ; +0x15, 0x180024155\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x18002415a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x18002415f\ntest    rax, rax                                                       ; +0x24, 0x180024164\njz      short loc_180024176                                            ; +0x27, 0x180024167\nmov     rcx, rax; this                                                 ; +0x29, 0x180024169\ncall    ??0CCFollow@cocos2d@@QEAA@XZ; cocos2d::CCFollow::CCFollow(void) ; +0x2c, 0x18002416c\nmov     rbx, rax                                                       ; +0x31, 0x180024171\njmp     short loc_180024178                                            ; +0x34, 0x180024174\nxor     ebx, ebx                                                       ; +0x36, 0x180024176\ntest    rbx, rbx                                                       ; +0x38, 0x180024178\njz      short loc_1800241B5                                            ; +0x3b, 0x18002417b\nmov     r8, rdi; struct cocos2d::CCRect *                              ; +0x3d, 0x18002417d\nmov     rdx, rsi; struct cocos2d::CCNode *                             ; +0x40, 0x180024180\nmov     rcx, rbx; this                                                 ; +0x43, 0x180024183\ncall    ?initWithTarget@CCFollow@cocos2d@@QEAA_NPEAVCCNode@2@AEBVCCRect@2@@Z; cocos2d::CCFollow::initWithTarget(cocos2d::CCNode *,cocos2d::CCRect const &) ; +0x46, 0x180024186\nmov     rcx, rbx; this                                                 ; +0x4b, 0x18002418b\ntest    al, al                                                         ; +0x4e, 0x18002418e\njz      short loc_1800241AA                                            ; +0x50, 0x180024190\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x52, 0x180024192\nmov     rax, rbx                                                       ; +0x57, 0x180024197\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x18002419a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5f, 0x18002419f\nadd     rsp, 20h                                                       ; +0x64, 0x1800241a4\npop     rdi                                                            ; +0x68, 0x1800241a8\nretn                                                                   ; +0x69, 0x1800241a9\nmov     rax, [rbx]                                                     ; +0x6a, 0x1800241aa\nmov     edx, 1                                                         ; +0x6d, 0x1800241ad\ncall    qword ptr [rax+8]                                              ; +0x72, 0x1800241b2\nxor     eax, eax                                                       ; +0x75, 0x1800241b5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x1800241b7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7c, 0x1800241bc\nadd     rsp, 20h                                                       ; +0x81, 0x1800241c1\npop     rdi                                                            ; +0x85, 0x1800241c5\nretn                                                                   ; +0x86, 0x1800241c6", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801af124"], "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"}