{"type": "func", "start": 4297353652, "end": 4297353832, "name": "GJRateLevelLayer::FLAlert_Clicked", "pseudocode": "// \n// GJRateLevelLayer::FLAlert_Clicked from 0x1002469b4 to 0x100246a68 (180 bytes)\n// \n// 2 xrefs:\n// > sub_100246A84 @ 0x100246a88\n// > <???> @ 0x100908328\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 11:01:26 +0000\n// \n\n__int64 __fastcall GJRateLevelLayer::FLAlert_Clicked(__int64 result, __int64 a2, int a3)\n{\n  __int64 v3; // x19\n  __int64 v4; // x8\n  __int64 v5; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  if ( a3 )\n  {\n    v3 = result;\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    if ( (_DWORD)result == -3 )\n    {\n      GameLevelManager::sharedState();\n      result = sub_1000C97A0();\n      if ( (_DWORD)result )\n      {\n        *(_QWORD *)(GameLevelManager::sharedState() + 1360) = v3 + 1024;\n        v4 = *(_QWORD *)(v3 + 1096);\n        if ( v4 )\n          *(_QWORD *)(v4 + 664) = 0;\n        sub_100009900(__p, \"Unrating level...\");\n        v5 = UploadActionPopup::create(v3 + 1016, __p);\n        *(_QWORD *)(v3 + 1096) = v5;\n        if ( v7 < 0 )\n        {\n          operator delete(__p[0]);\n          v5 = *(_QWORD *)(v3 + 1096);\n        }\n        return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRateLevelLayer::FLAlert_Clicked from 0x1002469b4 to 0x100246a68 (180 bytes)\n; \n; 2 xrefs:\n; > sub_100246A84 @ 0x100246a88\n; > <???> @ 0x100908328\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 11:01:26 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002469b4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1002469b8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1002469bc\nADD             X29, SP, #0x30                                         ; +0xc, 0x1002469c0\nCBZ             W2, loc_100246A58                                      ; +0x10, 0x1002469c4\nMOV             X19, X0                                                ; +0x14, 0x1002469c8\nLDR             X8, [X1]                                               ; +0x18, 0x1002469cc\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1002469d0\nMOV             X0, X1                                                 ; +0x20, 0x1002469d4\nBLR             X8                                                     ; +0x24, 0x1002469d8\nCMN             W0, #3                                                 ; +0x28, 0x1002469dc\nB.NE            loc_100246A58                                          ; +0x2c, 0x1002469e0\nBL              GameLevelManager__sharedState                          ; +0x30, 0x1002469e4\nLDR             X8, [X19,#0x418]                                       ; +0x34, 0x1002469e8\nLDR             W9, [X8,#0x148]                                        ; +0x38, 0x1002469ec\nLDR             W8, [X8,#0x14C]                                        ; +0x3c, 0x1002469f0\nSUB             W1, W9, W8                                             ; +0x40, 0x1002469f4\nBL              sub_1000C97A0                                          ; +0x44, 0x1002469f8\nCBZ             W0, loc_100246A58                                      ; +0x48, 0x1002469fc\nBL              GameLevelManager__sharedState                          ; +0x4c, 0x100246a00\nADD             X8, X19, #0x400                                        ; +0x50, 0x100246a04\nSTR             X8, [X0,#0x550]                                        ; +0x54, 0x100246a08\nLDR             X8, [X19,#0x448]                                       ; +0x58, 0x100246a0c\nCBZ             X8, loc_100246A18                                      ; +0x5c, 0x100246a10\nSTR             XZR, [X8,#0x298]                                       ; +0x60, 0x100246a14\nADRL            X1, aUnratingLevel; \"Unrating level...\"                ; +0x64, 0x100246a18\nADD             X0, SP, #0x30+__p; int                                 ; +0x6c, 0x100246a20\nBL              sub_100009900                                          ; +0x70, 0x100246a24\nADD             X0, X19, #0x3F8                                        ; +0x74, 0x100246a28\nADD             X1, SP, #0x30+__p                                      ; +0x78, 0x100246a2c\nBL              UploadActionPopup__create                              ; +0x7c, 0x100246a30\nSTR             X0, [X19,#0x448]                                       ; +0x80, 0x100246a34\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x84, 0x100246a38\nTBZ             W8, #0x1F, loc_100246A4C                               ; +0x88, 0x100246a3c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x8c, 0x100246a40\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x100246a44\nLDR             X0, [X19,#0x448]                                       ; +0x94, 0x100246a48\nLDR             X8, [X0]                                               ; +0x98, 0x100246a4c\nLDR             X8, [X8,#0x520]                                        ; +0x9c, 0x100246a50\nBLR             X8                                                     ; +0xa0, 0x100246a54\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa4, 0x100246a58\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa8, 0x100246a5c\nADD             SP, SP, #0x40 ; '@'                                    ; +0xac, 0x100246a60\nRET                                                                    ; +0xb0, 0x100246a64", "xrefs": ["sub_100246A84 @ 0x100246a88", "<???> @ 0x100908328"], "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"}