// // cocos2d::extension::CCScrollView::initWithViewSize from 0x180011e70 to 0x180011ff1 (385 bytes) // // 5 xrefs: // > cocos2d::extension::CCScrollView::create @ 0x180011dcb // > cocos2d::extension::CCScrollView::init @ 0x180012028 // > cocos2d::extension::CCTableView::initWithViewSize @ 0x1800148c9 // > @ 0x180032408 // > @ 0x18004c224 // // 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:40 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::extension::CCScrollView::initWithViewSize( __int64 a1, const struct cocos2d::CCSize *a2, __int64 a3) { __int64 v6; // rax __int64 v7; // rdi __int64 v8; // rbx __int64 v9; // rax const struct cocos2d::CCSize *v10; // rbx __int64 v11; // rdx cocos2d::CCArray *v12; // rbx __int64 v13; // rdi __int64 v14; // rbx __int64 v15; // rax cocos2d::CCArray *v17; // [rsp+48h] [rbp+20h] BYREF if ( !cocos2d::CCLayer::init((cocos2d::CCLayer *)a1) ) return 0; *(_QWORD *)(a1 + 448) = a3; if ( !a3 ) { v6 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 448) = v6; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 432LL))(v6, 0); v7 = **(_QWORD **)(a1 + 448); v8 = *(_QWORD *)(a1 + 448); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, 0.0, 0.0); (*(void (__fastcall **)(__int64, __int64))(v7 + 288))(v8, v9); } v10 = (const struct cocos2d::CCSize *)cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, a2); cocos2d::CCSize::operator=(a1 + 512, v10); cocos2d::CCNode::setContentSize((cocos2d::CCNode *)a1, v10); LOBYTE(v11) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v11); v12 = (cocos2d::CCArray *)sub_18001F040(0x40u); v17 = v12; cocos2d::CCArray::CCArray(v12); *(_QWORD *)v12 = &cocos2d::CCArray::`vftable'; *(_QWORD *)(a1 + 504) = v12; *(_QWORD *)(a1 + 424) = 0; *(_WORD *)(a1 + 476) = 257; *(_DWORD *)(a1 + 432) = 2; v13 = **(_QWORD **)(a1 + 448); v14 = *(_QWORD *)(a1 + 448); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, 0.0, 0.0); (*(void (__fastcall **)(__int64, __int64))(v13 + 184))(v14, v15); *(_DWORD *)(a1 + 496) = 0; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 448)); *(_DWORD *)(a1 + 524) = 1065353216; *(_DWORD *)(a1 + 520) = 1065353216; sub_180004FB0((_QWORD *)(a1 + 552)); return 1; }