{"type": "func", "start": 7211972, "end": 7212312, "name": "EmoteSprite::defForName", "pseudocode": "// \n// EmoteSprite::defForName from 0x6e0bc4 to 0x6e0d18 (340 bytes)\n// \n// 4 xrefs:\n// > EmoteSprite::parseTokens @ 0x6e0e9c\n// > EmoteSprite::createWithName @ 0x6e1688\n// > EmotePickerPopup::onBuildWindowContent @ 0xcbaa14\n// > <???> @ 0x88f18\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 12:51:39 +0000\n// \n\n__int64 __fastcall EmoteSprite::defForName(char *a1)\n{\n  char v2; // w0\n  __int64 v3; // x0\n  unsigned __int64 v4; // x1\n  unsigned __int8 v5; // w3\n  unsigned __int64 v6; // x0\n  int v7; // w4\n  _BYTE *v8; // x2\n  unsigned int v9; // w1\n  char *v10; // x1\n  __int64 *v11; // x0\n  __int64 v12; // x19\n  __int64 v14; // [xsp+30h] [xbp+30h] BYREF\n  unsigned __int64 v15; // [xsp+38h] [xbp+38h]\n  void *v16; // [xsp+40h] [xbp+40h]\n\n  ensureEmotesAreLoaded();\n  v14 = 0;\n  v2 = *a1;\n  v15 = 0;\n  v16 = nullptr;\n  if ( (v2 & 1) != 0 )\n  {\n    std::string::__init(&v14, *((void **)a1 + 2), *((_QWORD *)a1 + 1));\n  }\n  else\n  {\n    v3 = *(_QWORD *)a1;\n    v4 = *((_QWORD *)a1 + 1);\n    v16 = *((void **)a1 + 2);\n    v14 = v3;\n    v15 = v4;\n  }\n  v5 = v14;\n  v6 = 0;\n  v7 = v14 & 1;\nLABEL_4:\n  while ( !v7 )\n  {\n    if ( v6 >= v5 >> 1 )\n      goto LABEL_14;\n    v10 = (char *)&v14 + v6++;\n    v8 = (char *)&v14 + v6;\n    v9 = (unsigned __int8)v10[1];\n    if ( v9 > 0x40 && v9 <= 0x5A )\n    {\nLABEL_11:\n      *v8 = v9 + 32;\n      v5 = v14;\n      v7 = v14 & 1;\n    }\n  }\n  while ( v6 < v15 )\n  {\n    v8 = (char *)v16 + v6;\n    v9 = *((unsigned __int8 *)v16 + v6);\n    if ( v9 > 0x40 )\n    {\n      ++v6;\n      if ( v9 > 0x5A )\n        goto LABEL_4;\n      goto LABEL_11;\n    }\n    ++v6;\n  }\nLABEL_14:\n  v11 = std::__tree<std::__value_type<std::string,EmoteDef const*>,std::__map_value_compare<std::string,std::__value_type<std::string,EmoteDef const*>,std::less<std::string>,true>,std::allocator<std::__value_type<std::string,EmoteDef const*>>>::find<std::string>(\n          (__int64)&qword_155C2F8,\n          (__int64)&v14);\n  if ( v11 == &qword_155C300 )\n    v12 = 0;\n  else\n    v12 = v11[7];\n  if ( (v14 & 1) != 0 )\n    operator delete(v16);\n  return v12;\n}", "assembly": "; \n; EmoteSprite::defForName from 0x6e0bc4 to 0x6e0d18 (340 bytes)\n; \n; 4 xrefs:\n; > EmoteSprite::parseTokens @ 0x6e0e9c\n; > EmoteSprite::createWithName @ 0x6e1688\n; > EmotePickerPopup::onBuildWindowContent @ 0xcbaa14\n; > <???> @ 0x88f18\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 12:51:39 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6e0bc4\nMOV             X29, SP                                                ; +0x4, 0x6e0bc8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6e0bcc\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6e0bd0\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x6e0bd4\nMOV             X21, X0                                                ; +0x14, 0x6e0bd8\nADD             X19, X29, #0x50+var_20                                 ; +0x18, 0x6e0bdc\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6e0be0\nLDR             X0, [X0]                                               ; +0x20, 0x6e0be4\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x24, 0x6e0be8\nBL              ensureEmotesAreLoaded                                  ; +0x28, 0x6e0bec\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x2c, 0x6e0bf0\nLDRB            W0, [X21]                                              ; +0x30, 0x6e0bf4\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x34, 0x6e0bf8\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x38, 0x6e0bfc\nTBNZ            W0, #0, loc_6E0CF8                                     ; +0x3c, 0x6e0c00\nLDP             X0, X1, [X21]                                          ; +0x40, 0x6e0c04\nLDR             X2, [X21,#0x10]                                        ; +0x44, 0x6e0c08\nSTR             X2, [X29,#0x50+var_10]                                 ; +0x48, 0x6e0c0c\nSTP             X0, X1, [X29,#0x50+var_20]                             ; +0x4c, 0x6e0c10\nLDRB            W3, [X29,#0x50+var_20]                                 ; +0x50, 0x6e0c14\nMOV             X0, #0                                                 ; +0x54, 0x6e0c18\nAND             W4, W3, #1                                             ; +0x58, 0x6e0c1c\nCBZ             W4, loc_6E0C4C                                         ; +0x5c, 0x6e0c20\nLDR             X1, [X19,#8]                                           ; +0x60, 0x6e0c24\nCMP             X0, X1                                                 ; +0x64, 0x6e0c28\nB.CS            loc_6E0C9C                                             ; +0x68, 0x6e0c2c\nLDR             X1, [X19,#0x10]                                        ; +0x6c, 0x6e0c30\nADD             X2, X1, X0                                             ; +0x70, 0x6e0c34\nLDRB            W1, [X1,X0]                                            ; +0x74, 0x6e0c38\nCMP             W1, #0x40 ; '@'                                        ; +0x78, 0x6e0c3c\nB.HI            loc_6E0C8C                                             ; +0x7c, 0x6e0c40\nADD             X0, X0, #1                                             ; +0x80, 0x6e0c44\nCBNZ            W4, loc_6E0C24                                         ; +0x84, 0x6e0c48\nUBFX            X1, X3, #1, #7                                         ; +0x88, 0x6e0c4c\nCMP             X0, X1                                                 ; +0x8c, 0x6e0c50\nB.CS            loc_6E0C9C                                             ; +0x90, 0x6e0c54\nADD             X1, X19, X0                                            ; +0x94, 0x6e0c58\nADD             X0, X0, #1                                             ; +0x98, 0x6e0c5c\nADD             X2, X19, X0                                            ; +0x9c, 0x6e0c60\nLDRB            W1, [X1,#1]                                            ; +0xa0, 0x6e0c64\nCMP             W1, #0x40 ; '@'                                        ; +0xa4, 0x6e0c68\nB.LS            loc_6E0C20                                             ; +0xa8, 0x6e0c6c\nCMP             W1, #0x5A ; 'Z'                                        ; +0xac, 0x6e0c70\nB.HI            loc_6E0C20                                             ; +0xb0, 0x6e0c74\nADD             W1, W1, #0x20 ; ' '                                    ; +0xb4, 0x6e0c78\nSTRB            W1, [X2]                                               ; +0xb8, 0x6e0c7c\nLDRB            W3, [X19]                                              ; +0xbc, 0x6e0c80\nAND             W4, W3, #1                                             ; +0xc0, 0x6e0c84\nB               loc_6E0C20                                             ; +0xc4, 0x6e0c88\nCMP             W1, #0x5A ; 'Z'                                        ; +0xc8, 0x6e0c8c\nADD             X0, X0, #1                                             ; +0xcc, 0x6e0c90\nB.HI            loc_6E0C20                                             ; +0xd0, 0x6e0c94\nB               loc_6E0C78                                             ; +0xd4, 0x6e0c98\nMOV             X1, X19                                                ; +0xd8, 0x6e0c9c\nADRL            X19, qword_155C2E0                                     ; +0xdc, 0x6e0ca0\nADD             X0, X19, #(qword_155C2F8 - 0x155C2E0)                  ; +0xe4, 0x6e0ca8\nADD             X19, X19, #(qword_155C300 - 0x155C2E0)                 ; +0xe8, 0x6e0cac\nBL              _ZNSt6__ndk16__treeINS_12__value_typeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPK8EmoteDefEENS_19__map_value_compareIS7_SB_NS_4lessIS7_EELb1EEENS5_ISB_EEE4findIS7_EENS_15__tree_iteratorISB_PNS_11__tree_nodeISB_PvEElEERKT_; std::__tree<std::__value_type<std::string,EmoteDef const*>,std::__map_value_compare<std::string,std::__value_type<std::string,EmoteDef const*>,std::less<std::string>,true>,std::allocator<std::__value_type<std::string,EmoteDef const*>>>::find<std::string>(std::string const&) ; +0xec, 0x6e0cb0\nCMP             X0, X19                                                ; +0xf0, 0x6e0cb4\nB.EQ            loc_6E0D0C                                             ; +0xf4, 0x6e0cb8\nLDR             X19, [X0,#0x38]                                        ; +0xf8, 0x6e0cbc\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0xfc, 0x6e0cc0\nTBZ             W0, #0, loc_6E0CD0                                     ; +0x100, 0x6e0cc4\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x104, 0x6e0cc8\nBL              _ZdlPv; operator delete(void *)                        ; +0x108, 0x6e0ccc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x10c, 0x6e0cd0\nMOV             X0, X19                                                ; +0x110, 0x6e0cd4\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x114, 0x6e0cd8\nLDR             X1, [X20]                                              ; +0x118, 0x6e0cdc\nCMP             X2, X1                                                 ; +0x11c, 0x6e0ce0\nB.NE            loc_6E0D14                                             ; +0x120, 0x6e0ce4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x124, 0x6e0ce8\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x128, 0x6e0cec\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x12c, 0x6e0cf0\nRET                                                                    ; +0x130, 0x6e0cf4\nLDR             X1, [X21,#0x10]                                        ; +0x134, 0x6e0cf8\nMOV             X0, X19                                                ; +0x138, 0x6e0cfc\nLDR             X2, [X21,#8]                                           ; +0x13c, 0x6e0d00\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x140, 0x6e0d04\nB               loc_6E0C14                                             ; +0x144, 0x6e0d08\nMOV             X19, #0                                                ; +0x148, 0x6e0d0c\nB               loc_6E0CC0                                             ; +0x14c, 0x6e0d10\nBL              .__stack_chk_fail                                      ; +0x150, 0x6e0d14", "xrefs": ["EmoteSprite::parseTokens @ 0x6e0e9c", "EmoteSprite::createWithName @ 0x6e1688", "EmotePickerPopup::onBuildWindowContent @ 0xcbaa14", "<???> @ 0x88f18"], "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"}