{"type": "func", "start": 5369198304, "end": 5369198783, "name": "TextArea::update", "pseudocode": "// \n// TextArea::update from 0x1400776e0 to 0x1400778bf (479 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140538088\n// > <???> @ 0x140667678\n// > <???> @ 0x140667688\n// > <???> @ 0x1406c6570\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 TextArea::update(TextArea *a1, float a2)\n{\n  cocos2d::CCDictionary *m_shakeCharacters; // rdi\n  cocos2d::CCDictElement *m_pElements; // rdi\n  cocos2d::CCDictElement *i; // rbp\n  cocos2d::CCArray *m_pObject; // rdi\n  struct cocos2d::CCObject *v7; // rax\n  struct cocos2d::CCObject *v8; // rbx\n  float m_shakeElapsed; // xmm0_4\n  int v10; // eax\n  float v11; // xmm6_4\n  float v12; // xmm7_4\n  int v13; // eax\n  cocos2d::ccArray *data; // rdi\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rdi\n  cocos2d::CCObject **j; // rsi\n  cocos2d::CCObject *v18; // rbx\n  cocos2d::CCPoint v19; // [rsp+90h] [rbp+8h] BYREF\n  char v20; // [rsp+A0h] [rbp+18h] BYREF\n\n  m_shakeCharacters = a1->m_shakeCharacters;\n  a1->m_shakeElapsed = a2 + a1->m_shakeElapsed;\n  if ( m_shakeCharacters )\n  {\n    m_pElements = m_shakeCharacters->m_pElements;\n    if ( m_pElements )\n    {\n      for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        m_pObject = (cocos2d::CCArray *)m_pElements->m_pObject;\n        v7 = cocos2d::CCArray::objectAtIndex(m_pObject, 0);\n        v8 = v7;\n        if ( v7 )\n        {\n          m_shakeElapsed = a1->m_shakeElapsed;\n          if ( m_shakeElapsed > *(float *)&v7[11].m_nLuaID )\n          {\n            *(float *)&v7[11].m_nLuaID = m_shakeElapsed + *((float *)&v7[11].__vftable + 1);\n            v10 = rand();\n            v11 = *(float *)&v8[11].m_uID;\n            v12 = (float)v10 / 32767.0;\n            v13 = rand();\n            cocos2d::CCPoint::CCPoint(\n              &v19,\n              (float)((float)((float)((float)((float)v13 / 32767.0) + (float)((float)v13 / 32767.0)) - 1.0)\n                    * *(float *)&v8[11].m_uID)\n            * 0.5,\n              (float)((float)((float)(v12 + v12) - 1.0) * v11) * 0.5);\n            if ( m_pObject )\n            {\n              data = m_pObject->data;\n              num = data->num;\n              if ( (_DWORD)num )\n              {\n                arr = data->arr;\n                for ( j = &arr[num - 1]; arr <= j; ++arr )\n                {\n                  v18 = *arr;\n                  if ( !*arr )\n                    break;\n                  cocos2d::CCPoint::operator+(&v18[11].m_uReference, &v20);\n                  v18->__vftable[2].encodeWithCoder(v18, (DS_Dictionary *)&v20);\n                }\n              }\n            }\n          }\n        }\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; TextArea::update from 0x1400776e0 to 0x1400778bf (479 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140538088\n; > <???> @ 0x140667678\n; > <???> @ 0x140667688\n; > <???> @ 0x1406c6570\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     rax, rsp                                                       ; +0x0, 0x1400776e0\npush    rdi                                                            ; +0x3, 0x1400776e3\npush    r14                                                            ; +0x4, 0x1400776e4\nsub     rsp, 78h                                                       ; +0x6, 0x1400776e6\naddss   xmm1, dword ptr [rcx+2D0h]                                     ; +0xa, 0x1400776ea\nmov     rdi, [rcx+2C8h]                                                ; +0x12, 0x1400776f2\nmov     r14, rcx                                                       ; +0x19, 0x1400776f9\nmovss   dword ptr [rcx+2D0h], xmm1                                     ; +0x1c, 0x1400776fc\ntest    rdi, rdi                                                       ; +0x24, 0x140077704\njz      loc_1400778B7                                                  ; +0x27, 0x140077707\nmov     rdi, [rdi+38h]                                                 ; +0x2d, 0x14007770d\ntest    rdi, rdi                                                       ; +0x31, 0x140077711\njz      loc_1400778B7                                                  ; +0x34, 0x140077714\nmov     [rax+10h], rbx                                                 ; +0x3a, 0x14007771a\nmov     [rax+20h], rbp                                                 ; +0x3e, 0x14007771e\nmov     rbp, [rdi+120h]                                                ; +0x42, 0x140077722\nmov     [rax-18h], rsi                                                 ; +0x49, 0x140077729\nmovaps  xmmword ptr [rax-48h], xmm8                                    ; +0x4d, 0x14007772d\nmovss   xmm8, cs:dword_140623644                                       ; +0x52, 0x140077732\nmovaps  xmmword ptr [rax-58h], xmm9                                    ; +0x5b, 0x14007773b\nmovss   xmm9, cs:flt_140622C24                                         ; +0x60, 0x140077740\nmovaps  xmmword ptr [rax-68h], xmm10                                   ; +0x69, 0x140077749\nmovss   xmm10, cs:dword_140622B08                                      ; +0x6e, 0x14007774e\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0x77, 0x140077757\nmovaps  xmmword ptr [rax-38h], xmm7                                    ; +0x7b, 0x14007775b\nnop                                                                    ; +0x7f, 0x14007775f\nmov     rdi, [rdi+108h]                                                ; +0x80, 0x140077760\nxor     edx, edx                                                       ; +0x87, 0x140077767\nmov     rcx, rdi                                                       ; +0x89, 0x140077769\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x8c, 0x14007776c\nmov     rbx, rax                                                       ; +0x92, 0x140077772\ntest    rax, rax                                                       ; +0x95, 0x140077775\njz      loc_140077872                                                  ; +0x98, 0x140077778\nmovss   xmm0, dword ptr [r14+2D0h]                                     ; +0x9e, 0x14007777e\ncomiss  xmm0, dword ptr [rax+274h]                                     ; +0xa7, 0x140077787\njbe     loc_140077872                                                  ; +0xae, 0x14007778e\naddss   xmm0, dword ptr [rax+26Ch]                                     ; +0xb4, 0x140077794\nmovss   dword ptr [rax+274h], xmm0                                     ; +0xbc, 0x14007779c\ncall    cs:rand                                                        ; +0xc4, 0x1400777a4\nmovss   xmm6, dword ptr [rbx+270h]                                     ; +0xca, 0x1400777aa\nxorps   xmm7, xmm7                                                     ; +0xd2, 0x1400777b2\ncvtsi2ss xmm7, eax                                                     ; +0xd5, 0x1400777b5\ndivss   xmm7, xmm8                                                     ; +0xd9, 0x1400777b9\ncall    cs:rand                                                        ; +0xde, 0x1400777be\nxorps   xmm1, xmm1                                                     ; +0xe4, 0x1400777c4\naddss   xmm7, xmm7                                                     ; +0xe7, 0x1400777c7\nlea     rcx, [rsp+88h+arg_0]                                           ; +0xeb, 0x1400777cb\ncvtsi2ss xmm1, eax                                                     ; +0xf3, 0x1400777d3\nsubss   xmm7, xmm9                                                     ; +0xf7, 0x1400777d7\ndivss   xmm1, xmm8                                                     ; +0xfc, 0x1400777dc\nmulss   xmm7, xmm6                                                     ; +0x101, 0x1400777e1\naddss   xmm1, xmm1                                                     ; +0x105, 0x1400777e5\nmulss   xmm7, xmm10                                                    ; +0x109, 0x1400777e9\nsubss   xmm1, xmm9                                                     ; +0x10e, 0x1400777ee\nmovaps  xmm2, xmm7                                                     ; +0x113, 0x1400777f3\nmulss   xmm1, dword ptr [rbx+270h]                                     ; +0x116, 0x1400777f6\nmulss   xmm1, xmm10                                                    ; +0x11e, 0x1400777fe\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x123, 0x140077803\ntest    rdi, rdi                                                       ; +0x129, 0x140077809\njz      short loc_140077872                                            ; +0x12c, 0x14007780c\nmov     rdi, [rdi+38h]                                                 ; +0x12e, 0x14007780e\nmov     eax, [rdi]                                                     ; +0x132, 0x140077812\ntest    eax, eax                                                       ; +0x134, 0x140077814\njz      short loc_140077872                                            ; +0x136, 0x140077816\nmov     rdi, [rdi+10h]                                                 ; +0x138, 0x140077818\nlea     rsi, [rax-1]                                                   ; +0x13c, 0x14007781c\nlea     rsi, [rdi+rsi*8]                                               ; +0x140, 0x140077820\ncmp     rdi, rsi                                                       ; +0x144, 0x140077824\nja      short loc_140077872                                            ; +0x147, 0x140077827\nnop     dword ptr [rax+00000000h]                                      ; +0x149, 0x140077829\nmov     rbx, [rdi]                                                     ; +0x150, 0x140077830\ntest    rbx, rbx                                                       ; +0x153, 0x140077833\njz      short loc_140077872                                            ; +0x156, 0x140077836\nlea     rcx, [rbx+27Ch]                                                ; +0x158, 0x140077838\nlea     r8, [rsp+88h+arg_0]                                            ; +0x15f, 0x14007783f\nlea     rdx, [rsp+88h+arg_10]                                          ; +0x167, 0x140077847\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x16f, 0x14007784f\nmov     rax, [rbx]                                                     ; +0x175, 0x140077855\nlea     rdx, [rsp+88h+arg_10]                                          ; +0x178, 0x140077858\nmov     rcx, rbx                                                       ; +0x180, 0x140077860\ncall    qword ptr [rax+0B8h]                                           ; +0x183, 0x140077863\nadd     rdi, 8                                                         ; +0x189, 0x140077869\ncmp     rdi, rsi                                                       ; +0x18d, 0x14007786d\njbe     short loc_140077830                                            ; +0x190, 0x140077870\nmov     rdi, rbp                                                       ; +0x192, 0x140077872\ntest    rbp, rbp                                                       ; +0x195, 0x140077875\njz      short loc_140077886                                            ; +0x198, 0x140077878\nmov     rbp, [rbp+120h]                                                ; +0x19a, 0x14007787a\njmp     loc_140077760                                                  ; +0x1a1, 0x140077881\nmovaps  xmm7, [rsp+88h+var_38]                                         ; +0x1a6, 0x140077886\nmovaps  xmm6, [rsp+88h+var_28]                                         ; +0x1ab, 0x14007788b\nmovaps  xmm8, [rsp+88h+var_48]                                         ; +0x1b0, 0x140077890\nmovaps  xmm9, [rsp+88h+var_58]                                         ; +0x1b6, 0x140077896\nmov     rsi, [rsp+88h+var_18]                                          ; +0x1bc, 0x14007789c\nmov     rbp, [rsp+88h+arg_18]                                          ; +0x1c1, 0x1400778a1\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x1c9, 0x1400778a9\nmovaps  xmm10, [rsp+88h+var_68]                                        ; +0x1d1, 0x1400778b1\nadd     rsp, 78h                                                       ; +0x1d7, 0x1400778b7\npop     r14                                                            ; +0x1db, 0x1400778bb\npop     rdi                                                            ; +0x1dd, 0x1400778bd\nretn                                                                   ; +0x1de, 0x1400778be", "xrefs": ["<???> @ 0x140538088", "<???> @ 0x140667678", "<???> @ 0x140667688", "<???> @ 0x1406c6570"], "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"}