{"type": "func", "start": 4300977136, "end": 4300977279, "name": "GameObject::addInternalChild", "pseudocode": "// \n// GameObject::addInternalChild from 0x1005bb3f0 to 0x1005bb47f (143 bytes)\n// \n// 0 xrefs:\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\ncocos2d::CCSprite *__fastcall GameObject::addInternalChild(\n        __int64 a1,\n        const cocos2d::CCPoint *a2,\n        __int64 a3,\n        unsigned __int64 *a4,\n        unsigned int a5)\n{\n  const char *v8; // r12\n  cocos2d::CCSprite *v9; // r12\n  double v11; // [rsp+8h] [rbp-38h] BYREF\n  unsigned __int64 v12[6]; // [rsp+10h] [rbp-30h] BYREF\n  double v13; // 0:xmm0_8.8\n\n  *(cocos2d::CCPoint *)&v13 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v12, a2);\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n    v8 = *(const char **)(a3 + 16);\n  else\n    v8 = (const char *)(a3 + 1);\n  v9 = cocos2d::CCSprite::createWithSpriteFrameName(v8);\n  sub_10028CCE0(&v11, v12, a4);\n  ((void (__fastcall *)(cocos2d::CCSprite *, double *, double))v9->setPosition)(v9, &v11, v13);\n  (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCSprite *, _QWORD))(*(_QWORD *)a2 + 448LL))(a2, v9, a5);\n  return v9;\n}", "assembly": "; \n; GameObject::addInternalChild from 0x1005bb3f0 to 0x1005bb47f (143 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x1005bb3f0\nmov     rbp, rsp                                                       ; +0x1, 0x1005bb3f1\npush    r15                                                            ; +0x4, 0x1005bb3f4\npush    r14                                                            ; +0x6, 0x1005bb3f6\npush    r13                                                            ; +0x8, 0x1005bb3f8\npush    r12                                                            ; +0xa, 0x1005bb3fa\npush    rbx                                                            ; +0xc, 0x1005bb3fc\nsub     rsp, 18h                                                       ; +0xd, 0x1005bb3fd\nmov     ebx, r8d                                                       ; +0x11, 0x1005bb401\nmov     r15, rcx                                                       ; +0x14, 0x1005bb404\nmov     r12, rdx                                                       ; +0x17, 0x1005bb407\nmov     r14, rsi                                                       ; +0x1a, 0x1005bb40a\nlea     rdx, dbl_1009A2C70                                             ; +0x1d, 0x1005bb40d\nlea     rdi, [rbp+var_30]                                              ; +0x24, 0x1005bb414\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x28, 0x1005bb418\ntest    byte ptr [r12], 1                                              ; +0x2d, 0x1005bb41d\njnz     short loc_1005BB429                                            ; +0x32, 0x1005bb422\ninc     r12                                                            ; +0x34, 0x1005bb424\njmp     short loc_1005BB42E                                            ; +0x37, 0x1005bb427\nmov     r12, [r12+10h]                                                 ; +0x39, 0x1005bb429\nmov     rdi, r12                                                       ; +0x3e, 0x1005bb42e\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x41, 0x1005bb431\nmov     r12, rax                                                       ; +0x46, 0x1005bb436\nlea     r13, [rbp+var_38]                                              ; +0x49, 0x1005bb439\nlea     rsi, [rbp+var_30]                                              ; +0x4d, 0x1005bb43d\nmov     rdi, r13                                                       ; +0x51, 0x1005bb441\nmov     rdx, r15                                                       ; +0x54, 0x1005bb444\ncall    sub_10028CCE0                                                  ; +0x57, 0x1005bb447\nmov     rax, [r12]                                                     ; +0x5c, 0x1005bb44c\nmov     rdi, r12                                                       ; +0x60, 0x1005bb450\nmov     rsi, r13                                                       ; +0x63, 0x1005bb453\ncall    qword ptr [rax+0B8h]                                           ; +0x66, 0x1005bb456\nmov     rax, [r14]                                                     ; +0x6c, 0x1005bb45c\nmov     rdi, r14                                                       ; +0x6f, 0x1005bb45f\nmov     rsi, r12                                                       ; +0x72, 0x1005bb462\nmov     edx, ebx                                                       ; +0x75, 0x1005bb465\ncall    qword ptr [rax+1C0h]                                           ; +0x77, 0x1005bb467\nmov     rax, r12                                                       ; +0x7d, 0x1005bb46d\nadd     rsp, 18h                                                       ; +0x80, 0x1005bb470\npop     rbx                                                            ; +0x84, 0x1005bb474\npop     r12                                                            ; +0x85, 0x1005bb475\npop     r13                                                            ; +0x87, 0x1005bb477\npop     r14                                                            ; +0x89, 0x1005bb479\npop     r15                                                            ; +0x8b, 0x1005bb47b\npop     rbp                                                            ; +0x8d, 0x1005bb47d\nretn                                                                   ; +0x8e, 0x1005bb47e", "xrefs": [], "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"}