{"type": "func", "start": 6285732, "end": 6285986, "name": "DS_Dictionary::getVec2ArrayForKey", "pseudocode": "// \n// DS_Dictionary::getVec2ArrayForKey from 0x5fe9a4 to 0x5feaa2 (254 bytes)\n// \n// 0 xrefs:\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\nstd::vector<cocos2d::CCPoint> *DS_Dictionary::getVec2ArrayForKey(\n        std::vector<cocos2d::CCPoint> *__return_ptr retstr,\n        DS_Dictionary *a2,\n        const char *a3)\n{\n  unsigned int v4; // r6\n  cocos2d::CCPoint *m_finish; // r0\n  signed int v7; // r0\n  int v8; // r5\n  bool v9; // cf\n  unsigned int v10; // r5\n  cocos2d::CCPoint *v11; // r7\n  cocos2d::CCPoint *v12; // r0\n  cocos2d::CCPoint *m_start; // r3\n  cocos2d::CCPoint *v14; // r0\n  cocos2d::CCPoint *v15; // r2\n  cocos2d::CCPoint *v16; // r11\n  cocos2d::CCPoint *v18; // [sp+8h] [bp-24h]\n  cocos2d::CCPoint *v19; // [sp+Ch] [bp-20h]\n  cocos2d::CCPoint v20; // [sp+10h] [bp-1Ch] BYREF\n  std::vector<std::string> v21; // [sp+18h] [bp-14h] BYREF\n\n  v4 = 0;\n  DS_Dictionary::getStringArrayForKey(&v21, a2, a3);\n  retstr->m_start = nullptr;\n  retstr->m_finish = nullptr;\n  retstr->m_reserveEnd = nullptr;\n  while ( v4 < v21.m_finish - v21.m_start )\n  {\n    cocos2d::CCPoint::CCPoint(&v20);\n    m_finish = retstr->m_finish;\n    if ( m_finish != retstr->m_reserveEnd )\n    {\n      if ( m_finish )\n        cocos2d::CCPoint::CCPoint(m_finish, &v20);\n      ++retstr->m_finish;\n      goto LABEL_24;\n    }\n    v7 = m_finish - retstr->m_start;\n    if ( v7 )\n      v8 = v7;\n    else\n      v8 = 1;\n    v9 = __CFADD__(v8, v7);\n    v10 = v8 + v7;\n    if ( v9 || v10 >= 0x20000000 )\n    {\n      v10 = 0x1FFFFFFF;\n    }\n    else if ( !v10 )\n    {\n      v11 = nullptr;\n      goto LABEL_14;\n    }\n    v11 = (cocos2d::CCPoint *)operator new(8 * v10);\nLABEL_14:\n    v12 = (cocos2d::CCPoint *)((char *)v11 + (char *)retstr->m_finish - (char *)retstr->m_start);\n    if ( v12 )\n      cocos2d::CCPoint::CCPoint(v12, &v20);\n    m_start = retstr->m_start;\n    v14 = v11;\n    v15 = retstr->m_finish;\n    while ( 1 )\n    {\n      v16 = v14 + 1;\n      if ( m_start == v15 )\n        break;\n      if ( v14 )\n      {\n        v19 = v15;\n        v18 = m_start;\n        cocos2d::CCPoint::CCPoint(v14, m_start);\n        v15 = v19;\n        m_start = v18;\n      }\n      ++m_start;\n      v14 = v16;\n    }\n    if ( retstr->m_start )\n      operator delete(retstr->m_start);\n    retstr->m_start = v11;\n    retstr->m_finish = v16;\n    retstr->m_reserveEnd = &v11[v10];\nLABEL_24:\n    if ( !DS_Dictionary::vec2FromString(a2, (int)&v21.m_start[v4], retstr->m_finish - 1) )\n    {\n      retstr->m_finish = retstr->m_start;\n      break;\n    }\n    ++v4;\n  }\n  std::vector<std::string>::~vector((void **)&v21.m_start);\n  return retstr;\n}", "assembly": "; \n; DS_Dictionary::getVec2ArrayForKey from 0x5fe9a4 to 0x5feaa2 (254 bytes)\n; \n; 0 xrefs:\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\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x5fe9a4\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x5fe9a8\nLDR             R7, =(__stack_chk_guard_ptr - 0x5FE9BA)                ; +0x6, 0x5fe9aa\nADD.W           R9, SP, #0x2C+var_14                                   ; +0x8, 0x5fe9ac\nADD.W           R8, SP, #0x2C+var_1C                                   ; +0xc, 0x5fe9b0\nMOV             R4, R0                                                 ; +0x10, 0x5fe9b4\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x12, 0x5fe9b6\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x14, 0x5fe9b8\nMOV             R0, R9; this                                           ; +0x16, 0x5fe9ba\nMOVS            R6, #0                                                 ; +0x18, 0x5fe9bc\nMOV             R10, R1                                                ; +0x1a, 0x5fe9be\nLDR             R3, [R7]                                               ; +0x1c, 0x5fe9c0\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x1e, 0x5fe9c2\nBL              _ZN13DS_Dictionary20getStringArrayForKeyEPKc; DS_Dictionary::getStringArrayForKey(char const*) ; +0x20, 0x5fe9c4\nSTR             R6, [R4]                                               ; +0x24, 0x5fe9c8\nSTR             R6, [R4,#4]                                            ; +0x26, 0x5fe9ca\nSTR             R6, [R4,#8]                                            ; +0x28, 0x5fe9cc\nSTR             R7, [SP,#0x2C+var_28]                                  ; +0x2a, 0x5fe9ce\nLDR             R2, [SP,#0x2C+var_14]                                  ; +0x2c, 0x5fe9d0\nLDR             R3, [SP,#0x2C+var_10]                                  ; +0x2e, 0x5fe9d2\nSUBS            R3, R3, R2                                             ; +0x30, 0x5fe9d4\nCMP.W           R6, R3,ASR#2                                           ; +0x32, 0x5fe9d6\nBCS             loc_5FEA7E                                             ; +0x36, 0x5fe9da\nMOV             R0, R8; this                                           ; +0x38, 0x5fe9dc\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x3a, 0x5fe9de\nLDR             R0, [R4,#4]; this                                      ; +0x3e, 0x5fe9e2\nLDR             R3, [R4,#8]                                            ; +0x40, 0x5fe9e4\nCMP             R0, R3                                                 ; +0x42, 0x5fe9e6\nBEQ             loc_5FE9FA                                             ; +0x44, 0x5fe9e8\nCBZ             R0, loc_5FE9F2                                         ; +0x46, 0x5fe9ea\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x48, 0x5fe9ec\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x4a, 0x5fe9ee\nLDR             R3, [R4,#4]                                            ; +0x4e, 0x5fe9f2\nADDS            R3, #8                                                 ; +0x50, 0x5fe9f4\nSTR             R3, [R4,#4]                                            ; +0x52, 0x5fe9f6\nB               loc_5FEA62                                             ; +0x54, 0x5fe9f8\nLDR             R3, [R4]                                               ; +0x56, 0x5fe9fa\nSUBS            R0, R0, R3                                             ; +0x58, 0x5fe9fc\nASRS            R0, R0, #3                                             ; +0x5a, 0x5fe9fe\nITE NE                                                                 ; +0x5c, 0x5fea00\nMOVNE           R5, R0                                                 ; +0x5e, 0x5fea02\nMOVEQ           R5, #1                                                 ; +0x60, 0x5fea04\nADDS            R5, R5, R0                                             ; +0x62, 0x5fea06\nBCS             loc_5FEA10                                             ; +0x64, 0x5fea08\nCMP.W           R5, #0x20000000                                        ; +0x66, 0x5fea0a\nBCC             loc_5FEA94                                             ; +0x6a, 0x5fea0e\nMOV             R5, #0x1FFFFFFF                                        ; +0x6c, 0x5fea10\nLSLS            R0, R5, #3; unsigned int                               ; +0x70, 0x5fea14\nBL              _Znwj; operator new(uint)                              ; +0x72, 0x5fea16\nMOV             R7, R0                                                 ; +0x76, 0x5fea1a\nLDM.W           R4, {R0,R2}                                            ; +0x78, 0x5fea1c\nSUBS            R0, R2, R0                                             ; +0x7c, 0x5fea20\nADDS            R0, R7, R0; this                                       ; +0x7e, 0x5fea22\nBEQ             loc_5FEA2C                                             ; +0x80, 0x5fea24\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x82, 0x5fea26\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x84, 0x5fea28\nLDR             R3, [R4]                                               ; +0x88, 0x5fea2c\nMOV             R0, R7; this                                           ; +0x8a, 0x5fea2e\nLDR             R2, [R4,#4]                                            ; +0x8c, 0x5fea30\nCMP             R3, R2                                                 ; +0x8e, 0x5fea32\nADD.W           R11, R0, #8                                            ; +0x90, 0x5fea34\nBEQ             loc_5FEA50                                             ; +0x94, 0x5fea38\nCBZ             R0, loc_5FEA4A                                         ; +0x96, 0x5fea3a\nMOV             R1, R3; cocos2d::CCPoint *                             ; +0x98, 0x5fea3c\nSTR             R2, [SP,#0x2C+var_20]                                  ; +0x9a, 0x5fea3e\nSTR             R3, [SP,#0x2C+var_24]                                  ; +0x9c, 0x5fea40\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x9e, 0x5fea42\nLDR             R2, [SP,#0x2C+var_20]                                  ; +0xa2, 0x5fea46\nLDR             R3, [SP,#0x2C+var_24]                                  ; +0xa4, 0x5fea48\nADDS            R3, #8                                                 ; +0xa6, 0x5fea4a\nMOV             R0, R11                                                ; +0xa8, 0x5fea4c\nB               loc_5FEA32                                             ; +0xaa, 0x5fea4e\nLDR             R0, [R4]; p                                            ; +0xac, 0x5fea50\nCBZ             R0, loc_5FEA58                                         ; +0xae, 0x5fea52\nBL              _ZdlPv; operator delete(void *)                        ; +0xb0, 0x5fea54\nADD.W           R3, R7, R5,LSL#3                                       ; +0xb4, 0x5fea58\nSTM.W           R4, {R7,R11}                                           ; +0xb8, 0x5fea5c\nSTR             R3, [R4,#8]                                            ; +0xbc, 0x5fea60\nLDR             R2, [R4,#4]                                            ; +0xbe, 0x5fea62\nMOV             R0, R10                                                ; +0xc0, 0x5fea64\nLDR             R1, [SP,#0x2C+var_14]                                  ; +0xc2, 0x5fea66\nSUBS            R2, #8                                                 ; +0xc4, 0x5fea68\nADD.W           R1, R1, R6,LSL#2                                       ; +0xc6, 0x5fea6a\nBL              _ZN13DS_Dictionary14vec2FromStringERKSsRN7cocos2d7CCPointE; DS_Dictionary::vec2FromString(std::string const&,cocos2d::CCPoint &) ; +0xca, 0x5fea6e\nCBNZ            R0, loc_5FEA7A                                         ; +0xce, 0x5fea72\nLDR             R3, [R4]                                               ; +0xd0, 0x5fea74\nSTR             R3, [R4,#4]                                            ; +0xd2, 0x5fea76\nB               loc_5FEA7E                                             ; +0xd4, 0x5fea78\nADDS            R6, #1                                                 ; +0xd6, 0x5fea7a\nB               loc_5FE9D0                                             ; +0xd8, 0x5fea7c\nMOV             R0, R9                                                 ; +0xda, 0x5fea7e\nBL              _ZNSt6vectorISsSaISsEED2Ev; std::vector<std::string>::~vector() ; +0xdc, 0x5fea80\nLDR             R3, [SP,#0x2C+var_28]                                  ; +0xe0, 0x5fea84\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xe2, 0x5fea86\nMOV             R0, R4                                                 ; +0xe4, 0x5fea88\nLDR             R3, [R3]                                               ; +0xe6, 0x5fea8a\nCMP             R2, R3                                                 ; +0xe8, 0x5fea8c\nBEQ             loc_5FEA9C                                             ; +0xea, 0x5fea8e\nBLX             __stack_chk_fail                                       ; +0xec, 0x5fea90\nCMP             R5, #0                                                 ; +0xf0, 0x5fea94\nBNE             loc_5FEA14                                             ; +0xf2, 0x5fea96\nMOV             R7, R5                                                 ; +0xf4, 0x5fea98\nB               loc_5FEA1C                                             ; +0xf6, 0x5fea9a\nADD             SP, SP, #0x2C ; ','                                    ; +0xf8, 0x5fea9c\nPOP.W           {R4-R11,PC}                                            ; +0xfa, 0x5fea9e", "xrefs": [], "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"}