{"type": "func", "start": 4298186260, "end": 4298186428, "name": "GameManager::calculateBaseKeyForIcons", "pseudocode": "// \n// GameManager::calculateBaseKeyForIcons from 0x100311e14 to 0x100311ebc (168 bytes)\n// \n// 1 xrefs:\n// > GameManager::init @ 0x100311d9c\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\nvoid __fastcall GameManager::calculateBaseKeyForIcons(GameManager *a1)\n{\n  __int64 v2; // x8\n  int v3; // w21\n  std::__vector_base<int>::pointer begin; // x9\n  int v5; // [xsp+0h] [xbp-30h] BYREF\n  unsigned int *v6; // [xsp+8h] [xbp-28h] BYREF\n\n  sub_10011C2E0(&a1->m_keyStartForIcon.__begin_, 9u);\n  v2 = 0;\n  v3 = 0;\n  begin = a1->m_keyStartForIcon.__begin_;\n  do\n  {\n    begin[v2] = v3;\n    v3 += *(_DWORD *)((char *)&unk_100644FD8 + v2 * 4);\n    ++v2;\n  }\n  while ( v2 != 9 );\n  v5 = 0;\n  do\n  {\n    v6 = (unsigned int *)&v5;\n    *((_DWORD *)sub_1001A6048((__int64)&a1->m_iconLoadCounts, &v5, (__int64)&unk_100644FD5, &v6) + 8) = 0;\n    ++v5;\n  }\n  while ( v5 < v3 );\n}", "assembly": "; \n; GameManager::calculateBaseKeyForIcons from 0x100311e14 to 0x100311ebc (168 bytes)\n; \n; 1 xrefs:\n; > GameManager::init @ 0x100311d9c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100311e14\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100311e18\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100311e1c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100311e20\nADD             X29, SP, #0x30                                         ; +0x10, 0x100311e24\nMOV             X19, X0                                                ; +0x14, 0x100311e28\nADD             X0, X0, #0x468                                         ; +0x18, 0x100311e2c\nMOV             W1, #9                                                 ; +0x1c, 0x100311e30\nBL              sub_10011C2E0                                          ; +0x20, 0x100311e34\nMOV             X8, #0                                                 ; +0x24, 0x100311e38\nMOV             W21, #0                                                ; +0x28, 0x100311e3c\nLDR             X9, [X19,#0x468]                                       ; +0x2c, 0x100311e40\nADRL            X10, unk_100644FD8                                     ; +0x30, 0x100311e44\nSTR             W21, [X9,X8]                                           ; +0x38, 0x100311e4c\nLDR             W11, [X10,X8]                                          ; +0x3c, 0x100311e50\nADD             W21, W21, W11                                          ; +0x40, 0x100311e54\nADD             X8, X8, #4                                             ; +0x44, 0x100311e58\nCMP             X8, #0x24 ; '$'                                        ; +0x48, 0x100311e5c\nB.NE            loc_100311E4C                                          ; +0x4c, 0x100311e60\nSTR             WZR, [SP,#0x30+var_30]                                 ; +0x50, 0x100311e64\nMOV             X22, SP                                                ; +0x54, 0x100311e68\nADRL            X20, unk_100644FD5                                     ; +0x58, 0x100311e6c\nSTR             X22, [SP,#0x30+var_28]                                 ; +0x60, 0x100311e74\nADD             X0, X19, #0x420                                        ; +0x64, 0x100311e78\nMOV             X1, SP                                                 ; +0x68, 0x100311e7c\nADD             X3, SP, #0x30+var_28                                   ; +0x6c, 0x100311e80\nADD             X4, SP, #0x30+var_29                                   ; +0x70, 0x100311e84\nMOV             X2, X20                                                ; +0x74, 0x100311e88\nBL              sub_1001A6048                                          ; +0x78, 0x100311e8c\nSTR             WZR, [X0,#0x20]                                        ; +0x7c, 0x100311e90\nLDR             W8, [SP,#0x30+var_30]                                  ; +0x80, 0x100311e94\nADD             W8, W8, #1                                             ; +0x84, 0x100311e98\nSTR             W8, [SP,#0x30+var_30]                                  ; +0x88, 0x100311e9c\nCMP             W8, W21                                                ; +0x8c, 0x100311ea0\nB.LT            loc_100311E74                                          ; +0x90, 0x100311ea4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x94, 0x100311ea8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x98, 0x100311eac\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x9c, 0x100311eb0\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa0, 0x100311eb4\nRET                                                                    ; +0xa4, 0x100311eb8", "xrefs": ["GameManager::init @ 0x100311d9c"], "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"}