// // sub_18001DD80 from 0x18001dd80 to 0x18001de24 (164 bytes) // // 4 xrefs: // > cocos2d::extension::CCControl::CCControl @ 0x18001b1df // > cocos2d::extension::CCScrollView::CCScrollView @ 0x18001c48e // > sub_18001D990 @ 0x18001d9fe // > @ 0x18004b0a0 // // 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 // __int64 __fastcall sub_18001DD80(_QWORD *a1, _QWORD *a2) { _QWORD *v4; // r8 __int64 **v5; // rdx __int64 *i; // rcx __int64 v7; // rcx __int64 result; // rax *(_QWORD *)(*a1 + 8LL) = sub_18001DEE0(a1, *(_QWORD *)(*a2 + 8LL), *a1); v4 = (_QWORD *)*a1; a1[1] = a2[1]; v5 = (__int64 **)v4[1]; if ( *((_BYTE *)v5 + 25) ) { *v4 = v4; result = *a1; *(_QWORD *)(*a1 + 16LL) = *a1; } else { for ( i = *v5; !*((_BYTE *)i + 25); i = (__int64 *)*i ) v5 = (__int64 **)i; *v4 = v5; v7 = *(_QWORD *)(*a1 + 8LL); for ( result = *(_QWORD *)(v7 + 16); !*(_BYTE *)(result + 25); result = *(_QWORD *)(result + 16) ) v7 = result; *(_QWORD *)(*a1 + 16LL) = v7; } return result; }