{"type": "func", "start": 6442519392, "end": 6442519692, "name": "cocos2d::extension::CCEditBox::keyboardWillShow", "pseudocode": "// \n// cocos2d::extension::CCEditBox::keyboardWillShow from 0x180010b60 to 0x180010c8c (300 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x18002a030\n// > <???> @ 0x180030b80\n// > <???> @ 0x180030b90\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c104\n// > <???> @ 0x18004c110\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:39 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCEditBox::keyboardWillShow(\n        cocos2d::extension::CCEditBox *this,\n        struct cocos2d::CCIMEKeyboardNotificationInfo *a2)\n{\n  const struct cocos2d::CCSize *v4; // rax\n  __int64 v5; // rax\n  float MaxY; // xmm6_4\n  float MinY; // xmm0_4\n  __int64 v8; // rcx\n  float v9[2]; // [rsp+30h] [rbp-68h] BYREF\n  _BYTE v10[4]; // [rsp+38h] [rbp-60h] BYREF\n  float v11; // [rsp+3Ch] [rbp-5Ch]\n  _BYTE v12[16]; // [rsp+48h] [rbp-50h] BYREF\n  _BYTE v13[24]; // [rsp+58h] [rbp-40h] BYREF\n\n  v4 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(char *))(*((_QWORD *)this - 71) + 320LL))((char *)this - 568);\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)v9, v4);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, v9[0], v9[1]);\n  v5 = (*(__int64 (__fastcall **)(char *, _BYTE *))(*((_QWORD *)this - 71) + 816LL))((char *)this - 568, v13);\n  cocos2d::CCRectApplyAffineTransform(v10, v12, v5);\n  v11 = v11 + -4.0;\n  if ( cocos2d::CCRect::intersectsRect(\n         (cocos2d::CCRect *)v10,\n         (struct cocos2d::CCIMEKeyboardNotificationInfo *)((char *)a2 + 16)) )\n  {\n    MaxY = cocos2d::CCRect::getMaxY((struct cocos2d::CCIMEKeyboardNotificationInfo *)((char *)a2 + 16));\n    MinY = cocos2d::CCRect::getMinY((cocos2d::CCRect *)v10);\n    v8 = *((_QWORD *)this + 1);\n    *((float *)this + 47) = MaxY - MinY;\n    if ( v8 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 120LL))(v8);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCEditBox::keyboardWillShow from 0x180010b60 to 0x180010c8c (300 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x18002a030\n; > <???> @ 0x180030b80\n; > <???> @ 0x180030b90\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c104\n; > <???> @ 0x18004c110\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:39 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180010b60\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x180010b65\npush    rdi                                                            ; +0xa, 0x180010b6a\nsub     rsp, 90h                                                       ; +0xb, 0x180010b6b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x180010b72\nxor     rax, rsp                                                       ; +0x19, 0x180010b79\nmov     [rsp+98h+var_28], rax                                          ; +0x1c, 0x180010b7c\nmov     rax, [rcx-238h]                                                ; +0x21, 0x180010b81\nmov     rdi, rcx                                                       ; +0x28, 0x180010b88\nadd     rcx, 0FFFFFFFFFFFFFDC8h                                        ; +0x2b, 0x180010b8b\nmov     rsi, rdx                                                       ; +0x32, 0x180010b92\ncall    qword ptr [rax+140h]                                           ; +0x35, 0x180010b95\nmov     rdx, rax                                                       ; +0x3b, 0x180010b9b\nlea     rcx, [rsp+98h+var_68]                                          ; +0x3e, 0x180010b9e\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x43, 0x180010ba3\nmovss   xmm0, [rsp+98h+var_64]                                         ; +0x49, 0x180010ba9\nlea     rcx, [rsp+98h+var_50]                                          ; +0x4f, 0x180010baf\nmovss   xmm3, [rsp+98h+var_68]                                         ; +0x54, 0x180010bb4\nxorps   xmm2, xmm2                                                     ; +0x5a, 0x180010bba\nxorps   xmm1, xmm1                                                     ; +0x5d, 0x180010bbd\nmovss   [rsp+98h+var_78], xmm0                                         ; +0x60, 0x180010bc0\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x66, 0x180010bc6\nmov     rax, [rdi-238h]                                                ; +0x6c, 0x180010bcc\nlea     rdx, [rsp+98h+var_40]                                          ; +0x73, 0x180010bd3\nlea     rcx, [rdi-238h]                                                ; +0x78, 0x180010bd8\ncall    qword ptr [rax+330h]                                           ; +0x7f, 0x180010bdf\nmov     r8, rax                                                        ; +0x85, 0x180010be5\nlea     rdx, [rsp+98h+var_50]                                          ; +0x88, 0x180010be8\nlea     rcx, [rsp+98h+var_60]                                          ; +0x8d, 0x180010bed\ncall    cs:?CCRectApplyAffineTransform@cocos2d@@YA?AVCCRect@1@AEBV21@AEBUCCAffineTransform@1@@Z; cocos2d::CCRectApplyAffineTransform(cocos2d::CCRect const &,cocos2d::CCAffineTransform const &) ; +0x92, 0x180010bf2\nmovss   xmm0, [rsp+98h+var_5C]                                         ; +0x98, 0x180010bf8\nlea     rdx, [rsi+10h]                                                 ; +0x9e, 0x180010bfe\naddss   xmm0, cs:dword_18002BC9C                                       ; +0xa2, 0x180010c02\nlea     rcx, [rsp+98h+var_60]                                          ; +0xaa, 0x180010c0a\nmovss   [rsp+98h+var_5C], xmm0                                         ; +0xaf, 0x180010c0f\ncall    cs:?intersectsRect@CCRect@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCRect::intersectsRect(cocos2d::CCRect const &) ; +0xb5, 0x180010c15\ntest    al, al                                                         ; +0xbb, 0x180010c1b\njz      short loc_180010C6A                                            ; +0xbd, 0x180010c1d\nlea     rcx, [rsi+10h]                                                 ; +0xbf, 0x180010c1f\nmovaps  [rsp+98h+var_18], xmm6                                         ; +0xc3, 0x180010c23\ncall    cs:?getMaxY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMaxY(void) ; +0xcb, 0x180010c2b\nlea     rcx, [rsp+98h+var_60]                                          ; +0xd1, 0x180010c31\nmovaps  xmm6, xmm0                                                     ; +0xd6, 0x180010c36\ncall    cs:?getMinY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMinY(void) ; +0xd9, 0x180010c39\nmov     rcx, [rdi+8]                                                   ; +0xdf, 0x180010c3f\nsubss   xmm6, xmm0                                                     ; +0xe3, 0x180010c43\nmovss   dword ptr [rdi+0BCh], xmm6                                     ; +0xe7, 0x180010c47\ntest    rcx, rcx                                                       ; +0xef, 0x180010c4f\njz      short loc_180010C62                                            ; +0xf2, 0x180010c52\nmov     rax, [rcx]                                                     ; +0xf4, 0x180010c54\nmovaps  xmm2, xmm6                                                     ; +0xf7, 0x180010c57\nmovss   xmm1, dword ptr [rsi+20h]                                      ; +0xfa, 0x180010c5a\ncall    qword ptr [rax+78h]                                            ; +0xff, 0x180010c5f\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0x102, 0x180010c62\nmov     rcx, [rsp+98h+var_28]                                          ; +0x10a, 0x180010c6a\nxor     rcx, rsp; StackCookie                                          ; +0x10f, 0x180010c6f\ncall    __security_check_cookie                                        ; +0x112, 0x180010c72\nlea     r11, [rsp+98h+var_8]                                           ; +0x117, 0x180010c77\nmov     rbx, [r11+20h]                                                 ; +0x11f, 0x180010c7f\nmov     rsi, [r11+28h]                                                 ; +0x123, 0x180010c83\nmov     rsp, r11                                                       ; +0x127, 0x180010c87\npop     rdi                                                            ; +0x12a, 0x180010c8a\nretn                                                                   ; +0x12b, 0x180010c8b", "xrefs": ["<???> @ 0x18002a030", "<???> @ 0x180030b80", "<???> @ 0x180030b90", "<???> @ 0x180032408", "<???> @ 0x18004c104", "<???> @ 0x18004c110"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}