{"type": "func", "start": 4297411296, "end": 4297411408, "name": "GameObject::createWithFrame", "pseudocode": "// \n// GameObject::createWithFrame from 0x100254ae0 to 0x100254b50 (112 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::addObject @ 0x100118e90\n// > PlayLayer::addObject @ 0x100119104\n// > PlayLayer::createCheckpoint @ 0x10011fbe0\n// > GameObject::createWithKey @ 0x100254874\n// > EditorUI::alignObjects @ 0x1003f7a5c\n// > LevelPage::addSecretCoin @ 0x1004033a4\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\nGameObject *__fastcall GameObject::createWithFrame(const char *a1)\n{\n  GameObject *v2; // x19\n\n  v2 = (GameObject *)operator new(0x548u);\n  GameObject::GameObject(v2);\n  if ( CCSpritePlus::initWithSpriteFrameName(v2, a1) )\n  {\n    GameObject::commonSetup(v2);\n    v2->m_bUnkBool2 = 1;\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(GameObject *))v2->~GameObject_0)(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; GameObject::createWithFrame from 0x100254ae0 to 0x100254b50 (112 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::addObject @ 0x100118e90\n; > PlayLayer::addObject @ 0x100119104\n; > PlayLayer::createCheckpoint @ 0x10011fbe0\n; > GameObject::createWithKey @ 0x100254874\n; > EditorUI::alignObjects @ 0x1003f7a5c\n; > LevelPage::addSecretCoin @ 0x1004033a4\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100254ae0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100254ae4\nADD             X29, SP, #0x10                                         ; +0x8, 0x100254ae8\nMOV             X20, X0                                                ; +0xc, 0x100254aec\nMOV             W0, #0x548; __sz                                       ; +0x10, 0x100254af0\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x100254af4\nMOV             X19, X0                                                ; +0x18, 0x100254af8\nBL              GameObject__GameObject                                 ; +0x1c, 0x100254afc\nMOV             X0, X19                                                ; +0x20, 0x100254b00\nMOV             X1, X20                                                ; +0x24, 0x100254b04\nBL              CCSpritePlus__initWithSpriteFrameName                  ; +0x28, 0x100254b08\nCBZ             W0, loc_100254B2C                                      ; +0x2c, 0x100254b0c\nMOV             X0, X19                                                ; +0x30, 0x100254b10\nBL              GameObject__commonSetup                                ; +0x34, 0x100254b14\nMOV             W8, #1                                                 ; +0x38, 0x100254b18\nSTRB            W8, [X19,#0x139]                                       ; +0x3c, 0x100254b1c\nMOV             X0, X19                                                ; +0x40, 0x100254b20\nBL              cocos2d__CCObject__autorelease                         ; +0x44, 0x100254b24\nB               loc_100254B40                                          ; +0x48, 0x100254b28\nLDR             X8, [X19]                                              ; +0x4c, 0x100254b2c\nLDR             X8, [X8,#0x10]                                         ; +0x50, 0x100254b30\nMOV             X0, X19                                                ; +0x54, 0x100254b34\nBLR             X8                                                     ; +0x58, 0x100254b38\nMOV             X19, #0                                                ; +0x5c, 0x100254b3c\nMOV             X0, X19                                                ; +0x60, 0x100254b40\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x100254b44\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x100254b48\nRET                                                                    ; +0x6c, 0x100254b4c", "xrefs": ["PlayLayer::addObject @ 0x100118e90", "PlayLayer::addObject @ 0x100119104", "PlayLayer::createCheckpoint @ 0x10011fbe0", "GameObject::createWithKey @ 0x100254874", "EditorUI::alignObjects @ 0x1003f7a5c", "LevelPage::addSecretCoin @ 0x1004033a4"], "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"}