{"type": "func", "start": 5135508, "end": 5135576, "name": "CustomSongWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSongWidget::FLAlert_Clicked from 0x4e5c94 to 0x4e5cd8 (68 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x4e5ce0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:05 +0000\n// \n\nFMODAudioEngine *__fastcall CustomSongWidget::FLAlert_Clicked(CustomSongWidget *this, FLAlertLayer *a2, int a3)\n{\n  FMODAudioEngine *result; // r0\n  GameManager *v6; // r0\n  int v7; // r2\n  int v8; // r3\n\n  result = (FMODAudioEngine *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);\n  if ( result == (FMODAudioEngine *)((char *)&dword_0 + 1) )\n  {\n    if ( a3 )\n    {\n      v6 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));\n      GameManager::setGameVariable(v6, \"0016\", (_BYTE *)&dword_0 + 1);\n      return CustomSongWidget::onDownload(this, nullptr, v7, v8);\n    }\n  }\n  else if ( result == (FMODAudioEngine *)((char *)&dword_0 + 2) )\n  {\n    if ( a3 )\n      return CustomSongWidget::deleteSong(this);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::FLAlert_Clicked from 0x4e5c94 to 0x4e5cd8 (68 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x4e5ce0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:05 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4e5c94\nMOV             R5, R0                                                 ; +0x2, 0x4e5c96\nLDR             R3, [R1]                                               ; +0x4, 0x4e5c98\nMOV             R0, R1                                                 ; +0x6, 0x4e5c9a\nMOV             R6, R2                                                 ; +0x8, 0x4e5c9c\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x4e5c9e\nBLX             R3                                                     ; +0xc, 0x4e5ca0\nCMP             R0, #1                                                 ; +0xe, 0x4e5ca2\nMOV             R4, R0                                                 ; +0x10, 0x4e5ca4\nBEQ             loc_4E5CAE                                             ; +0x12, 0x4e5ca6\nCMP             R0, #2                                                 ; +0x14, 0x4e5ca8\nBEQ             loc_4E5CCA                                             ; +0x16, 0x4e5caa\nPOP             {R4-R6,PC}                                             ; +0x18, 0x4e5cac\nCBZ             R6, locret_4E5CD6                                      ; +0x1a, 0x4e5cae\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x4e5cb0\nLDR             R1, =(a0016 - 0x4E5CBC); \"0016\"                        ; +0x20, 0x4e5cb4\nMOV             R2, R4; bool                                           ; +0x22, 0x4e5cb6\nADD             R1, PC; \"0016\"                                         ; +0x24, 0x4e5cb8\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x26, 0x4e5cba\nMOV             R0, R5; this                                           ; +0x2a, 0x4e5cbe\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2c, 0x4e5cc0\nPOP.W           {R4-R6,LR}                                             ; +0x2e, 0x4e5cc2\nB.W             _ZN16CustomSongWidget10onDownloadEPN7cocos2d8CCObjectE; CustomSongWidget::onDownload(cocos2d::CCObject *) ; +0x32, 0x4e5cc6\nCBZ             R6, locret_4E5CD6                                      ; +0x36, 0x4e5cca\nMOV             R0, R5; this                                           ; +0x38, 0x4e5ccc\nPOP.W           {R4-R6,LR}                                             ; +0x3a, 0x4e5cce\nB.W             _ZN16CustomSongWidget10deleteSongEv; CustomSongWidget::deleteSong(void) ; +0x3e, 0x4e5cd2\nPOP             {R4-R6,PC}                                             ; +0x42, 0x4e5cd6", "xrefs": ["`non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x4e5ce0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}