{"type": "func", "start": 4296207860, "end": 4296208256, "name": "GJCompactUserCell::loadFromScore", "pseudocode": "// \n// GJCompactUserCell::loadFromScore from 0x10012edf4 to 0x10012ef80 (396 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x100125fe4\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:59:22 +0000\n// \n\n__int64 __fastcall GJCompactUserCell::loadFromScore(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x20\n  __int64 v6; // x8\n  __int64 v7; // x0\n  __int64 v8; // x21\n  __int64 v9; // x21\n  __n128 v10; // q0\n  float v11; // [xsp+8h] [xbp-28h] BYREF\n\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);\n  result = *(_QWORD *)(a1 + 552);\n  if ( result )\n  {\n    result = (__int64)cocos2d::CCObject::release((_DWORD *)result);\n    *(_QWORD *)(a1 + 552) = 0;\n  }\n  if ( a2 )\n  {\n    *(_QWORD *)(a1 + 552) = a2;\n    cocos2d::CCObject::retain(a2);\n    v5 = sub_100270434(0);\n    (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 184LL))(v5, &unk_1009F3C10);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v5);\n    result = GJCompactUserCell::buildUserRow(\n               *(_QWORD *)(a1 + 552),\n               *(_QWORD *)(a1 + 536),\n               v5,\n               a1,\n               sub_1001399F0,\n               0,\n               0,\n               0,\n               *(float *)(a1 + 524) * 0.5);\n    v6 = *(_QWORD *)(a1 + 552);\n    if ( *(_DWORD *)(v6 + 688) == 1 && *(_DWORD *)(v6 + 436) != 2 )\n    {\n      v7 = GameManager::sharedState(result);\n      result = sub_1003B6084(v7);\n      if ( (result & 1) == 0 )\n      {\n        v8 = cocos2d::CCSprite::createWithSpriteFrameName(\"accountBtn_messages_001.png\");\n        (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.55);\n        v9 = CCMenuItemSpriteExtra::create(v8, 0, a1, sub_100139A28, 0);\n        v10 = CCMenuItemSpriteExtra::setSizeMult(1.6);\n        (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v5 + 456LL))(v5, v9, v10);\n        sub_1000262BC(&v11, *(float *)(a1 + 520) + -22.0, *(float *)(a1 + 524) * 0.5);\n        return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v11);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJCompactUserCell::loadFromScore from 0x10012edf4 to 0x10012ef80 (396 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x100125fe4\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:59:22 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x10012edf4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10012edf8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10012edfc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10012ee00\nADD             X29, SP, #0x30                                         ; +0x10, 0x10012ee04\nMOV             X20, X1                                                ; +0x14, 0x10012ee08\nMOV             X19, X0                                                ; +0x18, 0x10012ee0c\nLDR             X0, [X0,#0x218]                                        ; +0x1c, 0x10012ee10\nLDR             X8, [X0]                                               ; +0x20, 0x10012ee14\nLDR             X8, [X8,#0x248]                                        ; +0x24, 0x10012ee18\nMOV             W1, #1                                                 ; +0x28, 0x10012ee1c\nBLR             X8                                                     ; +0x2c, 0x10012ee20\nLDR             X0, [X19,#0x228]                                       ; +0x30, 0x10012ee24\nCBZ             X0, loc_10012EE34                                      ; +0x34, 0x10012ee28\nBL              cocos2d__CCObject__release                             ; +0x38, 0x10012ee2c\nSTR             XZR, [X19,#0x228]                                      ; +0x3c, 0x10012ee30\nCBZ             X20, loc_10012EF6C                                     ; +0x40, 0x10012ee34\nSTR             X20, [X19,#0x228]                                      ; +0x44, 0x10012ee38\nMOV             X0, X20                                                ; +0x48, 0x10012ee3c\nBL              cocos2d__CCObject__retain                              ; +0x4c, 0x10012ee40\nMOV             X0, #0                                                 ; +0x50, 0x10012ee44\nBL              sub_100270434                                          ; +0x54, 0x10012ee48\nMOV             X20, X0                                                ; +0x58, 0x10012ee4c\nLDR             X8, [X0]                                               ; +0x5c, 0x10012ee50\nLDR             X8, [X8,#0xB8]                                         ; +0x60, 0x10012ee54\nADRL            X1, unk_1009F3C10                                      ; +0x64, 0x10012ee58\nBLR             X8                                                     ; +0x6c, 0x10012ee60\nLDR             X0, [X19,#0x218]                                       ; +0x70, 0x10012ee64\nLDR             X8, [X0]                                               ; +0x74, 0x10012ee68\nLDR             X8, [X8,#0x1C8]                                        ; +0x78, 0x10012ee6c\nMOV             X1, X20                                                ; +0x7c, 0x10012ee70\nBLR             X8                                                     ; +0x80, 0x10012ee74\nLDR             X0, [X19,#0x228]                                       ; +0x84, 0x10012ee78\nLDR             X1, [X19,#0x218]                                       ; +0x88, 0x10012ee7c\nLDR             S0, [X19,#0x20C]                                       ; +0x8c, 0x10012ee80\nFMOV            S1, #0.5                                               ; +0x90, 0x10012ee84\nFMUL            S0, S0, S1                                             ; +0x94, 0x10012ee88\nADRL            X4, sub_1001399F0                                      ; +0x98, 0x10012ee8c\nMOV             X2, X20                                                ; +0xa0, 0x10012ee94\nMOV             X3, X19                                                ; +0xa4, 0x10012ee98\nMOV             X5, #0                                                 ; +0xa8, 0x10012ee9c\nMOV             W6, #0                                                 ; +0xac, 0x10012eea0\nMOV             W7, #0                                                 ; +0xb0, 0x10012eea4\nBL              GJCompactUserCell__buildUserRow                        ; +0xb4, 0x10012eea8\nLDR             X8, [X19,#0x228]                                       ; +0xb8, 0x10012eeac\nLDR             W9, [X8,#0x2B0]                                        ; +0xbc, 0x10012eeb0\nCMP             W9, #1                                                 ; +0xc0, 0x10012eeb4\nB.NE            loc_10012EF6C                                          ; +0xc4, 0x10012eeb8\nLDR             W8, [X8,#0x1B4]                                        ; +0xc8, 0x10012eebc\nCMP             W8, #2                                                 ; +0xcc, 0x10012eec0\nB.EQ            loc_10012EF6C                                          ; +0xd0, 0x10012eec4\nBL              GameManager__sharedState                               ; +0xd4, 0x10012eec8\nBL              sub_1003B6084                                          ; +0xd8, 0x10012eecc\nTBNZ            W0, #0, loc_10012EF6C                                  ; +0xdc, 0x10012eed0\nADRL            X0, aAccountbtnMess; \"accountBtn_messages_001.png\"     ; +0xe0, 0x10012eed4\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0xe8, 0x10012eedc\nMOV             X21, X0                                                ; +0xec, 0x10012eee0\nLDR             X8, [X0]                                               ; +0xf0, 0x10012eee4\nLDR             X8, [X8,#0xA0]                                         ; +0xf4, 0x10012eee8\nADRP            X9, #dword_10075C614@PAGE                              ; +0xf8, 0x10012eeec\nLDR             S0, [X9,#dword_10075C614@PAGEOFF]                      ; +0xfc, 0x10012eef0\nBLR             X8                                                     ; +0x100, 0x10012eef4\nADRL            X3, sub_100139A28                                      ; +0x104, 0x10012eef8\nMOV             X0, X21                                                ; +0x10c, 0x10012ef00\nMOV             X1, #0                                                 ; +0x110, 0x10012ef04\nMOV             X2, X19                                                ; +0x114, 0x10012ef08\nMOV             X4, #0                                                 ; +0x118, 0x10012ef0c\nBL              CCMenuItemSpriteExtra__create                          ; +0x11c, 0x10012ef10\nMOV             X21, X0                                                ; +0x120, 0x10012ef14\nADRP            X8, #dword_10075BCF4@PAGE                              ; +0x124, 0x10012ef18\nLDR             S0, [X8,#dword_10075BCF4@PAGEOFF]                      ; +0x128, 0x10012ef1c\nBL              CCMenuItemSpriteExtra__setSizeMult                     ; +0x12c, 0x10012ef20\nLDR             X8, [X20]                                              ; +0x130, 0x10012ef24\nLDR             X8, [X8,#0x1C8]                                        ; +0x134, 0x10012ef28\nMOV             X0, X20                                                ; +0x138, 0x10012ef2c\nMOV             X1, X21                                                ; +0x13c, 0x10012ef30\nBLR             X8                                                     ; +0x140, 0x10012ef34\nLDR             S0, [X19,#0x208]                                       ; +0x144, 0x10012ef38\nFMOV            S1, #-22.0                                             ; +0x148, 0x10012ef3c\nFADD            S0, S0, S1                                             ; +0x14c, 0x10012ef40\nLDR             S1, [X19,#0x20C]                                       ; +0x150, 0x10012ef44\nFMOV            S2, #0.5                                               ; +0x154, 0x10012ef48\nFMUL            S1, S1, S2                                             ; +0x158, 0x10012ef4c\nADD             X0, SP, #0x30+var_28                                   ; +0x15c, 0x10012ef50\nBL              sub_1000262BC                                          ; +0x160, 0x10012ef54\nLDR             X8, [X21]                                              ; +0x164, 0x10012ef58\nLDR             X8, [X8,#0xB8]                                         ; +0x168, 0x10012ef5c\nADD             X1, SP, #0x30+var_28                                   ; +0x16c, 0x10012ef60\nMOV             X0, X21                                                ; +0x170, 0x10012ef64\nBLR             X8                                                     ; +0x174, 0x10012ef68\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x178, 0x10012ef6c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x17c, 0x10012ef70\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x180, 0x10012ef74\nADD             SP, SP, #0x40 ; '@'                                    ; +0x184, 0x10012ef78\nRET                                                                    ; +0x188, 0x10012ef7c", "xrefs": ["CustomListView::loadCell @ 0x100125fe4"], "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"}