{"type": "func", "start": 4298859712, "end": 4298859856, "name": "GameManager::stringForCustomObject", "pseudocode": "// \n// GameManager::stringForCustomObject from 0x1003b64c0 to 0x1003b6550 (144 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createCustomItems @ 0x100184928\n// > EditorUI::onCreateObject @ 0x100477460\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_QWORD *__usercall GameManager::stringForCustomObject@<X0>(__int64 a1@<X0>, int a2@<W1>, _QWORD *a3@<X8>)\n{\n  __int64 v4; // x20\n  void *v5; // x0\n  char *CString; // x0\n  __int64 v7; // x0\n  __int64 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 + 456);\n  v5 = sub_1003065B0(\"%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString((__int64)v5);\n  sub_100009900(__p, CString);\n  v7 = cocos2d::CCDictionary::objectForKey(v4, __p);\n  v8 = 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 0x1003b64c0 to 0x1003b6550 (144 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createCustomItems @ 0x100184928\n; > EditorUI::onCreateObject @ 0x100477460\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, #0x40                                          ; +0x0, 0x1003b64c0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003b64c4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003b64c8\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003b64cc\nMOV             X19, X8                                                ; +0x10, 0x1003b64d0\nLDR             X20, [X0,#0x1C8]                                       ; +0x14, 0x1003b64d4\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x18, 0x1003b64d8\nADRL            X0, aI; \"%i\"                                           ; +0x1c, 0x1003b64dc\nBL              sub_1003065B0                                          ; +0x24, 0x1003b64e4\nBL              cocos2d__CCString__getCString                          ; +0x28, 0x1003b64e8\nMOV             X1, X0; __s                                            ; +0x2c, 0x1003b64ec\nADD             X0, SP, #0x30+__p; int                                 ; +0x30, 0x1003b64f0\nBL              sub_100009900                                          ; +0x34, 0x1003b64f4\nADD             X1, SP, #0x30+__p                                      ; +0x38, 0x1003b64f8\nMOV             X0, X20                                                ; +0x3c, 0x1003b64fc\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x40, 0x1003b6500\nMOV             X20, X0                                                ; +0x44, 0x1003b6504\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x48, 0x1003b6508\nTBNZ            W8, #0x1F, loc_1003B6524                               ; +0x4c, 0x1003b650c\nCBZ             X20, loc_1003B6530                                     ; +0x50, 0x1003b6510\nMOV             X0, X20                                                ; +0x54, 0x1003b6514\nBL              cocos2d__CCString__getCString                          ; +0x58, 0x1003b6518\nMOV             X1, X0                                                 ; +0x5c, 0x1003b651c\nB               loc_1003B6538                                          ; +0x60, 0x1003b6520\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x64, 0x1003b6524\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x1003b6528\nCBNZ            X20, loc_1003B6514                                     ; +0x6c, 0x1003b652c\nADRL            X1, asc_10088BE68; \"\"                                  ; +0x70, 0x1003b6530\nMOV             X0, X19; int                                           ; +0x78, 0x1003b6538\nBL              sub_100009900                                          ; +0x7c, 0x1003b653c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x80, 0x1003b6540\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x84, 0x1003b6544\nADD             SP, SP, #0x40 ; '@'                                    ; +0x88, 0x1003b6548\nRET                                                                    ; +0x8c, 0x1003b654c", "xrefs": ["EditorUI::createCustomItems @ 0x100184928", "EditorUI::onCreateObject @ 0x100477460"], "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"}