{"type": "func", "start": 4298216344, "end": 4298216484, "name": "GameManager::addNewCustomObject", "pseudocode": "// \n// GameManager::addNewCustomObject from 0x100319398 to 0x100319424 (140 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onNewCustomItem @ 0x1003e86e0\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__int64 __fastcall GameManager::addNewCustomObject(GameManager *a1, __int128 *a2)\n{\n  __int64 NextUniqueObjectKey; // x19\n  cocos2d::CCDictionary *m_customObjectDict; // x21\n  cocos2d::CCObject *v6; // x20\n  cocos2d::CCString *v7; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v11; // [xsp+1Fh] [xbp-21h]\n\n  NextUniqueObjectKey = GameManager::getNextUniqueObjectKey(a1);\n  m_customObjectDict = a1->m_customObjectDict;\n  v6 = sub_100268E48(a2);\n  v7 = (cocos2d::CCString *)sub_100268F4C(\"%i\", NextUniqueObjectKey);\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject_1(m_customObjectDict, v6, __p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  return NextUniqueObjectKey;\n}", "assembly": "; \n; GameManager::addNewCustomObject from 0x100319398 to 0x100319424 (140 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onNewCustomItem @ 0x1003e86e0\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x100319398\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10031939c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1003193a0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1003193a4\nADD             X29, SP, #0x40                                         ; +0x10, 0x1003193a8\nMOV             X20, X1                                                ; +0x14, 0x1003193ac\nMOV             X21, X0                                                ; +0x18, 0x1003193b0\nBL              GameManager__getNextUniqueObjectKey                    ; +0x1c, 0x1003193b4\nMOV             X19, X0                                                ; +0x20, 0x1003193b8\nLDR             X21, [X21,#0x1A0]                                      ; +0x24, 0x1003193bc\nMOV             X0, X20                                                ; +0x28, 0x1003193c0\nBL              sub_100268E48                                          ; +0x2c, 0x1003193c4\nMOV             X20, X0                                                ; +0x30, 0x1003193c8\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x34, 0x1003193cc\nADRL            X0, aI; \"%i\"                                           ; +0x38, 0x1003193d0\nBL              sub_100268F4C                                          ; +0x40, 0x1003193d8\nBL              cocos2d__CCString__getCString                          ; +0x44, 0x1003193dc\nMOV             X1, X0; __s                                            ; +0x48, 0x1003193e0\nADD             X0, SP, #0x40+__p; int                                 ; +0x4c, 0x1003193e4\nBL              sub_100009900                                          ; +0x50, 0x1003193e8\nADD             X2, SP, #0x40+__p                                      ; +0x54, 0x1003193ec\nMOV             X0, X21                                                ; +0x58, 0x1003193f0\nMOV             X1, X20                                                ; +0x5c, 0x1003193f4\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x60, 0x1003193f8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x64, 0x1003193fc\nTBZ             W8, #0x1F, loc_10031940C                               ; +0x68, 0x100319400\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x6c, 0x100319404\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x100319408\nMOV             X0, X19                                                ; +0x74, 0x10031940c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x78, 0x100319410\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x7c, 0x100319414\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x80, 0x100319418\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x84, 0x10031941c\nRET                                                                    ; +0x88, 0x100319420", "xrefs": ["EditorUI::onNewCustomItem @ 0x1003e86e0"], "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"}