{"type": "func", "start": 5372152640, "end": 5372152916, "name": "NumberInputLayer::updateNumberState", "pseudocode": "// \n// NumberInputLayer::updateNumberState from 0x140348b40 to 0x140348c54 (276 bytes)\n// \n// 3 xrefs:\n// > NumberInputLayer::init @ 0x14034895c\n// > NumberInputLayer::onNumber @ 0x140348b1c\n// > <???> @ 0x1406d5a2c\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 NumberInputLayer::updateNumberState(NumberInputLayer *a1)\n{\n  int m_size; // eax\n  bool v3; // si\n  _BYTE *v4; // rcx\n  char v5; // al\n  CCMenuItemSpriteExtra *m_okButton; // rcx\n  cocos2d::CCNode *v7; // rdi\n  cocos2d::CCComponentContainer *m_pComponentContainer; // rcx\n  __int64 v9; // rcx\n  cocos2d::CCNode_vtbl *v10; // rcx\n  __int16 v11; // [rsp+30h] [rbp+8h] BYREF\n  char v12; // [rsp+32h] [rbp+Ah]\n\n  m_size = a1->m_inputString.m_data.m_size;\n  v3 = m_size >= a1->m_minimum && m_size <= a1->m_maximum;\n  v4 = &unk_140529B8C;\n  if ( !v3 )\n    v4 = &unk_140529B88;\n  v11 = *(_WORD *)v4;\n  v5 = v4[2];\n  m_okButton = a1->m_okButton;\n  v12 = v5;\n  v7 = m_okButton->getNormalImage(m_okButton);\n  m_pComponentContainer = v7[1].m_pComponentContainer;\n  if ( m_pComponentContainer )\n    ((void (__fastcall *)(cocos2d::CCDictionary **, __int16 *))m_pComponentContainer[15].m_pComponents->__vftable)(\n      &m_pComponentContainer[15].m_pComponents,\n      &v11);\n  v9 = *(_QWORD *)&v7[1].m_bUseChildIndex;\n  if ( v9 )\n    (**(void (__fastcall ***)(__int64, __int16 *))(v9 + 320))(v9 + 320, &v11);\n  v10 = *(cocos2d::CCNode_vtbl **)&v7[2].m_uID;\n  if ( v10 || (v10 = v7[2].__vftable) != nullptr )\n    (*(void (__fastcall **)(__int64, __int16 *))v10->setVisible)((__int64)&v10->setVisible, &v11);\n  a1->m_okButton->setEnabled(a1->m_okButton, v3);\n  ((void (__fastcall *)(cocos2d::CCLabelProtocol *))a1->m_inputLabel->setString)(&a1->m_inputLabel->cocos2d::CCLabelProtocol);\n}", "assembly": "; \n; NumberInputLayer::updateNumberState from 0x140348b40 to 0x140348c54 (276 bytes)\n; \n; 3 xrefs:\n; > NumberInputLayer::init @ 0x14034895c\n; > NumberInputLayer::onNumber @ 0x140348b1c\n; > <???> @ 0x1406d5a2c\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_8], rbx                                               ; +0x0, 0x140348b40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140348b45\npush    rdi                                                            ; +0xa, 0x140348b4a\nsub     rsp, 20h                                                       ; +0xb, 0x140348b4b\nmov     eax, [rcx+2A0h]                                                ; +0xf, 0x140348b4f\nmov     rbx, rcx                                                       ; +0x15, 0x140348b55\ncmp     eax, [rcx+288h]                                                ; +0x18, 0x140348b58\njl      short loc_140348B6D                                            ; +0x1e, 0x140348b5e\ncmp     eax, [rcx+28Ch]                                                ; +0x20, 0x140348b60\njg      short loc_140348B6D                                            ; +0x26, 0x140348b66\nmov     sil, 1                                                         ; +0x28, 0x140348b68\njmp     short loc_140348B70                                            ; +0x2b, 0x140348b6b\nxor     sil, sil                                                       ; +0x2d, 0x140348b6d\nlea     rax, unk_140529B88                                             ; +0x30, 0x140348b70\ntest    sil, sil                                                       ; +0x37, 0x140348b77\nlea     rcx, unk_140529B8C                                             ; +0x3a, 0x140348b7a\ncmovz   rcx, rax                                                       ; +0x41, 0x140348b81\nmovzx   eax, word ptr [rcx]                                            ; +0x45, 0x140348b85\nmov     [rsp+28h+arg_0], ax                                            ; +0x48, 0x140348b88\nmovzx   eax, byte ptr [rcx+2]                                          ; +0x4d, 0x140348b8d\nmov     rcx, [rbx+280h]                                                ; +0x51, 0x140348b91\nmov     [rsp+28h+arg_2], al                                            ; +0x58, 0x140348b98\nmov     rax, [rcx]                                                     ; +0x5c, 0x140348b9c\ncall    qword ptr [rax+3A8h]                                           ; +0x5f, 0x140348b9f\nmov     rdi, rax                                                       ; +0x65, 0x140348ba5\nmov     rcx, [rax+270h]                                                ; +0x68, 0x140348ba8\ntest    rcx, rcx                                                       ; +0x6f, 0x140348baf\njz      short loc_140348BC6                                            ; +0x72, 0x140348bb2\nadd     rcx, 170h                                                      ; +0x74, 0x140348bb4\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x7b, 0x140348bbb\nmov     r8, [rcx]                                                      ; +0x80, 0x140348bc0\ncall    qword ptr [r8]                                                 ; +0x83, 0x140348bc3\nmov     rcx, [rdi+278h]                                                ; +0x86, 0x140348bc6\ntest    rcx, rcx                                                       ; +0x8d, 0x140348bcd\njz      short loc_140348BE3                                            ; +0x90, 0x140348bd0\nadd     rcx, 140h                                                      ; +0x92, 0x140348bd2\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x99, 0x140348bd9\nmov     rax, [rcx]                                                     ; +0x9e, 0x140348bde\ncall    qword ptr [rax]                                                ; +0xa1, 0x140348be1\nmov     rcx, [rdi+288h]                                                ; +0xa3, 0x140348be3\ntest    rcx, rcx                                                       ; +0xaa, 0x140348bea\njnz     short loc_140348BFB                                            ; +0xad, 0x140348bed\nmov     rcx, [rdi+280h]                                                ; +0xaf, 0x140348bef\ntest    rcx, rcx                                                       ; +0xb6, 0x140348bf6\njz      short loc_140348C0C                                            ; +0xb9, 0x140348bf9\nadd     rcx, 140h                                                      ; +0xbb, 0x140348bfb\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xc2, 0x140348c02\nmov     rax, [rcx]                                                     ; +0xc7, 0x140348c07\ncall    qword ptr [rax]                                                ; +0xca, 0x140348c0a\nmov     rcx, [rbx+280h]                                                ; +0xcc, 0x140348c0c\nmovzx   edx, sil                                                       ; +0xd3, 0x140348c13\nmov     rax, [rcx]                                                     ; +0xd7, 0x140348c17\ncall    qword ptr [rax+398h]                                           ; +0xda, 0x140348c1a\nlea     rdx, [rbx+290h]                                                ; +0xe0, 0x140348c20\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0xe7, 0x140348c27\njbe     short loc_140348C31                                            ; +0xec, 0x140348c2c\nmov     rdx, [rdx]                                                     ; +0xee, 0x140348c2e\nmov     rcx, [rbx+278h]                                                ; +0xf1, 0x140348c31\nadd     rcx, 168h                                                      ; +0xf8, 0x140348c38\nmov     rax, [rcx]                                                     ; +0xff, 0x140348c3f\ncall    qword ptr [rax]                                                ; +0x102, 0x140348c42\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x104, 0x140348c44\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x109, 0x140348c49\nadd     rsp, 20h                                                       ; +0x10e, 0x140348c4e\npop     rdi                                                            ; +0x112, 0x140348c52\nretn                                                                   ; +0x113, 0x140348c53", "xrefs": ["NumberInputLayer::init @ 0x14034895c", "NumberInputLayer::onNumber @ 0x140348b1c", "<???> @ 0x1406d5a2c"], "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"}