{"type": "func", "start": 8438236, "end": 8438462, "name": "DS_Dictionary::splitWithForm", "pseudocode": "// \n// DS_Dictionary::splitWithForm from 0x80c1dc to 0x80c2be (226 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::rectFromString @ 0x80c468\n// > DS_Dictionary::rectFromString @ 0x80c488\n// > DS_Dictionary::vec2FromString @ 0x80c77c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:01:31 +0000\n// \n\nint __fastcall DS_Dictionary::splitWithForm(int a1, unsigned __int8 *a2, unsigned __int8 **a3)\n{\n  int v4; // r4\n  int v7; // r4\n  int v8; // r4\n  int v9; // r0\n  int v10; // r4\n  int v11; // r0\n  unsigned __int8 *v12; // r3\n  int v13; // r4\n  int v14; // r4\n  int v15; // r4\n  int v17[3]; // [sp+8h] [bp-14h] BYREF\n\n  v4 = *a2;\n  if ( (v4 & 1) != 0 )\n    v7 = *((_DWORD *)a2 + 1);\n  else\n    v7 = v4 >> 1;\n  if ( v7 )\n  {\n    v8 = std::string::find(a2, 123, 0);\n    v9 = std::string::find(a2, 125, 0);\n    if ( v8 == -1 || v9 == -1 || v8 > v9 )\n    {\n      return 0;\n    }\n    else\n    {\n      std::string::basic_string(v17, a2, v8 + 1, v9 - v8 - 1);\n      if ( (v17[0] & 1) != 0 )\n        v7 = v17[1];\n      else\n        v7 = (int)LOBYTE(v17[0]) >> 1;\n      if ( v7 )\n      {\n        v10 = std::string::find((unsigned __int8 *)v17, 123, 0);\n        v11 = std::string::find((unsigned __int8 *)v17, 125, 0);\n        if ( v10 == -1\n          && v11 == -1\n          && (DS_Dictionary::split(a1, (unsigned __int8 *)v17, \",\", (int)a3),\n              v12 = *a3,\n              -1431655765 * ((a3[1] - *a3) >> 2) == 2) )\n        {\n          v13 = *v12;\n          if ( (v13 & 1) != 0 )\n            v7 = *((_DWORD *)v12 + 1);\n          else\n            v7 = v13 >> 1;\n          if ( v7 )\n          {\n            v14 = v12[12];\n            if ( (v14 & 1) != 0 )\n              v15 = *((_DWORD *)v12 + 4);\n            else\n              v15 = v14 >> 1;\n            v7 = v15 != 0;\n          }\n        }\n        else\n        {\n          v7 = 0;\n        }\n      }\n      std::string::~string((int)v17);\n    }\n  }\n  return v7;\n}", "assembly": "; \n; DS_Dictionary::splitWithForm from 0x80c1dc to 0x80c2be (226 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::rectFromString @ 0x80c468\n; > DS_Dictionary::rectFromString @ 0x80c488\n; > DS_Dictionary::vec2FromString @ 0x80c77c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:01:31 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x80c1dc\nMOV             R7, R2                                                 ; +0x4, 0x80c1e0\nLDRB            R4, [R1]                                               ; +0x6, 0x80c1e2\nSUB             SP, SP, #0x1C                                          ; +0x8, 0x80c1e4\nLDR             R5, =(__stack_chk_guard_ptr - 0x80C1F2)                ; +0xa, 0x80c1e6\nMOV             R8, R0                                                 ; +0xc, 0x80c1e8\nLSLS            R2, R4, #0x1F                                          ; +0xe, 0x80c1ea\nMOV             R9, R1                                                 ; +0x10, 0x80c1ec\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x12, 0x80c1ee\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x14, 0x80c1f0\nITE PL                                                                 ; +0x16, 0x80c1f2\nASRPL           R4, R4, #1                                             ; +0x18, 0x80c1f4\nLDRMI           R4, [R1,#4]                                            ; +0x1a, 0x80c1f6\nLDR             R3, [R5]                                               ; +0x1c, 0x80c1f8\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x1e, 0x80c1fa\nCMP             R4, #0                                                 ; +0x20, 0x80c1fc\nBEQ             loc_80C2AA                                             ; +0x22, 0x80c1fe\nMOV             R0, R1                                                 ; +0x24, 0x80c200\nMOVS            R2, #0                                                 ; +0x26, 0x80c202\nMOVS            R1, #0x7B ; '{'                                        ; +0x28, 0x80c204\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcj; std::string::find(char,uint) ; +0x2a, 0x80c206\nMOVS            R1, #0x7D ; '}'                                        ; +0x2e, 0x80c20a\nMOVS            R2, #0                                                 ; +0x30, 0x80c20c\nMOV             R4, R0                                                 ; +0x32, 0x80c20e\nMOV             R0, R9                                                 ; +0x34, 0x80c210\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcj; std::string::find(char,uint) ; +0x36, 0x80c212\nADDS            R3, R4, #1                                             ; +0x3a, 0x80c216\nBEQ             loc_80C2A8                                             ; +0x3c, 0x80c218\nADDS            R6, R0, #1                                             ; +0x3e, 0x80c21a\nBEQ             loc_80C2A8                                             ; +0x40, 0x80c21c\nCMP             R4, R0                                                 ; +0x42, 0x80c21e\nBGT             loc_80C2A8                                             ; +0x44, 0x80c220\nADD             R6, SP, #0x1C+var_14                                   ; +0x46, 0x80c222\nSUBS            R3, R0, R4                                             ; +0x48, 0x80c224\nADDS            R2, R4, #1                                             ; +0x4a, 0x80c226\nSTR.W           R9, [SP,#0x1C+var_1C]                                  ; +0x4c, 0x80c228\nMOV             R0, R6                                                 ; +0x50, 0x80c22c\nMOV             R1, R9                                                 ; +0x52, 0x80c22e\nSUBS            R3, #1                                                 ; +0x54, 0x80c230\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_jjRKS4_; std::string::basic_string(std::string const&,uint,uint,std::allocator<char> const&) ; +0x56, 0x80c232\nLDRB.W          R4, [SP,#0x1C+var_14]                                  ; +0x5a, 0x80c236\nLSLS            R0, R4, #0x1F                                          ; +0x5e, 0x80c23a\nITE PL                                                                 ; +0x60, 0x80c23c\nASRPL           R4, R4, #1                                             ; +0x62, 0x80c23e\nLDRMI           R4, [SP,#0x1C+var_10]                                  ; +0x64, 0x80c240\nCBZ             R4, loc_80C2A0                                         ; +0x66, 0x80c242\nMOVS            R1, #0x7B ; '{'                                        ; +0x68, 0x80c244\nMOVS            R2, #0                                                 ; +0x6a, 0x80c246\nMOV             R0, R6                                                 ; +0x6c, 0x80c248\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcj; std::string::find(char,uint) ; +0x6e, 0x80c24a\nMOVS            R1, #0x7D ; '}'                                        ; +0x72, 0x80c24e\nMOVS            R2, #0                                                 ; +0x74, 0x80c250\nMOV             R4, R0                                                 ; +0x76, 0x80c252\nMOV             R0, R6                                                 ; +0x78, 0x80c254\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcj; std::string::find(char,uint) ; +0x7a, 0x80c256\nADDS            R4, #1                                                 ; +0x7e, 0x80c25a\nBNE             loc_80C29E                                             ; +0x80, 0x80c25c\nADDS            R0, #1                                                 ; +0x82, 0x80c25e\nBNE             loc_80C29E                                             ; +0x84, 0x80c260\nLDR             R2, =(asc_B7A5B7 - 0x80C26E); \",\"                      ; +0x86, 0x80c262\nMOV             R1, R6; int                                            ; +0x88, 0x80c264\nMOV             R3, R7                                                 ; +0x8a, 0x80c266\nMOV             R0, R8; int                                            ; +0x8c, 0x80c268\nADD             R2, PC; \",\"                                            ; +0x8e, 0x80c26a\nBL              _ZN13DS_Dictionary5splitERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcRNS0_6vectorIS6_NS4_IS6_EEEE; DS_Dictionary::split(std::string const&,char const*,std::vector<std::string> &) ; +0x90, 0x80c26c\nLDR             R3, [R7]                                               ; +0x94, 0x80c270\nLDR             R2, [R7,#4]                                            ; +0x96, 0x80c272\nLDR             R1, =0xAAAAAAAB                                        ; +0x98, 0x80c274\nSUBS            R2, R2, R3                                             ; +0x9a, 0x80c276\nASRS            R2, R2, #2                                             ; +0x9c, 0x80c278\nMULS            R2, R1                                                 ; +0x9e, 0x80c27a\nCMP             R2, #2                                                 ; +0xa0, 0x80c27c\nBNE             loc_80C29E                                             ; +0xa2, 0x80c27e\nLDRB            R4, [R3]                                               ; +0xa4, 0x80c280\nLSLS            R1, R4, #0x1F                                          ; +0xa6, 0x80c282\nITE PL                                                                 ; +0xa8, 0x80c284\nASRPL           R4, R4, #1                                             ; +0xaa, 0x80c286\nLDRMI           R4, [R3,#4]                                            ; +0xac, 0x80c288\nCBZ             R4, loc_80C2A0                                         ; +0xae, 0x80c28a\nLDRB            R4, [R3,#0xC]                                          ; +0xb0, 0x80c28c\nLSLS            R2, R4, #0x1F                                          ; +0xb2, 0x80c28e\nITE PL                                                                 ; +0xb4, 0x80c290\nASRPL           R4, R4, #1                                             ; +0xb6, 0x80c292\nLDRMI           R4, [R3,#0x10]                                         ; +0xb8, 0x80c294\nADDS            R4, #0                                                 ; +0xba, 0x80c296\nIT NE                                                                  ; +0xbc, 0x80c298\nMOVNE           R4, #1                                                 ; +0xbe, 0x80c29a\nB               loc_80C2A0                                             ; +0xc0, 0x80c29c\nMOVS            R4, #0                                                 ; +0xc2, 0x80c29e\nMOV             R0, R6                                                 ; +0xc4, 0x80c2a0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc6, 0x80c2a2\nB               loc_80C2AA                                             ; +0xca, 0x80c2a6\nMOVS            R4, #0                                                 ; +0xcc, 0x80c2a8\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xce, 0x80c2aa\nMOV             R0, R4                                                 ; +0xd0, 0x80c2ac\nLDR             R3, [R5]                                               ; +0xd2, 0x80c2ae\nCMP             R2, R3                                                 ; +0xd4, 0x80c2b0\nBEQ             loc_80C2B8                                             ; +0xd6, 0x80c2b2\nBLX             __stack_chk_fail                                       ; +0xd8, 0x80c2b4\nADD             SP, SP, #0x1C                                          ; +0xdc, 0x80c2b8\nPOP.W           {R4-R9,PC}                                             ; +0xde, 0x80c2ba", "xrefs": ["DS_Dictionary::rectFromString @ 0x80c468", "DS_Dictionary::rectFromString @ 0x80c488", "DS_Dictionary::vec2FromString @ 0x80c77c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}