{"type": "func", "start": 3978756, "end": 3978818, "name": "FLAlertLayer::onButtonTag", "pseudocode": "// \n// FLAlertLayer::onButtonTag from 0x3cb604 to 0x3cb642 (62 bytes)\n// \n// 3 xrefs:\n// > FLAlertLayer::keyBackClicked @ 0x3cb676\n// > FLAlertLayer::onButton @ 0x3cb696\n// > FLAlertLayer::keyDown @ 0x3cc3e8\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:46:37 +0000\n// \n\nint __fastcall FLAlertLayer::onButtonTag(FLAlertLayer *this, int a2)\n{\n  int v4; // r0\n  cocos2d::CCTouchDispatcher *v5; // r0\n  void (__fastcall ***v6)(_DWORD, FLAlertLayer *, bool); // r0\n\n  v4 = cocos2d::CCDirector::sharedDirector(this);\n  v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, this);\n  if ( a2 != 2 )\n  {\n    v6 = *((void (__fastcall ****)(_DWORD, FLAlertLayer *, bool))this + 112);\n    if ( v6 )\n      (**v6)(v6, this, a2 == 1);\n  }\n  return (*(int (__fastcall **)(FLAlertLayer *, int))(*(_DWORD *)this + 264))(this, 1);\n}", "assembly": "; \n; FLAlertLayer::onButtonTag from 0x3cb604 to 0x3cb642 (62 bytes)\n; \n; 3 xrefs:\n; > FLAlertLayer::keyBackClicked @ 0x3cb676\n; > FLAlertLayer::onButton @ 0x3cb696\n; > FLAlertLayer::keyDown @ 0x3cc3e8\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:46:37 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3cb604\nMOV             R5, R1                                                 ; +0x2, 0x3cb606\nMOV             R4, R0                                                 ; +0x4, 0x3cb608\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x6, 0x3cb60a\nLDR             R3, [R0]                                               ; +0xa, 0x3cb60e\nLDR             R3, [R3,#0x50]                                         ; +0xc, 0x3cb610\nBLX             R3                                                     ; +0xe, 0x3cb612\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x10, 0x3cb614\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x12, 0x3cb616\nCMP             R5, #2                                                 ; +0x16, 0x3cb61a\nBEQ             loc_3CB632                                             ; +0x18, 0x3cb61c\nLDR.W           R0, [R4,#0x1C0]                                        ; +0x1a, 0x3cb61e\nCBZ             R0, loc_3CB632                                         ; +0x1e, 0x3cb622\nLDR             R3, [R0]                                               ; +0x20, 0x3cb624\nSUBS            R5, #1                                                 ; +0x22, 0x3cb626\nNEGS            R2, R5                                                 ; +0x24, 0x3cb628\nMOV             R1, R4                                                 ; +0x26, 0x3cb62a\nADCS            R2, R5                                                 ; +0x28, 0x3cb62c\nLDR             R3, [R3]                                               ; +0x2a, 0x3cb62e\nBLX             R3                                                     ; +0x2c, 0x3cb630\nLDR             R3, [R4]                                               ; +0x2e, 0x3cb632\nMOV             R0, R4                                                 ; +0x30, 0x3cb634\nMOVS            R1, #1                                                 ; +0x32, 0x3cb636\nPOP.W           {R4-R6,LR}                                             ; +0x34, 0x3cb638\nLDR.W           R3, [R3,#0x108]                                        ; +0x38, 0x3cb63c\nBX              R3                                                     ; +0x3c, 0x3cb640", "xrefs": ["FLAlertLayer::keyBackClicked @ 0x3cb676", "FLAlertLayer::onButton @ 0x3cb696", "FLAlertLayer::keyDown @ 0x3cc3e8"], "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"}