{"type": "func", "start": 5370338336, "end": 5370338468, "name": "GameObject::createWithFrame", "pseudocode": "// \n// GameObject::createWithFrame from 0x14018dc20 to 0x14018dca4 (132 bytes)\n// \n// 4 xrefs:\n// > GameObject::createWithKey @ 0x14018c2a3\n// > PlayLayer::addObject @ 0x1403ae325\n// > PlayLayer::addObject @ 0x1403ae7e2\n// > <???> @ 0x1406cb88c\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\nGameObject *GameObject::createWithFrame(const char *a1)\n{\n  GameObject *v2; // rax\n  GameObject *v3; // rbx\n  GameObject *v5; // [rsp+38h] [rbp+10h]\n\n  v5 = (GameObject *)operator new(0x550u);\n  v2 = GameObject::GameObject(v5);\n  v3 = v2;\n  if ( v2 )\n  {\n    v2->m_eObjType = GameObjectObjectType;\n    if ( cocos2d::CCSprite::initWithSpriteFrameName(v2, a1) )\n    {\n      GameObject::commonSetup(v3);\n      v3->m_bUnkBool2 = 1;\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    ((void (__fastcall *)(GameObject *, __int64))v3->~GameObject)(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; GameObject::createWithFrame from 0x14018dc20 to 0x14018dca4 (132 bytes)\n; \n; 4 xrefs:\n; > GameObject::createWithKey @ 0x14018c2a3\n; > PlayLayer::addObject @ 0x1403ae325\n; > PlayLayer::addObject @ 0x1403ae7e2\n; > <???> @ 0x1406cb88c\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, 0x14018dc20\npush    rdi                                                            ; +0x5, 0x14018dc25\nsub     rsp, 20h                                                       ; +0x6, 0x14018dc26\nmov     rdi, rcx                                                       ; +0xa, 0x14018dc2a\nmov     ecx, 550h; Size                                                ; +0xd, 0x14018dc2d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x14018dc32\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x14018dc37\nmov     rcx, rax                                                       ; +0x1c, 0x14018dc3c\ncall    GameObject__GameObject                                         ; +0x1f, 0x14018dc3f\nmov     rbx, rax                                                       ; +0x24, 0x14018dc44\ntest    rax, rax                                                       ; +0x27, 0x14018dc47\njz      short loc_14018DC96                                            ; +0x2a, 0x14018dc4a\nmov     dword ptr [rax+1Ch], 0Dh                                       ; +0x2c, 0x14018dc4c\nmov     rdx, rdi                                                       ; +0x33, 0x14018dc53\nmov     rcx, rax                                                       ; +0x36, 0x14018dc56\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x39, 0x14018dc59\nmov     rcx, rbx                                                       ; +0x3f, 0x14018dc5f\ntest    al, al                                                         ; +0x42, 0x14018dc62\njz      short loc_14018DC89                                            ; +0x44, 0x14018dc64\ncall    GameObject__commonSetup                                        ; +0x46, 0x14018dc66\nmov     byte ptr [rbx+139h], 1                                         ; +0x4b, 0x14018dc6b\nmov     rcx, rbx                                                       ; +0x52, 0x14018dc72\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x55, 0x14018dc75\nmov     rax, rbx                                                       ; +0x5b, 0x14018dc7b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5e, 0x14018dc7e\nadd     rsp, 20h                                                       ; +0x63, 0x14018dc83\npop     rdi                                                            ; +0x67, 0x14018dc87\nretn                                                                   ; +0x68, 0x14018dc88\nmov     rax, [rbx]                                                     ; +0x69, 0x14018dc89\nmov     edx, 1                                                         ; +0x6c, 0x14018dc8c\ncall    qword ptr [rax+8]                                              ; +0x71, 0x14018dc91\nxor     ebx, ebx                                                       ; +0x74, 0x14018dc94\nmov     rax, rbx                                                       ; +0x76, 0x14018dc96\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x79, 0x14018dc99\nadd     rsp, 20h                                                       ; +0x7e, 0x14018dc9e\npop     rdi                                                            ; +0x82, 0x14018dca2\nretn                                                                   ; +0x83, 0x14018dca3", "xrefs": ["GameObject::createWithKey @ 0x14018c2a3", "PlayLayer::addObject @ 0x1403ae325", "PlayLayer::addObject @ 0x1403ae7e2", "<???> @ 0x1406cb88c"], "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"}