{"type": "func", "start": 4295149404, "end": 4295149640, "name": "LevelInfoLayer::cellPerformedAction", "pseudocode": "// \n// LevelInfoLayer::cellPerformedAction from 0x10002c75c to 0x10002c848 (236 bytes)\n// \n// 2 xrefs:\n// > sub_10002C87C @ 0x10002c880\n// > <???> @ 0x1008b0960\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:57:28 +0000\n// \n\n__int64 __fastcall LevelInfoLayer::cellPerformedAction(__int64 a1, __int64 a2, int a3, int a4, __int64 a5)\n{\n  __int64 result; // x0\n  __int64 v7; // x8\n  __int64 v9; // x0\n  __int64 v10; // x19\n  __int64 v11; // x0\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v13; // [xsp+17h] [xbp-29h]\n  void *v14[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v15; // [xsp+2Fh] [xbp-11h]\n\n  result = 0;\n  if ( a3 == 28 && a4 == 1 )\n  {\n    v7 = *(_QWORD *)(a1 + 504);\n    if ( v7 )\n    {\n      v9 = GJLevelList::addLevelToList(*(_QWORD *)(a2 + 552), v7);\n      if ( a5 )\n        v9 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a5 + 1328LL))(a5, 0);\n      v10 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v9) + 272);\n      sub_100009900(v14, \"Added to Level List\");\n      sub_100009900(__p, \"\");\n      v11 = TextAlertPopup::create(v14, 255, __p, 1.0, 0.5);\n      (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v10 + 464LL))(v10, v11, 115);\n      if ( v13 < 0 )\n        operator delete(__p[0]);\n      if ( v15 < 0 )\n        operator delete(v14[0]);\n      return 1;\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; LevelInfoLayer::cellPerformedAction from 0x10002c75c to 0x10002c848 (236 bytes)\n; \n; 2 xrefs:\n; > sub_10002C87C @ 0x10002c880\n; > <???> @ 0x1008b0960\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:57:28 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x10002c75c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x10002c760\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x10002c764\nADD             X29, SP, #0x40                                         ; +0xc, 0x10002c768\nMOV             X8, X0                                                 ; +0x10, 0x10002c76c\nMOV             W0, #0                                                 ; +0x14, 0x10002c770\nCMP             W2, #0x1C                                              ; +0x18, 0x10002c774\nB.NE            loc_10002C838                                          ; +0x1c, 0x10002c778\nCMP             W3, #1                                                 ; +0x20, 0x10002c77c\nB.NE            loc_10002C838                                          ; +0x24, 0x10002c780\nLDR             X8, [X8,#0x1F8]                                        ; +0x28, 0x10002c784\nCBZ             X8, loc_10002C834                                      ; +0x2c, 0x10002c788\nMOV             X19, X4                                                ; +0x30, 0x10002c78c\nLDR             X0, [X1,#0x228]                                        ; +0x34, 0x10002c790\nMOV             X1, X8                                                 ; +0x38, 0x10002c794\nBL              GJLevelList__addLevelToList                            ; +0x3c, 0x10002c798\nCBZ             X19, loc_10002C7B4                                     ; +0x40, 0x10002c79c\nLDR             X8, [X19]                                              ; +0x44, 0x10002c7a0\nLDR             X8, [X8,#0x530]                                        ; +0x48, 0x10002c7a4\nMOV             X0, X19                                                ; +0x4c, 0x10002c7a8\nMOV             X1, #0                                                 ; +0x50, 0x10002c7ac\nBLR             X8                                                     ; +0x54, 0x10002c7b0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x58, 0x10002c7b4\nLDR             X19, [X0,#0x110]                                       ; +0x5c, 0x10002c7b8\nADRL            X1, aAddedToLevelLi; \"Added to Level List\"             ; +0x60, 0x10002c7bc\nADD             X0, SP, #0x40+var_28; int                              ; +0x68, 0x10002c7c4\nBL              sub_100009900                                          ; +0x6c, 0x10002c7c8\nADRL            X1, asc_10088BE68; \"\"                                  ; +0x70, 0x10002c7cc\nMOV             X0, SP; int                                            ; +0x78, 0x10002c7d4\nBL              sub_100009900                                          ; +0x7c, 0x10002c7d8\nADD             X0, SP, #0x40+var_28                                   ; +0x80, 0x10002c7dc\nFMOV            S0, #1.0                                               ; +0x84, 0x10002c7e0\nFMOV            S1, #0.5                                               ; +0x88, 0x10002c7e4\nMOV             X2, SP                                                 ; +0x8c, 0x10002c7e8\nMOV             W1, #0xFF                                              ; +0x90, 0x10002c7ec\nBL              TextAlertPopup__create                                 ; +0x94, 0x10002c7f0\nMOV             X1, X0                                                 ; +0x98, 0x10002c7f4\nLDR             X8, [X19]                                              ; +0x9c, 0x10002c7f8\nLDR             X8, [X8,#0x1D0]                                        ; +0xa0, 0x10002c7fc\nMOV             X0, X19                                                ; +0xa4, 0x10002c800\nMOV             W2, #0x73 ; 's'                                        ; +0xa8, 0x10002c804\nBLR             X8                                                     ; +0xac, 0x10002c808\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0xb0, 0x10002c80c\nTBZ             W8, #0x1F, loc_10002C81C                               ; +0xb4, 0x10002c810\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xb8, 0x10002c814\nBL              __ZdlPv; operator delete(void *)                       ; +0xbc, 0x10002c818\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0xc0, 0x10002c81c\nTBZ             W8, #0x1F, loc_10002C82C                               ; +0xc4, 0x10002c820\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0xc8, 0x10002c824\nBL              __ZdlPv; operator delete(void *)                       ; +0xcc, 0x10002c828\nMOV             W0, #1                                                 ; +0xd0, 0x10002c82c\nB               loc_10002C838                                          ; +0xd4, 0x10002c830\nMOV             W0, #0                                                 ; +0xd8, 0x10002c834\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xdc, 0x10002c838\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xe0, 0x10002c83c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xe4, 0x10002c840\nRET                                                                    ; +0xe8, 0x10002c844", "xrefs": ["sub_10002C87C @ 0x10002c880", "<???> @ 0x1008b0960"], "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"}