{"type": "func", "start": 11833528, "end": 11833984, "name": "DS_Dictionary::vec2FromString", "pseudocode": "// \n// DS_Dictionary::vec2FromString from 0xb490b8 to 0xb49280 (456 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::getVec2ArrayForKey @ 0xb49310\n// > DS_Dictionary::getVec2ArrayForKey @ 0xb49404\n// > <???> @ 0x34110\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\nbool __fastcall DS_Dictionary::vec2FromString(DS_Dictionary *a1, __int64 a2, cocos2d::CCPoint *a3)\n{\n  _BOOL4 v5; // w19\n  _BOOL4 v6; // w24\n  void *v7; // x0\n  std::string *m_start; // x19\n  std::string *m_finish; // x20\n  stl::StringData<char>::Internal *m_data; // x1\n  __int64 *v11; // x0\n  unsigned int *v12; // x1\n  int v13; // w2\n  double v15; // d8\n  float v16; // s1\n  float v17; // s0\n  float v18; // s0\n  float v19; // s1\n  unsigned int *v20; // x1\n  int v21; // w2\n  cocos2d::CCPoint v22; // [xsp+58h] [xbp+58h] BYREF\n  std::vector<std::string> v23; // [xsp+60h] [xbp+60h] BYREF\n\n  memset(&v23, 0, sizeof(v23));\n  DS_Dictionary::cleanStringWhiteSpace((unsigned __int8 **)&v22);\n  v5 = DS_Dictionary::splitWithForm(a1, (std::string *const)&v22, &v23);\n  v6 = v5;\n  v7 = (void *)(*(_QWORD *)&v22 - 24LL);\n  if ( (__int64 *)(*(_QWORD *)&v22 - 24LL) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v20 = (unsigned int *)(*(_QWORD *)&v22 - 8LL);\n      do\n        v21 = __ldaxr(v20);\n      while ( __stlxr(v21 - 1, v20) );\n    }\n    else\n    {\n      v21 = *(_DWORD *)(*(_QWORD *)&v22 - 8LL);\n      *(_DWORD *)(*(_QWORD *)&v22 - 8LL) = v21 - 1;\n    }\n    if ( v21 <= 0 )\n      operator delete(v7);\n  }\n  if ( v5 )\n  {\n    v15 = atof((const char *)v23.m_start->m_data.m_data);\n    v16 = atof((const char *)v23.m_start[1].m_data.m_data);\n    v17 = v15;\n    cocos2d::CCPoint::CCPoint(&v22, v17, v16);\n    cocos2d::CCPoint::operator=(a3, v18, v19, (float *)&v22);\n  }\n  m_start = v23.m_start;\n  m_finish = v23.m_finish;\n  if ( v23.m_start != v23.m_finish )\n  {\n    do\n    {\n      while ( 1 )\n      {\n        m_data = m_start->m_data.m_data;\n        v11 = (__int64 *)((char *)m_start->m_data.m_data - 24);\n        if ( v11 != &qword_124B6B0 )\n        {\n          if ( &pthread_create )\n          {\n            v12 = (unsigned int *)((char *)m_data - 8);\n            do\n              v13 = __ldaxr(v12);\n            while ( __stlxr(v13 - 1, v12) );\n          }\n          else\n          {\n            v13 = *((_DWORD *)m_data - 2);\n            *((_DWORD *)m_data - 2) = v13 - 1;\n          }\n          if ( v13 <= 0 )\n            break;\n        }\n        if ( m_finish == ++m_start )\n          goto LABEL_13;\n      }\n      ++m_start;\n      operator delete(v11);\n    }\n    while ( m_finish != m_start );\nLABEL_13:\n    m_finish = v23.m_start;\n  }\n  if ( m_finish )\n    operator delete(m_finish);\n  return v6;\n}", "assembly": "; \n; DS_Dictionary::vec2FromString from 0xb490b8 to 0xb49280 (456 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::getVec2ArrayForKey @ 0xb49310\n; > DS_Dictionary::getVec2ArrayForKey @ 0xb49404\n; > <???> @ 0x34110\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\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xb490b8\nMOV             X29, SP                                                ; +0x4, 0xb490bc\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x8, 0xb490c0\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb490c4\nSTR             X25, [SP,#0x80+var_40]                                 ; +0x10, 0xb490c8\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x14, 0xb490cc\nMOV             X20, X2                                                ; +0x18, 0xb490d0\nMOV             X19, X0                                                ; +0x1c, 0xb490d4\nLDR             X2, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xb490d8\nADRP            X21, #off_122EFE8@PAGE                                 ; +0x24, 0xb490dc\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x28, 0xb490e0\nADD             X23, X29, #0x80+var_28                                 ; +0x2c, 0xb490e4\nSTR             XZR, [X29,#0x80+var_20]                                ; +0x30, 0xb490e8\nLDR             X2, [X2]                                               ; +0x34, 0xb490ec\nMOV             X8, X23                                                ; +0x38, 0xb490f0\nSTR             D8, [SP,#0x80+var_38]                                  ; +0x3c, 0xb490f4\nSTR             X2, [X29,#0x80+var_8]                                  ; +0x40, 0xb490f8\nSTR             XZR, [X29,#0x80+p]                                     ; +0x44, 0xb490fc\nSTR             XZR, [X29,#0x80+var_10]                                ; +0x48, 0xb49100\nBL              _ZN13DS_Dictionary21cleanStringWhiteSpaceERKSs; DS_Dictionary::cleanStringWhiteSpace(std::string const&) ; +0x4c, 0xb49104\nMOV             X0, X19                                                ; +0x50, 0xb49108\nMOV             X1, X23                                                ; +0x54, 0xb4910c\nADD             X2, X29, #0x80+var_20                                  ; +0x58, 0xb49110\nBL              _ZN13DS_Dictionary13splitWithFormERKSsRSt6vectorISsSaISsEE; DS_Dictionary::splitWithForm(std::string const&,std::vector<std::string> &) ; +0x5c, 0xb49114\nUXTB            W19, W0                                                ; +0x60, 0xb49118\nLDR             X1, [X29,#0x80+var_28]                                 ; +0x64, 0xb4911c\nMOV             W24, W19                                               ; +0x68, 0xb49120\nLDR             X2, [X21,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0x6c, 0xb49124\nSUB             X0, X1, #0x18; p                                       ; +0x70, 0xb49128\nCMP             X0, X2                                                 ; +0x74, 0xb4912c\nB.NE            loc_B49238                                             ; +0x78, 0xb49130\nCBNZ            W19, loc_B491FC                                        ; +0x7c, 0xb49134\nLDR             X19, [X29,#0x80+var_20]                                ; +0x80, 0xb49138\nLDR             X20, [X29,#0x80+p]                                     ; +0x84, 0xb4913c\nCMP             X19, X20                                               ; +0x88, 0xb49140\nB.EQ            loc_B491AC                                             ; +0x8c, 0xb49144\nADRP            X25, #pthread_create_ptr_0@PAGE                        ; +0x90, 0xb49148\nB               loc_B4915C                                             ; +0x94, 0xb4914c\nADD             X19, X19, #8                                           ; +0x98, 0xb49150\nCMP             X20, X19                                               ; +0x9c, 0xb49154\nB.EQ            loc_B491A8                                             ; +0xa0, 0xb49158\nLDR             X1, [X19]                                              ; +0xa4, 0xb4915c\nLDR             X2, [X21,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0xa8, 0xb49160\nSUB             X0, X1, #0x18; p                                       ; +0xac, 0xb49164\nCMP             X0, X2                                                 ; +0xb0, 0xb49168\nB.EQ            loc_B49150                                             ; +0xb4, 0xb4916c\nLDR             X2, [X25,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb8, 0xb49170\nCBZ             X2, loc_B491EC                                         ; +0xbc, 0xb49174\nSUB             X1, X1, #8                                             ; +0xc0, 0xb49178\nLDAXR           W2, [X1]                                               ; +0xc4, 0xb4917c\nSUB             W3, W2, #1                                             ; +0xc8, 0xb49180\nSTLXR           W4, W3, [X1]                                           ; +0xcc, 0xb49184\nCBNZ            W4, loc_B4917C                                         ; +0xd0, 0xb49188\nCMP             W2, WZR                                                ; +0xd4, 0xb4918c\nB.GT            loc_B49150                                             ; +0xd8, 0xb49190\nMOV             X1, X23                                                ; +0xdc, 0xb49194\nADD             X19, X19, #8                                           ; +0xe0, 0xb49198\nBL              j__ZdlPv; operator delete(void *)                      ; +0xe4, 0xb4919c\nCMP             X20, X19                                               ; +0xe8, 0xb491a0\nB.NE            loc_B4915C                                             ; +0xec, 0xb491a4\nLDR             X20, [X29,#0x80+var_20]                                ; +0xf0, 0xb491a8\nCBZ             X20, loc_B491B8                                        ; +0xf4, 0xb491ac\nMOV             X0, X20; p                                             ; +0xf8, 0xb491b0\nBL              _ZdlPv; operator delete(void *)                        ; +0xfc, 0xb491b4\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x100, 0xb491b8\nMOV             W0, W24                                                ; +0x104, 0xb491bc\nLDR             X2, [X29,#0x80+var_8]                                  ; +0x108, 0xb491c0\nLDR             X1, [X22]                                              ; +0x10c, 0xb491c4\nCMP             X2, X1                                                 ; +0x110, 0xb491c8\nB.NE            loc_B4927C                                             ; +0x114, 0xb491cc\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x118, 0xb491d0\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x11c, 0xb491d4\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x120, 0xb491d8\nLDR             X25, [SP,#0x80+var_40]                                 ; +0x124, 0xb491dc\nLDR             D8, [SP,#0x80+var_38]                                  ; +0x128, 0xb491e0\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x12c, 0xb491e4\nRET                                                                    ; +0x130, 0xb491e8\nLDUR            W2, [X1,#-8]                                           ; +0x134, 0xb491ec\nSUB             W3, W2, #1                                             ; +0x138, 0xb491f0\nSTUR            W3, [X1,#-8]                                           ; +0x13c, 0xb491f4\nB               loc_B4918C                                             ; +0x140, 0xb491f8\nLDR             X0, [X29,#0x80+var_20]                                 ; +0x144, 0xb491fc\nLDR             X0, [X0]; char *                                       ; +0x148, 0xb49200\nBL              .atof                                                  ; +0x14c, 0xb49204\nLDR             X0, [X29,#0x80+var_20]                                 ; +0x150, 0xb49208\nFMOV            D8, D0                                                 ; +0x154, 0xb4920c\nLDR             X0, [X0,#8]; char *                                    ; +0x158, 0xb49210\nBL              .atof                                                  ; +0x15c, 0xb49214\nFCVT            S1, D0; float                                          ; +0x160, 0xb49218\nMOV             X0, X23; this                                          ; +0x164, 0xb4921c\nFCVT            S0, D8; float                                          ; +0x168, 0xb49220\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x16c, 0xb49224\nMOV             X0, X20                                                ; +0x170, 0xb49228\nMOV             X1, X23                                                ; +0x174, 0xb4922c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x178, 0xb49230\nB               loc_B49138                                             ; +0x17c, 0xb49234\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x180, 0xb49238\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x184, 0xb4923c\nCBZ             X2, loc_B4926C                                         ; +0x188, 0xb49240\nSUB             X1, X1, #8                                             ; +0x18c, 0xb49244\nLDAXR           W2, [X1]                                               ; +0x190, 0xb49248\nSUB             W3, W2, #1                                             ; +0x194, 0xb4924c\nSTLXR           W4, W3, [X1]                                           ; +0x198, 0xb49250\nCBNZ            W4, loc_B49248                                         ; +0x19c, 0xb49254\nCMP             W2, WZR                                                ; +0x1a0, 0xb49258\nB.GT            loc_B49134                                             ; +0x1a4, 0xb4925c\nADD             X1, X29, #0x80+var_30                                  ; +0x1a8, 0xb49260\nBL              j__ZdlPv; operator delete(void *)                      ; +0x1ac, 0xb49264\nB               loc_B49134                                             ; +0x1b0, 0xb49268\nLDUR            W2, [X1,#-8]                                           ; +0x1b4, 0xb4926c\nSUB             W3, W2, #1                                             ; +0x1b8, 0xb49270\nSTUR            W3, [X1,#-8]                                           ; +0x1bc, 0xb49274\nB               loc_B49258                                             ; +0x1c0, 0xb49278\nBL              .__stack_chk_fail                                      ; +0x1c4, 0xb4927c", "xrefs": ["DS_Dictionary::getVec2ArrayForKey @ 0xb49310", "DS_Dictionary::getVec2ArrayForKey @ 0xb49404", "<???> @ 0x34110"], "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"}