{"type": "func", "start": 5369037440, "end": 5369037781, "name": "CCTextInputNode::keyboardWillShow", "pseudocode": "// \n// CCTextInputNode::keyboardWillShow from 0x140050280 to 0x1400503d5 (341 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x140532470\n// > <???> @ 0x140663e7c\n// > <???> @ 0x140663e90\n// > <???> @ 0x140663ec4\n// > <???> @ 0x1406c4d04\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCTextInputNode::keyboardWillShow(CCTextInputNode *a1, cocos2d::CCIMEKeyboardNotificationInfo *a2)\n{\n  __int64 v4; // rcx\n  const struct cocos2d::CCPoint *v5; // rax\n  float *v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  cocos2d::CCRect v10; // [rsp+20h] [rbp-28h] BYREF\n  cocos2d::CCPoint v11; // [rsp+50h] [rbp+8h] BYREF\n\n  if ( !BYTE2(a1->m_sInverse.d) )\n  {\n    v4 = *(_QWORD *)&a1->m_sTransform.b;\n    if ( v4 )\n    {\n      if ( LOBYTE(a1->m_fRotationY) )\n      {\n        v5 = (const struct cocos2d::CCPoint *)(*(__int64 (**)(void))(*(_QWORD *)v4 + 280LL))();\n        v6 = (float *)cocos2d::CCPoint::CCPoint(&v11, v5);\n        cocos2d::CCRect::CCRect(&v10);\n        v7 = (*(__int64 (__fastcall **)(cocos2d::CCArray **))&a1[-1].m_pChildren[3].m_uID)(&a1[-1].m_pChildren);\n        cocos2d::CCPoint::operator=(&v10, v7);\n        v8 = (*(__int64 (__fastcall **)(cocos2d::CCArray **))&a1[-1].m_pChildren[4].m_uOrderOfArrival)(&a1[-1].m_pChildren);\n        cocos2d::CCSize::operator=(&v10.size, v8);\n        v10.origin.x = v10.origin.x - (float)(v10.size.width * *v6);\n        v10.origin.y = (float)(v10.origin.y - (float)(v10.size.height * v6[1])) - 4.0;\n        if ( cocos2d::CCRect::intersectsRect(&v10, &a2->end) )\n        {\n          BYTE1(a1->m_fRotationY) = 1;\n          cocos2d::CCRect::getMaxY(&a2->end);\n          cocos2d::CCRect::getMinY(&v10);\n          v9 = *(_QWORD *)&a1->m_sTransform.d;\n          if ( v9 )\n            (*(void (__fastcall **)(__int64, cocos2d::CCArray **))(*(_QWORD *)v9 + 24LL))(v9, &a1[-1].m_pChildren);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; CCTextInputNode::keyboardWillShow from 0x140050280 to 0x1400503d5 (341 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x140532470\n; > <???> @ 0x140663e7c\n; > <???> @ 0x140663e90\n; > <???> @ 0x140663ec4\n; > <???> @ 0x1406c4d04\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_18], rbp                                              ; +0x0, 0x140050280\npush    rdi                                                            ; +0x5, 0x140050285\nsub     rsp, 40h                                                       ; +0x6, 0x140050286\ncmp     byte ptr [rcx+0B2h], 0                                         ; +0xa, 0x14005028a\nmov     rbp, rdx                                                       ; +0x11, 0x140050291\nmov     rdi, rcx                                                       ; +0x14, 0x140050294\njnz     loc_1400503CA                                                  ; +0x17, 0x140050297\nmov     rcx, [rcx+90h]                                                 ; +0x1d, 0x14005029d\ntest    rcx, rcx                                                       ; +0x24, 0x1400502a4\njz      loc_1400503CA                                                  ; +0x27, 0x1400502a7\ncmp     byte ptr [rdi+3Ch], 0                                          ; +0x2d, 0x1400502ad\njz      loc_1400503CA                                                  ; +0x31, 0x1400502b1\nmov     rax, [rcx]                                                     ; +0x37, 0x1400502b7\nmov     [rsp+48h+arg_8], rbx                                           ; +0x3a, 0x1400502ba\nmov     [rsp+48h+arg_10], rsi                                          ; +0x3f, 0x1400502bf\ncall    qword ptr [rax+118h]                                           ; +0x44, 0x1400502c4\nmov     rdx, rax                                                       ; +0x4a, 0x1400502ca\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x4d, 0x1400502cd\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x52, 0x1400502d2\nlea     rcx, [rsp+48h+var_28]                                          ; +0x58, 0x1400502d8\nmov     rbx, rax                                                       ; +0x5d, 0x1400502dd\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0x60, 0x1400502e0\nmov     rdx, [rdi-198h]                                                ; +0x66, 0x1400502e6\nlea     rcx, [rdi-198h]                                                ; +0x6d, 0x1400502ed\ncall    qword ptr [rdx+0C8h]                                           ; +0x74, 0x1400502f4\nmov     rdx, rax                                                       ; +0x7a, 0x1400502fa\nlea     rcx, [rsp+48h+var_28]                                          ; +0x7d, 0x1400502fd\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x82, 0x140050302\nmov     rdx, [rdi-198h]                                                ; +0x88, 0x140050308\nlea     rcx, [rdi-198h]                                                ; +0x8f, 0x14005030f\ncall    qword ptr [rdx+130h]                                           ; +0x96, 0x140050316\nmov     rdx, rax                                                       ; +0x9c, 0x14005031c\nlea     rcx, [rsp+48h+var_20]                                          ; +0x9f, 0x14005031f\ncall    cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0xa4, 0x140050324\nmovss   xmm1, [rsp+48h+var_28]                                         ; +0xaa, 0x14005032a\nlea     rdx, [rbp+10h]                                                 ; +0xb0, 0x140050330\nmovss   xmm0, [rsp+48h+var_20]                                         ; +0xb4, 0x140050334\nlea     rcx, [rsp+48h+var_28]                                          ; +0xba, 0x14005033a\nmulss   xmm0, dword ptr [rbx]                                          ; +0xbf, 0x14005033f\nsubss   xmm1, xmm0                                                     ; +0xc3, 0x140050343\nmovss   xmm0, [rsp+48h+var_1C]                                         ; +0xc7, 0x140050347\nmovss   [rsp+48h+var_28], xmm1                                         ; +0xcd, 0x14005034d\nmulss   xmm0, dword ptr [rbx+4]                                        ; +0xd3, 0x140050353\nmovss   xmm1, [rsp+48h+var_24]                                         ; +0xd8, 0x140050358\nsubss   xmm1, xmm0                                                     ; +0xde, 0x14005035e\nsubss   xmm1, cs:dword_140622FF0                                       ; +0xe2, 0x140050362\nmovss   [rsp+48h+var_24], xmm1                                         ; +0xea, 0x14005036a\ncall    cs:?intersectsRect@CCRect@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCRect::intersectsRect(cocos2d::CCRect const &) ; +0xf0, 0x140050370\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xf6, 0x140050376\ntest    al, al                                                         ; +0xfb, 0x14005037b\njz      short loc_1400503C5                                            ; +0xfd, 0x14005037d\nlea     rcx, [rbp+10h]                                                 ; +0xff, 0x14005037f\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x103, 0x140050383\nmov     byte ptr [rdi+3Dh], 1                                          ; +0x108, 0x140050388\ncall    cs:?getMaxY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMaxY(void) ; +0x10c, 0x14005038c\nlea     rcx, [rsp+48h+var_28]                                          ; +0x112, 0x140050392\nmovaps  xmm6, xmm0                                                     ; +0x117, 0x140050397\ncall    cs:?getMinY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMinY(void) ; +0x11a, 0x14005039a\nmov     rcx, [rdi+98h]                                                 ; +0x120, 0x1400503a0\nsubss   xmm6, xmm0                                                     ; +0x127, 0x1400503a7\ntest    rcx, rcx                                                       ; +0x12b, 0x1400503ab\njz      short loc_1400503C0                                            ; +0x12e, 0x1400503ae\nmov     rax, [rcx]                                                     ; +0x130, 0x1400503b0\nlea     rdx, [rdi-198h]                                                ; +0x133, 0x1400503b3\nmovaps  xmm2, xmm6                                                     ; +0x13a, 0x1400503ba\ncall    qword ptr [rax+18h]                                            ; +0x13d, 0x1400503bd\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x140, 0x1400503c0\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x145, 0x1400503c5\nmov     rbp, [rsp+48h+arg_18]                                          ; +0x14a, 0x1400503ca\nadd     rsp, 40h                                                       ; +0x14f, 0x1400503cf\npop     rdi                                                            ; +0x153, 0x1400503d3\nretn                                                                   ; +0x154, 0x1400503d4", "xrefs": ["<???> @ 0x140532470", "<???> @ 0x140663e7c", "<???> @ 0x140663e90", "<???> @ 0x140663ec4", "<???> @ 0x1406c4d04"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}