{"type": "func", "start": 3059180, "end": 3059258, "name": "FLAlertLayer::ccTouchBegan", "pseudocode": "// \n// FLAlertLayer::ccTouchBegan from 0x2eadec to 0x2eae3a (78 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'FLAlertLayer::ccTouchBegan @ 0x2eae3e\n// > CreateParticlePopup::ccTouchBegan @ 0x52f67a\n// > SetupTriggerPopup::ccTouchBegan @ 0x540a7e\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\nbool FLAlertLayer::ccTouchBegan(FLAlertLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCMenu *m_buttonMenu; // r0\n  ScrollingLayer *m_scrollingLayer; // r0\n\n  if ( a1->m_joystickConnected == -1\n    && (m_buttonMenu = a1->m_buttonMenu) != nullptr\n    && ((int (__fastcall *)(cocos2d::CCMenu *))m_buttonMenu->ccTouchBegan)(m_buttonMenu) )\n  {\n    a1->m_joystickConnected = a2->m_nId;\n  }\n  else\n  {\n    m_scrollingLayer = a1->m_scrollingLayer;\n    if ( m_scrollingLayer\n      && a1->m_controlConnected == -1\n      && ((int (__fastcall *)(ScrollingLayer *, cocos2d::CCTouch *, cocos2d::CCEvent *))m_scrollingLayer->ccTouchBegan)(\n           m_scrollingLayer,\n           a2,\n           a3) )\n    {\n      a1->m_controlConnected = a2->m_nId;\n    }\n  }\n  return 1;\n}", "assembly": "; \n; FLAlertLayer::ccTouchBegan from 0x2eadec to 0x2eae3a (78 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'FLAlertLayer::ccTouchBegan @ 0x2eae3e\n; > CreateParticlePopup::ccTouchBegan @ 0x52f67a\n; > SetupTriggerPopup::ccTouchBegan @ 0x540a7e\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\nLDR.W           R3, [R0,#0x1E8]                                        ; +0x0, 0x2eadec\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x2eadf0\nADDS            R3, #1                                                 ; +0x6, 0x2eadf2\nMOV             R4, R0                                                 ; +0x8, 0x2eadf4\nMOV             R5, R1                                                 ; +0xa, 0x2eadf6\nMOV             R6, R2                                                 ; +0xc, 0x2eadf8\nBNE             loc_2EAE14                                             ; +0xe, 0x2eadfa\nLDR.W           R0, [R0,#0x1B8]                                        ; +0x10, 0x2eadfc\nCBZ             R0, loc_2EAE14                                         ; +0x14, 0x2eae00\nLDR             R3, [R0]                                               ; +0x16, 0x2eae02\nLDR.W           R3, [R3,#0x1B8]                                        ; +0x18, 0x2eae04\nBLX             R3                                                     ; +0x1c, 0x2eae08\nCBZ             R0, loc_2EAE14                                         ; +0x1e, 0x2eae0a\nLDR             R3, [R5,#0x34]                                         ; +0x20, 0x2eae0c\nSTR.W           R3, [R4,#0x1E8]                                        ; +0x22, 0x2eae0e\nB               loc_2EAE36                                             ; +0x26, 0x2eae12\nLDR.W           R0, [R4,#0x1DC]                                        ; +0x28, 0x2eae14\nCBZ             R0, loc_2EAE36                                         ; +0x2c, 0x2eae18\nLDR.W           R3, [R4,#0x1E0]                                        ; +0x2e, 0x2eae1a\nADDS            R3, #1                                                 ; +0x32, 0x2eae1e\nBNE             loc_2EAE36                                             ; +0x34, 0x2eae20\nLDR             R3, [R0]                                               ; +0x36, 0x2eae22\nMOV             R1, R5                                                 ; +0x38, 0x2eae24\nMOV             R2, R6                                                 ; +0x3a, 0x2eae26\nLDR.W           R3, [R3,#0x1B8]                                        ; +0x3c, 0x2eae28\nBLX             R3                                                     ; +0x40, 0x2eae2c\nCBZ             R0, loc_2EAE36                                         ; +0x42, 0x2eae2e\nLDR             R3, [R5,#0x34]                                         ; +0x44, 0x2eae30\nSTR.W           R3, [R4,#0x1E0]                                        ; +0x46, 0x2eae32\nMOVS            R0, #1                                                 ; +0x4a, 0x2eae36\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x2eae38", "xrefs": ["`non-virtual thunk to'FLAlertLayer::ccTouchBegan @ 0x2eae3e", "CreateParticlePopup::ccTouchBegan @ 0x52f67a", "SetupTriggerPopup::ccTouchBegan @ 0x540a7e"], "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"}