// // cocos2d::extension::CCControl::removeTargetWithActionForControlEvents from 0x180004150 to 0x180004275 (293 bytes) // // 12 xrefs: // > @ 0x180026058 // > @ 0x180026678 // > @ 0x180026bf8 // > @ 0x180027330 // > @ 0x180027900 // > @ 0x180027f08 // > @ 0x1800284d8 // > @ 0x180028ac8 // > @ 0x180029110 // > @ 0x18002a5f0 // > @ 0x180032408 // > @ 0x18004b360 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:15:35 +0000 // __int64 __fastcall cocos2d::extension::CCControl::removeTargetWithActionForControlEvents( __int64 a1, __int64 a2, __int64 a3, unsigned int a4) { __int64 result; // rax int v8; // r14d __int64 v9; // r12 struct cocos2d::CCObject *v10; // rsi unsigned int *v11; // rbx __int64 v12; // rax struct cocos2d::CCObject **v13; // rbx struct cocos2d::CCObject **v14; // r15 struct cocos2d::CCObject *v15; // rdx bool v16; // al result = a4; v8 = 1; v9 = 9; do { if ( (v8 & (unsigned int)result) == 0 ) goto LABEL_22; v10 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 448), v8); if ( !v10 ) { v10 = cocos2d::CCArray::createWithCapacity(1u); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 448), v10, (unsigned int)v8); } if ( a2 || a3 ) { if ( !v10 ) goto LABEL_21; v11 = *((unsigned int **)v10 + 7); v12 = *v11; if ( !(_DWORD)v12 ) goto LABEL_21; v13 = *((struct cocos2d::CCObject ***)v11 + 2); v14 = &v13[v12 - 1]; if ( v13 > v14 ) goto LABEL_21; while ( 1 ) { v15 = *v13; if ( !*v13 ) goto LABEL_21; v16 = 1; if ( a2 ) v16 = a2 == *((_QWORD *)v15 + 8); if ( a3 ) break; if ( v16 ) goto LABEL_19; LABEL_20: if ( ++v13 > v14 ) goto LABEL_21; } if ( !v16 || a3 != *((_QWORD *)v15 + 7) ) goto LABEL_20; LABEL_19: cocos2d::CCArray::removeObject(v10, v15, 1); goto LABEL_20; } cocos2d::CCArray::removeAllObjects(v10); LABEL_21: result = a4; LABEL_22: v8 = __ROL4__(v8, 1); --v9; } while ( v9 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source