// // cocos2d::extension::CCEditBox::keyboardWillShow from 0x180010b60 to 0x180010c8c (300 bytes) // // 6 xrefs: // > @ 0x18002a030 // > @ 0x180030b80 // > @ 0x180030b90 // > @ 0x180032408 // > @ 0x18004c104 // > @ 0x18004c110 // // 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:39 +0000 // void __fastcall cocos2d::extension::CCEditBox::keyboardWillShow( cocos2d::extension::CCEditBox *this, struct cocos2d::CCIMEKeyboardNotificationInfo *a2) { const struct cocos2d::CCSize *v4; // rax __int64 v5; // rax float MaxY; // xmm6_4 float MinY; // xmm0_4 __int64 v8; // rcx float v9[2]; // [rsp+30h] [rbp-68h] BYREF _BYTE v10[4]; // [rsp+38h] [rbp-60h] BYREF float v11; // [rsp+3Ch] [rbp-5Ch] _BYTE v12[16]; // [rsp+48h] [rbp-50h] BYREF _BYTE v13[24]; // [rsp+58h] [rbp-40h] BYREF v4 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(char *))(*((_QWORD *)this - 71) + 320LL))((char *)this - 568); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v9, v4); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, v9[0], v9[1]); v5 = (*(__int64 (__fastcall **)(char *, _BYTE *))(*((_QWORD *)this - 71) + 816LL))((char *)this - 568, v13); cocos2d::CCRectApplyAffineTransform(v10, v12, v5); v11 = v11 + -4.0; if ( cocos2d::CCRect::intersectsRect( (cocos2d::CCRect *)v10, (struct cocos2d::CCIMEKeyboardNotificationInfo *)((char *)a2 + 16)) ) { MaxY = cocos2d::CCRect::getMaxY((struct cocos2d::CCIMEKeyboardNotificationInfo *)((char *)a2 + 16)); MinY = cocos2d::CCRect::getMinY((cocos2d::CCRect *)v10); v8 = *((_QWORD *)this + 1); *((float *)this + 47) = MaxY - MinY; if ( v8 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 120LL))(v8); } }