{"type": "func", "start": 4294982480, "end": 4294982740, "name": "GJRotateCommandLayer::updateTextInputLabel2", "pseudocode": "// \n// GJRotateCommandLayer::updateTextInputLabel2 from 0x100003b50 to 0x100003c54 (260 bytes)\n// \n// 2 xrefs:\n// > GJRotateCommandLayer::init @ 0x100002f57\n// > GJRotateCommandLayer::onUpdateGroupID2 @ 0x100003a28\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 __fastcall GJRotateCommandLayer::updateTextInputLabel2(GJRotateCommandLayer *a1)\n{\n  double v1; // xmm0_8\n  const char *CString; // r15\n  cocos2d::CCString *v3; // rax\n  CCTextInputNode *m_centerIDInput; // r14\n  size_t v5; // rax\n  size_t v6; // r12\n  char *v7; // r13\n  size_t v8; // r14\n  char v9; // [rsp+0h] [rbp-50h]\n  CCTextInputNode *v10; // [rsp+8h] [rbp-48h]\n  _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  a1->m_disableTextChanged = 1;\n  if ( a1->m_centerGroupID == -99999 )\n  {\n    CString = \"\";\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v9);\n    CString = cocos2d::CCString::getCString(v3);\n  }\n  m_centerIDInput = a1->m_centerIDInput;\n  v5 = strlen(CString);\n  if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(CString, v1);\n  v6 = v5;\n  if ( v5 >= 0x17 )\n  {\n    v10 = a1->m_centerIDInput;\n    v8 = 26;\n    if ( (v5 | 7) != 0x17 )\n      v8 = (v5 | 7) + 1;\n    v7 = (char *)operator new(v8);\n    __p = v7;\n    __dst[0] = v8 + 1;\n    m_centerIDInput = v10;\n    __dst[1] = v6;\n    goto LABEL_11;\n  }\n  LOBYTE(__dst[0]) = 2 * v5;\n  v7 = (char *)__dst + 1;\n  if ( v5 )\nLABEL_11:\n    memmove(v7, CString, v6);\n  v7[v6] = 0;\n  CCTextInputNode::setString(m_centerIDInput, __dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  a1->m_disableTextChanged = 0;\n}", "assembly": "; \n; GJRotateCommandLayer::updateTextInputLabel2 from 0x100003b50 to 0x100003c54 (260 bytes)\n; \n; 2 xrefs:\n; > GJRotateCommandLayer::init @ 0x100002f57\n; > GJRotateCommandLayer::onUpdateGroupID2 @ 0x100003a28\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\npush    rbp                                                            ; +0x0, 0x100003b50\nmov     rbp, rsp                                                       ; +0x1, 0x100003b51\npush    r15                                                            ; +0x4, 0x100003b54\npush    r14                                                            ; +0x6, 0x100003b56\npush    r13                                                            ; +0x8, 0x100003b58\npush    r12                                                            ; +0xa, 0x100003b5a\npush    rbx                                                            ; +0xc, 0x100003b5c\nsub     rsp, 28h                                                       ; +0xd, 0x100003b5d\nmov     rbx, rdi                                                       ; +0x11, 0x100003b61\nmov     byte ptr [rdi+418h], 1                                         ; +0x14, 0x100003b64\nmov     esi, [rdi+428h]                                                ; +0x1b, 0x100003b6b\ncmp     esi, 0FFFE7961h                                                ; +0x21, 0x100003b71\njnz     short loc_100003B82                                            ; +0x27, 0x100003b77\nlea     r15, __src; \"\"                                                 ; +0x29, 0x100003b79\njmp     short loc_100003B9B                                            ; +0x30, 0x100003b80\nlea     rdi, aI; \"%i\"                                                  ; +0x32, 0x100003b82\nxor     eax, eax                                                       ; +0x39, 0x100003b89\ncall    sub_1007AB580                                                  ; +0x3b, 0x100003b8b\nmov     rdi, rax                                                       ; +0x40, 0x100003b90\ncall    cocos2d__CCString__getCString                                  ; +0x43, 0x100003b93\nmov     r15, rax                                                       ; +0x48, 0x100003b98\nmov     r14, [rbx+420h]                                                ; +0x4b, 0x100003b9b\nmov     rdi, r15; __s                                                  ; +0x52, 0x100003ba2\ncall    _strlen                                                        ; +0x55, 0x100003ba5\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x5a, 0x100003baa\njnb     loc_100003C4F                                                  ; +0x5e, 0x100003bae\nmov     r12, rax                                                       ; +0x64, 0x100003bb4\ncmp     rax, 17h                                                       ; +0x67, 0x100003bb7\njnb     short loc_100003BCF                                            ; +0x6b, 0x100003bbb\nlea     eax, [r12+r12]                                                 ; +0x6d, 0x100003bbd\nmov     byte ptr [rbp+__dst], al                                       ; +0x71, 0x100003bc1\nlea     r13, [rbp+__dst+1]                                             ; +0x74, 0x100003bc4\ntest    r12, r12                                                       ; +0x78, 0x100003bc8\njnz     short loc_100003C0A                                            ; +0x7b, 0x100003bcb\njmp     short loc_100003C18                                            ; +0x7d, 0x100003bcd\nmov     rax, r12                                                       ; +0x7f, 0x100003bcf\nor      rax, 7                                                         ; +0x82, 0x100003bd2\nlea     rcx, [rax+1]                                                   ; +0x86, 0x100003bd6\ncmp     rax, 17h                                                       ; +0x8a, 0x100003bda\nmov     [rbp+var_48], r14                                              ; +0x8e, 0x100003bde\nmov     r14d, 1Ah                                                      ; +0x92, 0x100003be2\ncmovnz  r14, rcx                                                       ; +0x98, 0x100003be8\nmov     rdi, r14; __sz                                                 ; +0x9c, 0x100003bec\ncall    __Znwm; operator new(ulong)                                    ; +0x9f, 0x100003bef\nmov     r13, rax                                                       ; +0xa4, 0x100003bf4\nmov     [rbp+__p], rax                                                 ; +0xa7, 0x100003bf7\ninc     r14                                                            ; +0xab, 0x100003bfb\nmov     [rbp+__dst], r14                                               ; +0xae, 0x100003bfe\nmov     r14, [rbp+var_48]                                              ; +0xb2, 0x100003c02\nmov     [rbp+var_38], r12                                              ; +0xb6, 0x100003c06\nmov     rdi, r13; __dst                                                ; +0xba, 0x100003c0a\nmov     rsi, r15; __src                                                ; +0xbd, 0x100003c0d\nmov     rdx, r12; __len                                                ; +0xc0, 0x100003c10\ncall    _memmove                                                       ; +0xc3, 0x100003c13\nmov     byte ptr [r13+r12+0], 0                                        ; +0xc8, 0x100003c18\nlea     rsi, [rbp+__dst]                                               ; +0xce, 0x100003c1e\nmov     rdi, r14                                                       ; +0xd2, 0x100003c22\ncall    CCTextInputNode__setString                                     ; +0xd5, 0x100003c25\ntest    byte ptr [rbp+__dst], 1                                        ; +0xda, 0x100003c2a\njz      short loc_100003C39                                            ; +0xde, 0x100003c2e\nmov     rdi, [rbp+__p]; __p                                            ; +0xe0, 0x100003c30\ncall    __ZdlPv; operator delete(void *)                               ; +0xe4, 0x100003c34\nmov     byte ptr [rbx+418h], 0                                         ; +0xe9, 0x100003c39\nadd     rsp, 28h                                                       ; +0xf0, 0x100003c40\npop     rbx                                                            ; +0xf4, 0x100003c44\npop     r12                                                            ; +0xf5, 0x100003c45\npop     r13                                                            ; +0xf7, 0x100003c47\npop     r14                                                            ; +0xf9, 0x100003c49\npop     r15                                                            ; +0xfb, 0x100003c4b\npop     rbp                                                            ; +0xfd, 0x100003c4d\nretn                                                                   ; +0xfe, 0x100003c4e\ncall    sub_100006BF0                                                  ; +0xff, 0x100003c4f", "xrefs": ["GJRotateCommandLayer::init @ 0x100002f57", "GJRotateCommandLayer::onUpdateGroupID2 @ 0x100003a28"], "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"}