{"type": "func", "start": 4301731520, "end": 4301731610, "name": "GameObject::createWithFrame", "pseudocode": "// \n// GameObject::createWithFrame from 0x1006736c0 to 0x10067371a (90 bytes)\n// \n// 8 xrefs:\n// > PlayLayer::addObject @ 0x10007f732\n// > PlayLayer::addObject @ 0x10007fda1\n// > PlayLayer::createCheckpoint @ 0x100089348\n// > PlayLayer::loadPersistentCheckpoint @ 0x10008be58\n// > LevelPage::addSecretCoin @ 0x1004219aa\n// > EditorUI::alignObjectsOnAxis @ 0x100610e35\n// > EditorUI::alignObjects @ 0x1006113d1\n// > GameObject::createWithKey @ 0x10066edc2\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 12:35:02 +0000\n// \n\n_BYTE *__fastcall GameObject::createWithFrame(__int64 a1, double a2)\n{\n  _BYTE *v2; // rbx\n\n  v2 = operator new(0x548u);\n  GameObject::GameObject((__int64)v2);\n  if ( (unsigned __int8)CCSpritePlus::initWithSpriteFrameName((__int64)v2, a1, a2) )\n  {\n    GameObject::commonSetup(v2);\n    v2[313] = 1;\n    cocos2d::CCObject::autorelease((__int64)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; GameObject::createWithFrame from 0x1006736c0 to 0x10067371a (90 bytes)\n; \n; 8 xrefs:\n; > PlayLayer::addObject @ 0x10007f732\n; > PlayLayer::addObject @ 0x10007fda1\n; > PlayLayer::createCheckpoint @ 0x100089348\n; > PlayLayer::loadPersistentCheckpoint @ 0x10008be58\n; > LevelPage::addSecretCoin @ 0x1004219aa\n; > EditorUI::alignObjectsOnAxis @ 0x100610e35\n; > EditorUI::alignObjects @ 0x1006113d1\n; > GameObject::createWithKey @ 0x10066edc2\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 12:35:02 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006736c0\nmov     rbp, rsp                                                       ; +0x1, 0x1006736c1\npush    r14                                                            ; +0x4, 0x1006736c4\npush    rbx                                                            ; +0x6, 0x1006736c6\nmov     r14, rdi                                                       ; +0x7, 0x1006736c7\nmov     edi, 548h; __sz                                                ; +0xa, 0x1006736ca\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1006736cf\nmov     rbx, rax                                                       ; +0x14, 0x1006736d4\nmov     rdi, rax                                                       ; +0x17, 0x1006736d7\ncall    GameObject__GameObject                                         ; +0x1a, 0x1006736da\nmov     rdi, rbx                                                       ; +0x1f, 0x1006736df\nmov     rsi, r14                                                       ; +0x22, 0x1006736e2\ncall    CCSpritePlus__initWithSpriteFrameName                          ; +0x25, 0x1006736e5\ntest    al, al                                                         ; +0x2a, 0x1006736ea\njz      short loc_100673707                                            ; +0x2c, 0x1006736ec\nmov     rdi, rbx                                                       ; +0x2e, 0x1006736ee\ncall    GameObject__commonSetup                                        ; +0x31, 0x1006736f1\nmov     byte ptr [rbx+139h], 1                                         ; +0x36, 0x1006736f6\nmov     rdi, rbx                                                       ; +0x3d, 0x1006736fd\ncall    cocos2d__CCObject__autorelease                                 ; +0x40, 0x100673700\njmp     short loc_100673712                                            ; +0x45, 0x100673705\nmov     rax, [rbx]                                                     ; +0x47, 0x100673707\nmov     rdi, rbx                                                       ; +0x4a, 0x10067370a\ncall    qword ptr [rax+10h]                                            ; +0x4d, 0x10067370d\nxor     ebx, ebx                                                       ; +0x50, 0x100673710\nmov     rax, rbx                                                       ; +0x52, 0x100673712\npop     rbx                                                            ; +0x55, 0x100673715\npop     r14                                                            ; +0x56, 0x100673716\npop     rbp                                                            ; +0x58, 0x100673718\nretn                                                                   ; +0x59, 0x100673719", "xrefs": ["PlayLayer::addObject @ 0x10007f732", "PlayLayer::addObject @ 0x10007fda1", "PlayLayer::createCheckpoint @ 0x100089348", "PlayLayer::loadPersistentCheckpoint @ 0x10008be58", "LevelPage::addSecretCoin @ 0x1004219aa", "EditorUI::alignObjectsOnAxis @ 0x100610e35", "EditorUI::alignObjects @ 0x1006113d1", "GameObject::createWithKey @ 0x10066edc2"], "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"}