{"type": "func", "start": 3979596, "end": 3979674, "name": "FLAlertLayer::ownedTouchPrio", "pseudocode": "// \n// FLAlertLayer::ownedTouchPrio from 0x3cb94c to 0x3cb99a (78 bytes)\n// \n// 0 xrefs:\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::ownedTouchPrio(FLAlertLayer *this, int a2, int a3)\n{\n  int v5; // r0\n  cocos2d::CCTouchDispatcher *v6; // r0\n  int v7; // r0\n  int v8; // r0\n  int v10[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v10[1] = a2;\n  v10[2] = a3;\n  v10[0] = 0;\n  v5 = cocos2d::CCDirector::sharedDirector(this);\n  v6 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5);\n  if ( cocos2d::CCTouchDispatcher::ownerLevelOf(v6, this, v10) )\n  {\n    v7 = v10[0];\n  }\n  else\n  {\n    v8 = cocos2d::CCDirector::sharedDirector(nullptr);\n    v7 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v8 + 80))(v8) + 100);\n  }\n  return v7 + a2;\n}", "assembly": "; \n; FLAlertLayer::ownedTouchPrio from 0x3cb94c to 0x3cb99a (78 bytes)\n; \n; 0 xrefs:\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3cb94c\nADD             R5, SP, #0xC+var_4                                     ; +0x2, 0x3cb94e\nLDR             R4, =(__stack_chk_guard_ptr - 0x3CB95A)                ; +0x4, 0x3cb950\nMOV             R6, R1                                                 ; +0x6, 0x3cb952\nMOV             R7, R0                                                 ; +0x8, 0x3cb954\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3cb956\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x3cb958\nLDR             R3, [R4]                                               ; +0xe, 0x3cb95a\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x10, 0x3cb95c\nMOVS            R3, #0                                                 ; +0x12, 0x3cb95e\nSTR.W           R3, [R5,#-8]!                                          ; +0x14, 0x3cb960\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x3cb964\nLDR             R3, [R0]                                               ; +0x1c, 0x3cb968\nLDR             R3, [R3,#0x50]                                         ; +0x1e, 0x3cb96a\nBLX             R3                                                     ; +0x20, 0x3cb96c\nMOV             R1, R7; cocos2d::CCNode *                              ; +0x22, 0x3cb96e\nMOV             R2, R5; int *                                          ; +0x24, 0x3cb970\nBL              _ZN7cocos2d17CCTouchDispatcher12ownerLevelOfEPNS_6CCNodeERi; cocos2d::CCTouchDispatcher::ownerLevelOf(cocos2d::CCNode *,int &) ; +0x26, 0x3cb972\nCBZ             R0, loc_3CB97C                                         ; +0x2a, 0x3cb976\nLDR             R0, [SP,#0xC+var_C]                                    ; +0x2c, 0x3cb978\nB               loc_3CB988                                             ; +0x2e, 0x3cb97a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x3cb97c\nLDR             R3, [R0]                                               ; +0x34, 0x3cb980\nLDR             R3, [R3,#0x50]                                         ; +0x36, 0x3cb982\nBLX             R3                                                     ; +0x38, 0x3cb984\nLDR             R0, [R0,#0x64]                                         ; +0x3a, 0x3cb986\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x3c, 0x3cb988\nADD             R0, R6                                                 ; +0x3e, 0x3cb98a\nLDR             R3, [R4]                                               ; +0x40, 0x3cb98c\nCMP             R2, R3                                                 ; +0x42, 0x3cb98e\nBEQ             loc_3CB996                                             ; +0x44, 0x3cb990\nBLX             __stack_chk_fail                                       ; +0x46, 0x3cb992\nADD             SP, SP, #0xC                                           ; +0x4a, 0x3cb996\nPOP             {R4-R7,PC}                                             ; +0x4c, 0x3cb998", "xrefs": [], "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"}