{"type": "func", "start": 4295687984, "end": 4295688148, "name": "GJUserScore::isCurrentUser", "pseudocode": "// \n// GJUserScore::isCurrentUser from 0x1000aff30 to 0x1000affd4 (164 bytes)\n// \n// 3 xrefs:\n// > GJScoreCell::loadFromScore @ 0x100107c04\n// > GJLevelScoreCell::loadFromScore @ 0x1001090a0\n// > CustomListView::setupList @ 0x10010b7a0\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 GJUserScore::isCurrentUser(GJUserScore *a1)\n{\n  GJAccountManager *v2; // x0\n  int v3; // w8\n  bool v4; // w19\n  GameManager *v5; // x0\n  void *__p[2]; // [xsp+0h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-20h]\n\n  v2 = GJAccountManager::sharedState();\n  v3 = v2->m_accountID - v2->m_unkInt1;\n  if ( v3 && v3 == a1->m_accountID )\n    return 1;\n  v5 = GameManager::sharedState();\n  if ( v5->m_playerUDID.m_data.m_short.shortStorage.__elems_[22] < 0 )\n  {\n    sub_1000097D0(__p, (void *)v5->m_playerUDID.m_data.m_long.capacitym1, v5->m_playerUDID.m_data.m_long.size);\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)&v5->m_playerUDID.m_data.m_short.sizex2;\n    longStorage = v5->m_playerUDID.m_data.m_long.longStorage;\n  }\n  v4 = sub_1000045BC(&a1->m_userUDID.m_data.m_long.capacitym1, __p);\n  if ( SHIBYTE(longStorage) < 0 )\n    operator delete(__p[0]);\n  return v4;\n}", "assembly": "; \n; GJUserScore::isCurrentUser from 0x1000aff30 to 0x1000affd4 (164 bytes)\n; \n; 3 xrefs:\n; > GJScoreCell::loadFromScore @ 0x100107c04\n; > GJLevelScoreCell::loadFromScore @ 0x1001090a0\n; > CustomListView::setupList @ 0x10010b7a0\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, 0x1000aff30\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000aff34\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000aff38\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000aff3c\nMOV             X19, X0                                                ; +0x10, 0x1000aff40\nBL              GJAccountManager__sharedState                          ; +0x14, 0x1000aff44\nLDR             W8, [X0,#0x160]                                        ; +0x18, 0x1000aff48\nLDR             W9, [X0,#0x164]                                        ; +0x1c, 0x1000aff4c\nSUBS            W8, W8, W9                                             ; +0x20, 0x1000aff50\nB.EQ            loc_1000AFF6C                                          ; +0x24, 0x1000aff54\nLDR             W9, [X19,#0x178]                                       ; +0x28, 0x1000aff58\nCMP             W8, W9                                                 ; +0x2c, 0x1000aff5c\nB.NE            loc_1000AFF6C                                          ; +0x30, 0x1000aff60\nMOV             W19, #1                                                ; +0x34, 0x1000aff64\nB               loc_1000AFFC0                                          ; +0x38, 0x1000aff68\nBL              GameManager__sharedState                               ; +0x3c, 0x1000aff6c\nLDRSB           W8, [X0,#0x24F]                                        ; +0x40, 0x1000aff70\nTBNZ            W8, #0x1F, loc_1000AFF90                               ; +0x44, 0x1000aff74\nADD             X8, X0, #0x238                                         ; +0x48, 0x1000aff78\nLDR             Q0, [X8]                                               ; +0x4c, 0x1000aff7c\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x50, 0x1000aff80\nLDR             X8, [X8,#0x10]                                         ; +0x54, 0x1000aff84\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x58, 0x1000aff88\nB               loc_1000AFFA0                                          ; +0x5c, 0x1000aff8c\nLDR             X1, [X0,#0x238]; __src                                 ; +0x60, 0x1000aff90\nLDR             X2, [X0,#0x240]                                        ; +0x64, 0x1000aff94\nMOV             X0, SP; __dst                                          ; +0x68, 0x1000aff98\nBL              sub_1000097D0                                          ; +0x6c, 0x1000aff9c\nADD             X0, X19, #0x158                                        ; +0x70, 0x1000affa0\nMOV             X1, SP                                                 ; +0x74, 0x1000affa4\nBL              sub_1000045BC                                          ; +0x78, 0x1000affa8\nMOV             X19, X0                                                ; +0x7c, 0x1000affac\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x80, 0x1000affb0\nTBZ             W8, #0x1F, loc_1000AFFC0                               ; +0x84, 0x1000affb4\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x88, 0x1000affb8\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1000affbc\nMOV             X0, X19                                                ; +0x90, 0x1000affc0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x94, 0x1000affc4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x98, 0x1000affc8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x9c, 0x1000affcc\nRET                                                                    ; +0xa0, 0x1000affd0", "xrefs": ["GJScoreCell::loadFromScore @ 0x100107c04", "GJLevelScoreCell::loadFromScore @ 0x1001090a0", "CustomListView::setupList @ 0x10010b7a0"], "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"}