{"type": "func", "start": 4297268096, "end": 4297268510, "name": "GJCompactUserCell::loadFromScore", "pseudocode": "// \n// GJCompactUserCell::loadFromScore from 0x100231b80 to 0x100231d1e (414 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x100228307\n// \n// This function is hookable on this platform (idp: pc, 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 12:27:10 +0000\n// \n\n__int64 __fastcall GJCompactUserCell::loadFromScore(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 result; // rax\n  __int64 v5; // rdi\n  int v6; // edx\n  int v7; // ecx\n  int v8; // r8d\n  int v9; // r9d\n  __int64 v10; // r14\n  __int64 v11; // rdi\n  __int64 v12; // rsi\n  __int64 v13; // rdx\n  double v14; // xmm0_8\n  __int64 v15; // rax\n  __int64 v16; // r15\n  __int64 v17; // r15\n  _QWORD v18[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v18[0] = v2;\n  result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);\n  v5 = *(_QWORD *)(a1 + 552);\n  if ( v5 )\n  {\n    result = cocos2d::CCObject::release(v5);\n    *(_QWORD *)(a1 + 552) = 0;\n  }\n  if ( a2 )\n  {\n    *(_QWORD *)(a1 + 552) = a2;\n    cocos2d::CCObject::retain(a2);\n    v10 = sub_1008735E0(0, 1, v6, v7, v8, v9);\n    (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v10 + 184LL))(v10, &unk_100BE17E0);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v10);\n    v11 = *(_QWORD *)(a1 + 552);\n    v12 = *(_QWORD *)(a1 + 536);\n    GJCompactUserCell::buildUserRow(v11, v12, v10, a1, (unsigned int)GJCompactUserCell::onViewProfile, 0, 0, 0);\n    result = *(_QWORD *)(a1 + 552);\n    if ( *(_DWORD *)(result + 688) == 1 && *(_DWORD *)(result + 436) != 2 )\n    {\n      *(_QWORD *)&v14 = GameManager::sharedState(v11, v12, v13).u64[0];\n      result = sub_10036D800(v15, v14);\n      if ( !(_BYTE)result )\n      {\n        v16 = cocos2d::CCSprite::createWithSpriteFrameName(\"accountBtn_messages_001.png\");\n        (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.55000001);\n        v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, GJCompactUserCell::onSendMessage, 0);\n        CCMenuItemSpriteExtra::setSizeMult(v17, 1.6);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, v17);\n        sub_100278250(v18, *(float *)(a1 + 520) + -22.0, *(float *)(a1 + 524) * 0.5);\n        return (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v17 + 184LL))(v17, v18);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJCompactUserCell::loadFromScore from 0x100231b80 to 0x100231d1e (414 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x100228307\n; \n; This function is hookable on this platform (idp: pc, 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 12:27:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x100231b80\nmov     rbp, rsp                                                       ; +0x1, 0x100231b81\npush    r15                                                            ; +0x4, 0x100231b84\npush    r14                                                            ; +0x6, 0x100231b86\npush    rbx                                                            ; +0x8, 0x100231b88\npush    rax                                                            ; +0x9, 0x100231b89\nmov     r14, rsi                                                       ; +0xa, 0x100231b8a\nmov     rbx, rdi                                                       ; +0xd, 0x100231b8d\nmov     rdi, [rdi+218h]                                                ; +0x10, 0x100231b90\nmov     rax, [rdi]                                                     ; +0x17, 0x100231b97\nmov     esi, 1                                                         ; +0x1a, 0x100231b9a\ncall    qword ptr [rax+248h]                                           ; +0x1f, 0x100231b9f\nmov     rdi, [rbx+228h]                                                ; +0x25, 0x100231ba5\ntest    rdi, rdi                                                       ; +0x2c, 0x100231bac\njz      short loc_100231BC1                                            ; +0x2f, 0x100231baf\ncall    cocos2d__CCObject__release                                     ; +0x31, 0x100231bb1\nmov     qword ptr [rbx+228h], 0                                        ; +0x36, 0x100231bb6\ntest    r14, r14                                                       ; +0x41, 0x100231bc1\njz      loc_100231D13                                                  ; +0x44, 0x100231bc4\nmov     [rbx+228h], r14                                                ; +0x4a, 0x100231bca\nmov     rdi, r14                                                       ; +0x51, 0x100231bd1\ncall    cocos2d__CCObject__retain                                      ; +0x54, 0x100231bd4\nxor     edi, edi                                                       ; +0x59, 0x100231bd9\nxor     eax, eax                                                       ; +0x5b, 0x100231bdb\ncall    sub_1008735E0                                                  ; +0x5d, 0x100231bdd\nmov     r14, rax                                                       ; +0x62, 0x100231be2\nmov     rax, [rax]                                                     ; +0x65, 0x100231be5\nlea     rsi, unk_100BE17E0                                             ; +0x68, 0x100231be8\nmov     rdi, r14                                                       ; +0x6f, 0x100231bef\ncall    qword ptr [rax+0B8h]                                           ; +0x72, 0x100231bf2\nmov     rdi, [rbx+218h]                                                ; +0x78, 0x100231bf8\nmov     rax, [rdi]                                                     ; +0x7f, 0x100231bff\nmov     rsi, r14                                                       ; +0x82, 0x100231c02\ncall    qword ptr [rax+1C8h]                                           ; +0x85, 0x100231c05\nmov     rdi, [rbx+228h]                                                ; +0x8b, 0x100231c0b\nmov     rsi, [rbx+218h]                                                ; +0x92, 0x100231c12\nmovss   xmm0, dword ptr [rbx+20Ch]                                     ; +0x99, 0x100231c19\nmulss   xmm0, cs:dword_100A03578                                       ; +0xa1, 0x100231c21\nlea     r8, GJCompactUserCell__onViewProfile                           ; +0xa9, 0x100231c29\nmov     rdx, r14                                                       ; +0xb0, 0x100231c30\nmov     rcx, rbx                                                       ; +0xb3, 0x100231c33\nxor     r9d, r9d                                                       ; +0xb6, 0x100231c36\npush    0                                                              ; +0xb9, 0x100231c39\npush    0                                                              ; +0xbb, 0x100231c3b\ncall    GJCompactUserCell__buildUserRow                                ; +0xbd, 0x100231c3d\nadd     rsp, 10h                                                       ; +0xc2, 0x100231c42\nmov     rax, [rbx+228h]                                                ; +0xc6, 0x100231c46\ncmp     dword ptr [rax+2B0h], 1                                        ; +0xcd, 0x100231c4d\njnz     loc_100231D13                                                  ; +0xd4, 0x100231c54\ncmp     dword ptr [rax+1B4h], 2                                        ; +0xda, 0x100231c5a\njz      loc_100231D13                                                  ; +0xe1, 0x100231c61\ncall    GameManager__sharedState                                       ; +0xe7, 0x100231c67\nmov     rdi, rax                                                       ; +0xec, 0x100231c6c\ncall    sub_10036D800                                                  ; +0xef, 0x100231c6f\ntest    al, al                                                         ; +0xf4, 0x100231c74\njnz     loc_100231D13                                                  ; +0xf6, 0x100231c76\nlea     rdi, aAccountbtnMess_0; \"accountBtn_messages_001.png\"          ; +0xfc, 0x100231c7c\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x103, 0x100231c83\nmov     r15, rax                                                       ; +0x108, 0x100231c88\nmov     rax, [rax]                                                     ; +0x10b, 0x100231c8b\nmovss   xmm0, cs:dword_100A0416C                                       ; +0x10e, 0x100231c8e\nmov     rdi, r15                                                       ; +0x116, 0x100231c96\ncall    qword ptr [rax+0A0h]                                           ; +0x119, 0x100231c99\nlea     rcx, GJCompactUserCell__onSendMessage                          ; +0x11f, 0x100231c9f\nmov     rdi, r15                                                       ; +0x126, 0x100231ca6\nxor     esi, esi                                                       ; +0x129, 0x100231ca9\nmov     rdx, rbx                                                       ; +0x12b, 0x100231cab\nxor     r8d, r8d                                                       ; +0x12e, 0x100231cae\ncall    CCMenuItemSpriteExtra__create                                  ; +0x131, 0x100231cb1\nmov     r15, rax                                                       ; +0x136, 0x100231cb6\nmovss   xmm0, cs:dword_100A04C64                                       ; +0x139, 0x100231cb9\nmov     rdi, rax                                                       ; +0x141, 0x100231cc1\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0x144, 0x100231cc4\nmov     rax, [r14]                                                     ; +0x149, 0x100231cc9\nmov     rdi, r14                                                       ; +0x14c, 0x100231ccc\nmov     rsi, r15                                                       ; +0x14f, 0x100231ccf\ncall    qword ptr [rax+1C8h]                                           ; +0x152, 0x100231cd2\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x158, 0x100231cd8\nmovss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x160, 0x100231ce0\naddss   xmm0, cs:dword_100A05CB8                                       ; +0x168, 0x100231ce8\nmulss   xmm1, cs:dword_100A03578                                       ; +0x170, 0x100231cf0\nlea     rbx, [rbp+var_20]                                              ; +0x178, 0x100231cf8\nmov     rdi, rbx                                                       ; +0x17c, 0x100231cfc\ncall    sub_100278250                                                  ; +0x17f, 0x100231cff\nmov     rax, [r15]                                                     ; +0x184, 0x100231d04\nmov     rdi, r15                                                       ; +0x187, 0x100231d07\nmov     rsi, rbx                                                       ; +0x18a, 0x100231d0a\ncall    qword ptr [rax+0B8h]                                           ; +0x18d, 0x100231d0d\nadd     rsp, 8                                                         ; +0x193, 0x100231d13\npop     rbx                                                            ; +0x197, 0x100231d17\npop     r14                                                            ; +0x198, 0x100231d18\npop     r15                                                            ; +0x19a, 0x100231d1a\npop     rbp                                                            ; +0x19c, 0x100231d1c\nretn                                                                   ; +0x19d, 0x100231d1d", "xrefs": ["CustomListView::loadCell @ 0x100228307"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}