{"type": "func", "start": 4300243400, "end": 4300243896, "name": "MemberListPopup::FLAlert_Clicked", "pseudocode": "// \n// MemberListPopup::FLAlert_Clicked from 0x1005081c8 to 0x1005083b8 (496 bytes)\n// \n// 2 xrefs:\n// > sub_1005083DC @ 0x1005083e0\n// > <???> @ 0x100998180\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:06:57 +0000\n// \n\nvoid __fastcall MemberListPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)\n{\n  __int64 v6; // x20\n  int v7; // w21\n  void *v8; // x0\n  char *CString; // x0\n  char v10; // w20\n  __int64 v11; // x20\n  int v12; // w21\n  void *v13; // x0\n  char *v14; // x0\n  char v15; // w20\n  __int64 v16; // x20\n  int v17; // w21\n  void *v18; // x0\n  char *v19; // x0\n  char v20; // w20\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v22; // [xsp+1Fh] [xbp-21h]\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 4 )\n  {\n    if ( !a3 || *(int *)(a1 + 868) <= 0 )\n      goto LABEL_7;\n    v6 = GameLevelManager::sharedState();\n    v7 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL);\n    v8 = sub_1003065B0(\"%i\", *(_DWORD *)(a1 + 868));\n    CString = (char *)cocos2d::CCString::getCString((__int64)v8);\n    sub_100009900(__p, CString);\n    v10 = sub_1000C8838(v6, v7, 6, (__int64)__p);\n    if ( v22 < 0 )\n      operator delete(__p[0]);\n    if ( (v10 & 1) == 0 )\n    {\nLABEL_7:\n      *(_DWORD *)(a1 + 868) = 0;\n      return;\n    }\nLABEL_21:\n    *(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 776;\n    return;\n  }\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 5 )\n  {\n    if ( !a3 || *(int *)(a1 + 872) <= 0 )\n      goto LABEL_14;\n    v11 = GameLevelManager::sharedState();\n    v12 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL);\n    v13 = sub_1003065B0(\"%i\", *(_DWORD *)(a1 + 872));\n    v14 = (char *)cocos2d::CCString::getCString((__int64)v13);\n    sub_100009900(__p, v14);\n    v15 = sub_1000C8838(v11, v12, 7, (__int64)__p);\n    if ( v22 < 0 )\n      operator delete(__p[0]);\n    if ( (v15 & 1) == 0 )\n    {\nLABEL_14:\n      *(_DWORD *)(a1 + 872) = 0;\n      return;\n    }\n    goto LABEL_21;\n  }\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 7 )\n    return;\n  if ( a3 && *(int *)(a1 + 876) > 0 )\n  {\n    v16 = GameLevelManager::sharedState();\n    v17 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL);\n    v18 = sub_1003065B0(\"%i\", *(_DWORD *)(a1 + 876));\n    v19 = (char *)cocos2d::CCString::getCString((__int64)v18);\n    sub_100009900(__p, v19);\n    v20 = sub_1000C8838(v16, v17, 11, (__int64)__p);\n    if ( v22 < 0 )\n      operator delete(__p[0]);\n    if ( (v20 & 1) != 0 )\n      goto LABEL_21;\n  }\n  *(_DWORD *)(a1 + 876) = 0;\n}", "assembly": "; \n; MemberListPopup::FLAlert_Clicked from 0x1005081c8 to 0x1005083b8 (496 bytes)\n; \n; 2 xrefs:\n; > sub_1005083DC @ 0x1005083e0\n; > <???> @ 0x100998180\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:06:57 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1005081c8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1005081cc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1005081d0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1005081d4\nADD             X29, SP, #0x40                                         ; +0x10, 0x1005081d8\nMOV             X20, X2                                                ; +0x14, 0x1005081dc\nMOV             X21, X1                                                ; +0x18, 0x1005081e0\nMOV             X19, X0                                                ; +0x1c, 0x1005081e4\nLDR             X8, [X1]                                               ; +0x20, 0x1005081e8\nLDR             X8, [X8,#0x40]                                         ; +0x24, 0x1005081ec\nMOV             X0, X1                                                 ; +0x28, 0x1005081f0\nBLR             X8                                                     ; +0x2c, 0x1005081f4\nCMP             W0, #4                                                 ; +0x30, 0x1005081f8\nB.NE            loc_100508278                                          ; +0x34, 0x1005081fc\nCBZ             W20, loc_100508270                                     ; +0x38, 0x100508200\nLDR             W8, [X19,#0x364]                                       ; +0x3c, 0x100508204\nCMP             W8, #0                                                 ; +0x40, 0x100508208\nB.LE            loc_100508270                                          ; +0x44, 0x10050820c\nBL              GameLevelManager__sharedState                          ; +0x48, 0x100508210\nMOV             X20, X0                                                ; +0x4c, 0x100508214\nLDR             X8, [X19,#0x320]                                       ; +0x50, 0x100508218\nLDR             W21, [X8,#0x38]                                        ; +0x54, 0x10050821c\nLDR             W8, [X19,#0x364]                                       ; +0x58, 0x100508220\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x5c, 0x100508224\nADRL            X0, aI; \"%i\"                                           ; +0x60, 0x100508228\nBL              sub_1003065B0                                          ; +0x68, 0x100508230\nBL              cocos2d__CCString__getCString                          ; +0x6c, 0x100508234\nMOV             X1, X0; __s                                            ; +0x70, 0x100508238\nADD             X0, SP, #0x40+__p; int                                 ; +0x74, 0x10050823c\nBL              sub_100009900                                          ; +0x78, 0x100508240\nADD             X3, SP, #0x40+__p                                      ; +0x7c, 0x100508244\nMOV             X0, X20                                                ; +0x80, 0x100508248\nMOV             X1, X21                                                ; +0x84, 0x10050824c\nMOV             W2, #6                                                 ; +0x88, 0x100508250\nBL              sub_1000C8838                                          ; +0x8c, 0x100508254\nMOV             X20, X0                                                ; +0x90, 0x100508258\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x94, 0x10050825c\nTBZ             W8, #0x1F, loc_10050826C                               ; +0x98, 0x100508260\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x9c, 0x100508264\nBL              __ZdlPv; operator delete(void *)                       ; +0xa0, 0x100508268\nTBNZ            W20, #0, loc_100508390                                 ; +0xa4, 0x10050826c\nSTR             WZR, [X19,#0x364]                                      ; +0xa8, 0x100508270\nB               loc_1005083A4                                          ; +0xac, 0x100508274\nLDR             X8, [X21]                                              ; +0xb0, 0x100508278\nLDR             X8, [X8,#0x40]                                         ; +0xb4, 0x10050827c\nMOV             X0, X21                                                ; +0xb8, 0x100508280\nBLR             X8                                                     ; +0xbc, 0x100508284\nCMP             W0, #5                                                 ; +0xc0, 0x100508288\nB.NE            loc_100508308                                          ; +0xc4, 0x10050828c\nCBZ             W20, loc_100508300                                     ; +0xc8, 0x100508290\nLDR             W8, [X19,#0x368]                                       ; +0xcc, 0x100508294\nCMP             W8, #0                                                 ; +0xd0, 0x100508298\nB.LE            loc_100508300                                          ; +0xd4, 0x10050829c\nBL              GameLevelManager__sharedState                          ; +0xd8, 0x1005082a0\nMOV             X20, X0                                                ; +0xdc, 0x1005082a4\nLDR             X8, [X19,#0x320]                                       ; +0xe0, 0x1005082a8\nLDR             W21, [X8,#0x38]                                        ; +0xe4, 0x1005082ac\nLDR             W8, [X19,#0x368]                                       ; +0xe8, 0x1005082b0\nSTR             X8, [SP,#0x40+var_40]                                  ; +0xec, 0x1005082b4\nADRL            X0, aI; \"%i\"                                           ; +0xf0, 0x1005082b8\nBL              sub_1003065B0                                          ; +0xf8, 0x1005082c0\nBL              cocos2d__CCString__getCString                          ; +0xfc, 0x1005082c4\nMOV             X1, X0; __s                                            ; +0x100, 0x1005082c8\nADD             X0, SP, #0x40+__p; int                                 ; +0x104, 0x1005082cc\nBL              sub_100009900                                          ; +0x108, 0x1005082d0\nADD             X3, SP, #0x40+__p                                      ; +0x10c, 0x1005082d4\nMOV             X0, X20                                                ; +0x110, 0x1005082d8\nMOV             X1, X21                                                ; +0x114, 0x1005082dc\nMOV             W2, #7                                                 ; +0x118, 0x1005082e0\nBL              sub_1000C8838                                          ; +0x11c, 0x1005082e4\nMOV             X20, X0                                                ; +0x120, 0x1005082e8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x124, 0x1005082ec\nTBZ             W8, #0x1F, loc_1005082FC                               ; +0x128, 0x1005082f0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x12c, 0x1005082f4\nBL              __ZdlPv; operator delete(void *)                       ; +0x130, 0x1005082f8\nTBNZ            W20, #0, loc_100508390                                 ; +0x134, 0x1005082fc\nSTR             WZR, [X19,#0x368]                                      ; +0x138, 0x100508300\nB               loc_1005083A4                                          ; +0x13c, 0x100508304\nLDR             X8, [X21]                                              ; +0x140, 0x100508308\nLDR             X8, [X8,#0x40]                                         ; +0x144, 0x10050830c\nMOV             X0, X21                                                ; +0x148, 0x100508310\nBLR             X8                                                     ; +0x14c, 0x100508314\nCMP             W0, #7                                                 ; +0x150, 0x100508318\nB.NE            loc_1005083A4                                          ; +0x154, 0x10050831c\nCBZ             W20, loc_1005083A0                                     ; +0x158, 0x100508320\nLDR             W8, [X19,#0x36C]                                       ; +0x15c, 0x100508324\nCMP             W8, #0                                                 ; +0x160, 0x100508328\nB.LE            loc_1005083A0                                          ; +0x164, 0x10050832c\nBL              GameLevelManager__sharedState                          ; +0x168, 0x100508330\nMOV             X20, X0                                                ; +0x16c, 0x100508334\nLDR             X8, [X19,#0x320]                                       ; +0x170, 0x100508338\nLDR             W21, [X8,#0x38]                                        ; +0x174, 0x10050833c\nLDR             W8, [X19,#0x36C]                                       ; +0x178, 0x100508340\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x17c, 0x100508344\nADRL            X0, aI; \"%i\"                                           ; +0x180, 0x100508348\nBL              sub_1003065B0                                          ; +0x188, 0x100508350\nBL              cocos2d__CCString__getCString                          ; +0x18c, 0x100508354\nMOV             X1, X0; __s                                            ; +0x190, 0x100508358\nADD             X0, SP, #0x40+__p; int                                 ; +0x194, 0x10050835c\nBL              sub_100009900                                          ; +0x198, 0x100508360\nADD             X3, SP, #0x40+__p                                      ; +0x19c, 0x100508364\nMOV             X0, X20                                                ; +0x1a0, 0x100508368\nMOV             X1, X21                                                ; +0x1a4, 0x10050836c\nMOV             W2, #0xB                                               ; +0x1a8, 0x100508370\nBL              sub_1000C8838                                          ; +0x1ac, 0x100508374\nMOV             X20, X0                                                ; +0x1b0, 0x100508378\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x1b4, 0x10050837c\nTBZ             W8, #0x1F, loc_10050838C                               ; +0x1b8, 0x100508380\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x1bc, 0x100508384\nBL              __ZdlPv; operator delete(void *)                       ; +0x1c0, 0x100508388\nTBZ             W20, #0, loc_1005083A0                                 ; +0x1c4, 0x10050838c\nBL              GameLevelManager__sharedState                          ; +0x1c8, 0x100508390\nADD             X8, X19, #0x308                                        ; +0x1cc, 0x100508394\nSTR             X8, [X0,#0x4F0]                                        ; +0x1d0, 0x100508398\nB               loc_1005083A4                                          ; +0x1d4, 0x10050839c\nSTR             WZR, [X19,#0x36C]                                      ; +0x1d8, 0x1005083a0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x1dc, 0x1005083a4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x1e0, 0x1005083a8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x1e4, 0x1005083ac\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x1e8, 0x1005083b0\nRET                                                                    ; +0x1ec, 0x1005083b4", "xrefs": ["sub_1005083DC @ 0x1005083e0", "<???> @ 0x100998180"], "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"}