{"type": "func", "start": 4298859544, "end": 4298859684, "name": "GameManager::addNewCustomObject", "pseudocode": "// \n// GameManager::addNewCustomObject from 0x1003b6418 to 0x1003b64a4 (140 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onNewCustomItem @ 0x100187eb0\n// \n// This function is hookable on this platform (idp: arm, 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:03:56 +0000\n// \n\n__int64 __fastcall GameManager::addNewCustomObject(__int64 a1, __int128 *a2)\n{\n  __int64 v4; // x19\n  __int64 v5; // x21\n  void *v6; // x20\n  void *v7; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v11; // [xsp+1Fh] [xbp-21h]\n\n  v4 = sub_1003B6288(a1);\n  v5 = *(_QWORD *)(a1 + 456);\n  v6 = sub_1003064AC(a2);\n  v7 = sub_1003065B0(\"%i\", v4);\n  CString = (char *)cocos2d::CCString::getCString((__int64)v7);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject(v5, v6, __p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  return v4;\n}", "assembly": "; \n; GameManager::addNewCustomObject from 0x1003b6418 to 0x1003b64a4 (140 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onNewCustomItem @ 0x100187eb0\n; \n; This function is hookable on this platform (idp: arm, 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:03:56 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1003b6418\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1003b641c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1003b6420\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1003b6424\nADD             X29, SP, #0x40                                         ; +0x10, 0x1003b6428\nMOV             X20, X1                                                ; +0x14, 0x1003b642c\nMOV             X21, X0                                                ; +0x18, 0x1003b6430\nBL              sub_1003B6288                                          ; +0x1c, 0x1003b6434\nMOV             X19, X0                                                ; +0x20, 0x1003b6438\nLDR             X21, [X21,#0x1C8]                                      ; +0x24, 0x1003b643c\nMOV             X0, X20                                                ; +0x28, 0x1003b6440\nBL              sub_1003064AC                                          ; +0x2c, 0x1003b6444\nMOV             X20, X0                                                ; +0x30, 0x1003b6448\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x34, 0x1003b644c\nADRL            X0, aI; \"%i\"                                           ; +0x38, 0x1003b6450\nBL              sub_1003065B0                                          ; +0x40, 0x1003b6458\nBL              cocos2d__CCString__getCString                          ; +0x44, 0x1003b645c\nMOV             X1, X0; __s                                            ; +0x48, 0x1003b6460\nADD             X0, SP, #0x40+__p; int                                 ; +0x4c, 0x1003b6464\nBL              sub_100009900                                          ; +0x50, 0x1003b6468\nADD             X2, SP, #0x40+__p                                      ; +0x54, 0x1003b646c\nMOV             X0, X21                                                ; +0x58, 0x1003b6470\nMOV             X1, X20                                                ; +0x5c, 0x1003b6474\nBL              cocos2d__CCDictionary__setObject                       ; +0x60, 0x1003b6478\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x64, 0x1003b647c\nTBZ             W8, #0x1F, loc_1003B648C                               ; +0x68, 0x1003b6480\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x6c, 0x1003b6484\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x1003b6488\nMOV             X0, X19                                                ; +0x74, 0x1003b648c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x78, 0x1003b6490\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x7c, 0x1003b6494\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x80, 0x1003b6498\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x84, 0x1003b649c\nRET                                                                    ; +0x88, 0x1003b64a0", "xrefs": ["EditorUI::onNewCustomItem @ 0x100187eb0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}