{"type": "func", "start": 5371811664, "end": 5371812005, "name": "GJRateLevelLayer::FLAlert_Clicked", "pseudocode": "// \n// GJRateLevelLayer::FLAlert_Clicked from 0x1402f5750 to 0x1402f58a5 (341 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405865f0\n// > <???> @ 0x1406d3fec\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\n// Hidden C++ exception states: #wind=2\nvoid GJRateLevelLayer::FLAlert_Clicked(GJRateLevelLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  __int64 v4; // rax\n  LoadingCircle **p_m_loadingCircle; // rdi\n  __int64 v6; // rax\n  GJFeatureState *p_m_featureState; // rcx\n  FLAlertLayer *v8; // rax\n  __int128 v9; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v10; // [rsp+30h] [rbp-18h]\n  __int64 v11; // [rsp+38h] [rbp-10h]\n  void *v12; // [rsp+68h] [rbp+20h]\n  void *v13; // [rsp+68h] [rbp+20h]\n\n  if ( a3 && a2->getTag(a2) == -3 )\n  {\n    v4 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v12 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = qword_1406C2EC0;\n    }\n    p_m_loadingCircle = &a1[-1].m_loadingCircle;\n    if ( a1 == (GJRateLevelLayer *)960 )\n      p_m_loadingCircle = nullptr;\n    if ( !v4 )\n    {\n      v13 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = qword_1406C2EC0;\n    }\n    *(_QWORD *)(v4 + 808) = p_m_loadingCircle;\n    v6 = *(_QWORD *)&a1->m_fRotationX;\n    if ( v6 )\n      *(_QWORD *)(v6 + 632) = 0;\n    v9 = 0;\n    *(_QWORD *)&v9 = sub_14003AA10(0x20u);\n    v10 = 17;\n    v11 = 31;\n    strcpy((char *)v9, \"Unrating level...\");\n    p_m_featureState = &a1[-1].m_featureState;\n    if ( a1 == (GJRateLevelLayer *)960 )\n      p_m_featureState = nullptr;\n    v8 = UploadActionPopup::create((__int64)p_m_featureState, (__int64)&v9);\n    *(_QWORD *)&a1->m_fRotationX = v8;\n    v8->show(v8);\n  }\n}", "assembly": "; \n; GJRateLevelLayer::FLAlert_Clicked from 0x1402f5750 to 0x1402f58a5 (341 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405865f0\n; > <???> @ 0x1406d3fec\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\ntest    r8b, r8b                                                       ; +0x0, 0x1402f5750\njz      locret_1402F58A4                                               ; +0x3, 0x1402f5753\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1402f5759\nmov     [rsp+arg_8], rbp                                               ; +0xe, 0x1402f575e\nmov     [rsp+arg_10], rsi                                              ; +0x13, 0x1402f5763\npush    rdi                                                            ; +0x18, 0x1402f5768\nsub     rsp, 40h                                                       ; +0x19, 0x1402f5769\nmov     rbx, rcx                                                       ; +0x1d, 0x1402f576d\nmov     rax, [rdx]                                                     ; +0x20, 0x1402f5770\nmov     rcx, rdx                                                       ; +0x23, 0x1402f5773\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x1402f5776\ncmp     eax, 0FFFFFFFDh                                                ; +0x29, 0x1402f5779\njnz     loc_1402F5890                                                  ; +0x2c, 0x1402f577c\nmov     rax, cs:qword_1406C2EC0                                        ; +0x32, 0x1402f5782\ntest    rax, rax                                                       ; +0x39, 0x1402f5789\njnz     short loc_1402F57BD                                            ; +0x3c, 0x1402f578c\nmov     ecx, 3D0h; Size                                                ; +0x3e, 0x1402f578e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x43, 0x1402f5793\nmov     [rsp+48h+arg_18], rax                                          ; +0x48, 0x1402f5798\nmov     rcx, rax                                                       ; +0x4d, 0x1402f579d\ncall    sub_140141280                                                  ; +0x50, 0x1402f57a0\nnop                                                                    ; +0x55, 0x1402f57a5\nmov     cs:qword_1406C2EC0, rax                                        ; +0x56, 0x1402f57a6\nmov     rdx, [rax]                                                     ; +0x5d, 0x1402f57ad\nmov     rcx, rax                                                       ; +0x60, 0x1402f57b0\ncall    qword ptr [rdx+48h]                                            ; +0x63, 0x1402f57b3\nmov     rax, cs:qword_1406C2EC0                                        ; +0x66, 0x1402f57b6\nlea     rsi, [rbx-3C0h]                                                ; +0x6d, 0x1402f57bd\nlea     rdi, [rbx-10h]                                                 ; +0x74, 0x1402f57c4\nxor     ebp, ebp                                                       ; +0x78, 0x1402f57c8\ntest    rsi, rsi                                                       ; +0x7a, 0x1402f57ca\ncmovz   rdi, rbp                                                       ; +0x7d, 0x1402f57cd\ntest    rax, rax                                                       ; +0x81, 0x1402f57d1\njnz     short loc_1402F5805                                            ; +0x84, 0x1402f57d4\nmov     ecx, 3D0h; Size                                                ; +0x86, 0x1402f57d6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8b, 0x1402f57db\nmov     [rsp+48h+arg_18], rax                                          ; +0x90, 0x1402f57e0\nmov     rcx, rax                                                       ; +0x95, 0x1402f57e5\ncall    sub_140141280                                                  ; +0x98, 0x1402f57e8\nnop                                                                    ; +0x9d, 0x1402f57ed\nmov     cs:qword_1406C2EC0, rax                                        ; +0x9e, 0x1402f57ee\nmov     rdx, [rax]                                                     ; +0xa5, 0x1402f57f5\nmov     rcx, rax                                                       ; +0xa8, 0x1402f57f8\ncall    qword ptr [rdx+48h]                                            ; +0xab, 0x1402f57fb\nmov     rax, cs:qword_1406C2EC0                                        ; +0xae, 0x1402f57fe\nmov     [rax+328h], rdi                                                ; +0xb5, 0x1402f5805\nmov     rax, [rbx+38h]                                                 ; +0xbc, 0x1402f580c\ntest    rax, rax                                                       ; +0xc0, 0x1402f5810\njz      short loc_1402F581C                                            ; +0xc3, 0x1402f5813\nmov     [rax+278h], rbp                                                ; +0xc5, 0x1402f5815\nxorps   xmm0, xmm0                                                     ; +0xcc, 0x1402f581c\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xcf, 0x1402f581f\nmov     [rsp+48h+var_18], rbp                                          ; +0xd4, 0x1402f5824\nmov     [rsp+48h+var_10], 0Fh                                          ; +0xd9, 0x1402f5829\nmov     ecx, 20h ; ' '                                                 ; +0xe2, 0x1402f5832\ncall    sub_14003AA10                                                  ; +0xe7, 0x1402f5837\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0xec, 0x1402f583c\nmov     [rsp+48h+var_18], 11h                                          ; +0xf1, 0x1402f5841\nmov     [rsp+48h+var_10], 1Fh                                          ; +0xfa, 0x1402f584a\nmovups  xmm0, cs:xmmword_140586598                                     ; +0x103, 0x1402f5853\nmovups  xmmword ptr [rax], xmm0                                        ; +0x10a, 0x1402f585a\nmovzx   ecx, cs:byte_1405865A8                                         ; +0x10d, 0x1402f585d\nmov     [rax+10h], cl                                                  ; +0x114, 0x1402f5864\nmov     byte ptr [rax+11h], 0                                          ; +0x117, 0x1402f5867\nlea     rcx, [rbx-18h]                                                 ; +0x11b, 0x1402f586b\ntest    rsi, rsi                                                       ; +0x11f, 0x1402f586f\ncmovz   rcx, rbp                                                       ; +0x122, 0x1402f5872\nlea     rdx, [rsp+48h+var_28]                                          ; +0x126, 0x1402f5876\ncall    UploadActionPopup__create                                      ; +0x12b, 0x1402f587b\nmov     [rbx+38h], rax                                                 ; +0x130, 0x1402f5880\nmov     rdx, [rax]                                                     ; +0x134, 0x1402f5884\nmov     rcx, rax                                                       ; +0x137, 0x1402f5887\ncall    qword ptr [rdx+410h]                                           ; +0x13a, 0x1402f588a\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x140, 0x1402f5890\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x145, 0x1402f5895\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x14a, 0x1402f589a\nadd     rsp, 40h                                                       ; +0x14f, 0x1402f589f\npop     rdi                                                            ; +0x153, 0x1402f58a3\nretn                                                                   ; +0x154, 0x1402f58a4", "xrefs": ["<???> @ 0x1405865f0", "<???> @ 0x1406d3fec"], "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"}