{"type": "func", "start": 5371375008, "end": 5371375140, "name": "GameObject::createWithFrame", "pseudocode": "// \n// GameObject::createWithFrame from 0x14028ada0 to 0x14028ae24 (132 bytes)\n// \n// 4 xrefs:\n// > GameObject::createWithKey @ 0x1402893dc\n// > PlayLayer::addObject @ 0x14050ccf7\n// > PlayLayer::addObject @ 0x14050d10f\n// > <???> @ 0x14091d240\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 11:29:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall GameObject::createWithFrame(const char *a1)\n{\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  void *v5; // [rsp+38h] [rbp+10h]\n\n  v5 = operator new(0x550u);\n  v2 = (cocos2d::CCObject *)GameObject::GameObject((__int64)v5);\n  v3 = v2;\n  if ( v2 )\n  {\n    *((_DWORD *)v2 + 7) = 13;\n    if ( cocos2d::CCSprite::initWithSpriteFrameName(v2, a1) )\n    {\n      GameObject::commonSetup(v3);\n      *((_BYTE *)v3 + 313) = 1;\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; GameObject::createWithFrame from 0x14028ada0 to 0x14028ae24 (132 bytes)\n; \n; 4 xrefs:\n; > GameObject::createWithKey @ 0x1402893dc\n; > PlayLayer::addObject @ 0x14050ccf7\n; > PlayLayer::addObject @ 0x14050d10f\n; > <???> @ 0x14091d240\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 11:29:04 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14028ada0\npush    rdi                                                            ; +0x5, 0x14028ada5\nsub     rsp, 20h                                                       ; +0x6, 0x14028ada6\nmov     rdi, rcx                                                       ; +0xa, 0x14028adaa\nmov     ecx, 550h; Size                                                ; +0xd, 0x14028adad\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x14028adb2\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x14028adb7\nmov     rcx, rax                                                       ; +0x1c, 0x14028adbc\ncall    GameObject__GameObject                                         ; +0x1f, 0x14028adbf\nmov     rbx, rax                                                       ; +0x24, 0x14028adc4\ntest    rax, rax                                                       ; +0x27, 0x14028adc7\njz      short loc_14028AE16                                            ; +0x2a, 0x14028adca\nmov     dword ptr [rax+1Ch], 0Dh                                       ; +0x2c, 0x14028adcc\nmov     rdx, rdi                                                       ; +0x33, 0x14028add3\nmov     rcx, rax                                                       ; +0x36, 0x14028add6\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x39, 0x14028add9\nmov     rcx, rbx                                                       ; +0x3f, 0x14028addf\ntest    al, al                                                         ; +0x42, 0x14028ade2\njz      short loc_14028AE09                                            ; +0x44, 0x14028ade4\ncall    GameObject__commonSetup                                        ; +0x46, 0x14028ade6\nmov     byte ptr [rbx+139h], 1                                         ; +0x4b, 0x14028adeb\nmov     rcx, rbx                                                       ; +0x52, 0x14028adf2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x55, 0x14028adf5\nmov     rax, rbx                                                       ; +0x5b, 0x14028adfb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5e, 0x14028adfe\nadd     rsp, 20h                                                       ; +0x63, 0x14028ae03\npop     rdi                                                            ; +0x67, 0x14028ae07\nretn                                                                   ; +0x68, 0x14028ae08\nmov     rax, [rbx]                                                     ; +0x69, 0x14028ae09\nmov     edx, 1                                                         ; +0x6c, 0x14028ae0c\ncall    qword ptr [rax+8]                                              ; +0x71, 0x14028ae11\nxor     ebx, ebx                                                       ; +0x74, 0x14028ae14\nmov     rax, rbx                                                       ; +0x76, 0x14028ae16\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x79, 0x14028ae19\nadd     rsp, 20h                                                       ; +0x7e, 0x14028ae1e\npop     rdi                                                            ; +0x82, 0x14028ae22\nretn                                                                   ; +0x83, 0x14028ae23", "xrefs": ["GameObject::createWithKey @ 0x1402893dc", "PlayLayer::addObject @ 0x14050ccf7", "PlayLayer::addObject @ 0x14050d10f", "<???> @ 0x14091d240"], "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"}