{"type": "func", "start": 4298053616, "end": 4298053740, "name": "CustomSFXWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSFXWidget::FLAlert_Clicked from 0x1002f17f0 to 0x1002f186c (124 bytes)\n// \n// 2 xrefs:\n// > sub_1002F186C @ 0x1002f1870\n// > <???> @ 0x1007e79f8\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\nvoid __fastcall CustomSFXWidget::FLAlert_Clicked(CustomSFXWidget *a1, FLAlertLayer *a2, bool a3)\n{\n  _BOOL4 v3; // w20\n  int v5; // w0\n  GameManager *v7; // x0\n  cocos2d::CCObject *v8; // x1\n\n  v3 = a3;\n  v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);\n  if ( v5 == 3 )\n  {\n    if ( v3 )\n      CustomSFXWidget::deleteSFX(a1);\n  }\n  else if ( v5 == 1 && v3 )\n  {\n    v7 = GameManager::sharedState();\n    GameManager::setGameVariable(v7, \"0016\", 1);\n    CustomSFXWidget::onDownload(a1, v8);\n  }\n}", "assembly": "; \n; CustomSFXWidget::FLAlert_Clicked from 0x1002f17f0 to 0x1002f186c (124 bytes)\n; \n; 2 xrefs:\n; > sub_1002F186C @ 0x1002f1870\n; > <???> @ 0x1007e79f8\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002f17f0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002f17f4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002f17f8\nMOV             X20, X2                                                ; +0xc, 0x1002f17fc\nMOV             X19, X0                                                ; +0x10, 0x1002f1800\nLDR             X8, [X1]                                               ; +0x14, 0x1002f1804\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x1002f1808\nMOV             X0, X1                                                 ; +0x1c, 0x1002f180c\nBLR             X8                                                     ; +0x20, 0x1002f1810\nCMP             W0, #3                                                 ; +0x24, 0x1002f1814\nB.EQ            loc_1002F184C                                          ; +0x28, 0x1002f1818\nCMP             W0, #1                                                 ; +0x2c, 0x1002f181c\nCCMP            W20, #0, #4, EQ                                        ; +0x30, 0x1002f1820\nB.EQ            loc_1002F1860                                          ; +0x34, 0x1002f1824\nBL              GameManager__sharedState                               ; +0x38, 0x1002f1828\nADRL            X1, a0016; \"0016\"                                      ; +0x3c, 0x1002f182c\nMOV             W2, #1                                                 ; +0x44, 0x1002f1834\nBL              GameManager__setGameVariable                           ; +0x48, 0x1002f1838\nMOV             X0, X19                                                ; +0x4c, 0x1002f183c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x1002f1840\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x1002f1844\nB               CustomSFXWidget__onDownload                            ; +0x58, 0x1002f1848\nCBZ             W20, loc_1002F1860                                     ; +0x5c, 0x1002f184c\nMOV             X0, X19                                                ; +0x60, 0x1002f1850\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x1002f1854\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x1002f1858\nB               CustomSFXWidget__deleteSFX                             ; +0x6c, 0x1002f185c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1002f1860\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x1002f1864\nRET                                                                    ; +0x78, 0x1002f1868", "xrefs": ["sub_1002F186C @ 0x1002f1870", "<???> @ 0x1007e79f8"], "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"}