// // cocos2d::CCComponentContainer::get from 0x1800966b0 to 0x180096880 (464 bytes) // // 3 xrefs: // > @ 0x180104598 // > @ 0x1801438a8 // > @ 0x1801b68f4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 struct cocos2d::CCComponent *__fastcall cocos2d::CCComponentContainer::get( cocos2d::CCComponentContainer *this, const char *a2) { __int64 v4; // r14 size_t v5; // rbx __int64 v6; // rdi size_t v7; // rax void *v8; // rax _QWORD *v9; // rsi __int64 v10; // rax void *v11; // rcx void *Block[2]; // [rsp+30h] [rbp-58h] BYREF size_t v14; // [rsp+40h] [rbp-48h] unsigned __int64 v15; // [rsp+48h] [rbp-40h] v4 = 0; if ( !a2 || !this->m_pComponents ) return (struct cocos2d::CCComponent *)v4; *(_OWORD *)Block = 0; v14 = 0; v15 = 0; v5 = -1; do ++v5; while ( a2[v5] ); v6 = 0x7FFFFFFFFFFFFFFFLL; if ( v5 > 0x7FFFFFFFFFFFFFFFLL ) std::vector::_Xlen(); v15 = 15; if ( v5 <= 0xF ) { v14 = v5; memcpy(Block, a2, v5); *((_BYTE *)Block + v5) = 0; goto LABEL_21; } if ( (v5 | 0xF) > 0x7FFFFFFFFFFFFFFFLL ) { v7 = 0x8000000000000027uLL; LABEL_10: v8 = operator new(v7); if ( !v8 ) goto LABEL_24; v9 = (_QWORD *)(((unsigned __int64)v8 + 39) & 0xFFFFFFFFFFFFFFE0uLL); *(v9 - 1) = v8; goto LABEL_20; } v6 = v5 | 0xF; if ( (v5 | 0xF) < 0x16 ) v6 = 22; if ( (unsigned __int64)(v6 + 1) >= 0x1000 ) { v7 = v6 + 40; if ( v6 + 40 < (unsigned __int64)(v6 + 1) ) Concurrency::cancel_current_task(); goto LABEL_10; } if ( v6 == -1 ) v9 = nullptr; else v9 = operator new(v6 + 1); LABEL_20: Block[0] = v9; v14 = v5; v15 = v6; memcpy(v9, a2, v5); *((_BYTE *)v9 + v5) = 0; LABEL_21: v10 = cocos2d::CCDictionary::objectForKey((__int64)this->m_pComponents, (unsigned __int8 *)Block); v4 = _RTDynamicCast( v10, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCComponent `RTTI Type Descriptor', 0); if ( v15 > 0xF ) { v11 = Block[0]; if ( v15 + 1 >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) LABEL_24: invalid_parameter_noinfo_noreturn(); } j_j_free_0(v11); } return (struct cocos2d::CCComponent *)v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source