{"type": "func", "start": 4295845960, "end": 4295846152, "name": "GJLevelList::addLevelToList", "pseudocode": "// \n// GJLevelList::addLevelToList from 0x1000d6848 to 0x1000d6908 (192 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::cellPerformedAction @ 0x10002c798\n// > sub_1000D6540 @ 0x1000d6584\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 10:58:56 +0000\n// \n\nvoid __fastcall GJLevelList::addLevelToList(__int64 a1, __int64 a2)\n{\n  _DWORD *i; // x8\n  __int64 v5; // x21\n  char *ListSnapshot; // x22\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v8; // [xsp+1Fh] [xbp-21h]\n\n  for ( i = *(_DWORD **)(a1 + 320); i != *(_DWORD **)(a1 + 328); ++i )\n  {\n    if ( *i == *(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332) )\n      return;\n  }\n  LODWORD(__p[0]) = *(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332);\n  sub_10000D038(a1 + 320, (int *)__p);\n  GJLevelList::updateLevelsString(a1);\n  v5 = *(_QWORD *)(a1 + 536);\n  ListSnapshot = GJGameLevel::getListSnapshot(a2);\n  GameToolbox::intToString((unsigned int)(*(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332)), __p);\n  cocos2d::CCDictionary::setObject(v5, ListSnapshot, __p);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n  *(_BYTE *)(a1 + 399) = 1;\n}", "assembly": "; \n; GJLevelList::addLevelToList from 0x1000d6848 to 0x1000d6908 (192 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::cellPerformedAction @ 0x10002c798\n; > sub_1000D6540 @ 0x1000d6584\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 10:58:56 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1000d6848\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1000d684c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1000d6850\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1000d6854\nADD             X29, SP, #0x40                                         ; +0x10, 0x1000d6858\nMOV             X20, X1                                                ; +0x14, 0x1000d685c\nMOV             X19, X0                                                ; +0x18, 0x1000d6860\nLDP             X8, X9, [X0,#0x140]                                    ; +0x1c, 0x1000d6864\nLDR             W10, [X1,#0x148]                                       ; +0x20, 0x1000d6868\nLDR             W11, [X1,#0x14C]                                       ; +0x24, 0x1000d686c\nSUB             W10, W10, W11                                          ; +0x28, 0x1000d6870\nCMP             X8, X9                                                 ; +0x2c, 0x1000d6874\nB.EQ            loc_1000D6890                                          ; +0x30, 0x1000d6878\nLDR             W11, [X8]                                              ; +0x34, 0x1000d687c\nCMP             W11, W10                                               ; +0x38, 0x1000d6880\nB.EQ            loc_1000D68F4                                          ; +0x3c, 0x1000d6884\nADD             X8, X8, #4                                             ; +0x40, 0x1000d6888\nB               loc_1000D6874                                          ; +0x44, 0x1000d688c\nSTR             W10, [SP,#0x40+__p]                                    ; +0x48, 0x1000d6890\nADD             X0, X19, #0x140                                        ; +0x4c, 0x1000d6894\nADD             X1, SP, #0x40+__p                                      ; +0x50, 0x1000d6898\nBL              sub_10000D038                                          ; +0x54, 0x1000d689c\nMOV             X0, X19                                                ; +0x58, 0x1000d68a0\nBL              GJLevelList__updateLevelsString                        ; +0x5c, 0x1000d68a4\nLDR             X21, [X19,#0x218]                                      ; +0x60, 0x1000d68a8\nMOV             X0, X20                                                ; +0x64, 0x1000d68ac\nBL              GJGameLevel__getListSnapshot                           ; +0x68, 0x1000d68b0\nMOV             X22, X0                                                ; +0x6c, 0x1000d68b4\nLDR             W8, [X20,#0x148]                                       ; +0x70, 0x1000d68b8\nLDR             W9, [X20,#0x14C]                                       ; +0x74, 0x1000d68bc\nSUB             W0, W8, W9                                             ; +0x78, 0x1000d68c0\nADD             X8, SP, #0x40+__p                                      ; +0x7c, 0x1000d68c4\nBL              GameToolbox__intToString                               ; +0x80, 0x1000d68c8\nADD             X2, SP, #0x40+__p                                      ; +0x84, 0x1000d68cc\nMOV             X0, X21                                                ; +0x88, 0x1000d68d0\nMOV             X1, X22                                                ; +0x8c, 0x1000d68d4\nBL              cocos2d__CCDictionary__setObject                       ; +0x90, 0x1000d68d8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x94, 0x1000d68dc\nTBZ             W8, #0x1F, loc_1000D68EC                               ; +0x98, 0x1000d68e0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x9c, 0x1000d68e4\nBL              __ZdlPv; operator delete(void *)                       ; +0xa0, 0x1000d68e8\nMOV             W8, #1                                                 ; +0xa4, 0x1000d68ec\nSTRB            W8, [X19,#0x18F]                                       ; +0xa8, 0x1000d68f0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xac, 0x1000d68f4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb0, 0x1000d68f8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb4, 0x1000d68fc\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb8, 0x1000d6900\nRET                                                                    ; +0xbc, 0x1000d6904", "xrefs": ["LevelInfoLayer::cellPerformedAction @ 0x10002c798", "sub_1000D6540 @ 0x1000d6584"], "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"}