{"type": "func", "start": 4298216512, "end": 4298216656, "name": "GameManager::stringForCustomObject", "pseudocode": "// \n// GameManager::stringForCustomObject from 0x100319440 to 0x1003194d0 (144 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createCustomItems @ 0x1003e8c90\n// > EditorUI::onCreateObject @ 0x1003eb684\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_QWORD *__usercall GameManager::stringForCustomObject@<X0>(__int64 a1@<X0>, int a2@<W1>, _QWORD *a3@<X8>)\n{\n  __int64 v4; // x20\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  __int64 v7; // x0\n  cocos2d::CCString *v8; // x20\n  char *v9; // x1\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v12; // [xsp+1Fh] [xbp-11h]\n\n  v4 = *(_QWORD *)(a1 + 416);\n  v5 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v5);\n  sub_100009900(__p, CString);\n  v7 = cocos2d::CCDictionary::objectForKey_1(v4, __p);\n  v8 = (cocos2d::CCString *)v7;\n  if ( v12 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v8 )\n      goto LABEL_3;\nLABEL_5:\n    v9 = \"\";\n    return sub_100009900(a3, v9);\n  }\n  if ( !v7 )\n    goto LABEL_5;\nLABEL_3:\n  v9 = (char *)cocos2d::CCString::getCString(v8);\n  return sub_100009900(a3, v9);\n}", "assembly": "; \n; GameManager::stringForCustomObject from 0x100319440 to 0x1003194d0 (144 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createCustomItems @ 0x1003e8c90\n; > EditorUI::onCreateObject @ 0x1003eb684\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, #0x40                                          ; +0x0, 0x100319440\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100319444\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100319448\nADD             X29, SP, #0x30                                         ; +0xc, 0x10031944c\nMOV             X19, X8                                                ; +0x10, 0x100319450\nLDR             X20, [X0,#0x1A0]                                       ; +0x14, 0x100319454\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x18, 0x100319458\nADRL            X0, aI; \"%i\"                                           ; +0x1c, 0x10031945c\nBL              sub_100268F4C                                          ; +0x24, 0x100319464\nBL              cocos2d__CCString__getCString                          ; +0x28, 0x100319468\nMOV             X1, X0; __s                                            ; +0x2c, 0x10031946c\nADD             X0, SP, #0x30+__p; int                                 ; +0x30, 0x100319470\nBL              sub_100009900                                          ; +0x34, 0x100319474\nADD             X1, SP, #0x30+__p                                      ; +0x38, 0x100319478\nMOV             X0, X20                                                ; +0x3c, 0x10031947c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x40, 0x100319480\nMOV             X20, X0                                                ; +0x44, 0x100319484\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x48, 0x100319488\nTBNZ            W8, #0x1F, loc_1003194A4                               ; +0x4c, 0x10031948c\nCBZ             X20, loc_1003194B0                                     ; +0x50, 0x100319490\nMOV             X0, X20                                                ; +0x54, 0x100319494\nBL              cocos2d__CCString__getCString                          ; +0x58, 0x100319498\nMOV             X1, X0                                                 ; +0x5c, 0x10031949c\nB               loc_1003194B8                                          ; +0x60, 0x1003194a0\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x64, 0x1003194a4\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x1003194a8\nCBNZ            X20, loc_100319494                                     ; +0x6c, 0x1003194ac\nADRL            X1, asc_100746688; \"\"                                  ; +0x70, 0x1003194b0\nMOV             X0, X19; int                                           ; +0x78, 0x1003194b8\nBL              sub_100009900                                          ; +0x7c, 0x1003194bc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x80, 0x1003194c0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x84, 0x1003194c4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x88, 0x1003194c8\nRET                                                                    ; +0x8c, 0x1003194cc", "xrefs": ["EditorUI::createCustomItems @ 0x1003e8c90", "EditorUI::onCreateObject @ 0x1003eb684"], "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"}