// // GJAccountSettingsLayer::closeAccInputNodes from 0x1002a2000 to 0x1002a217d (381 bytes) // // 7 xrefs: // > GJAccountSettingsLayer::onClose @ 0x1002a15a0 // > GJAccountSettingsLayer::onUpdate @ 0x1002a15ee // > GJAccountSettingsLayer::keyBackClicked @ 0x1002a2ec0 // > sub_1002A2EF0 @ 0x1002a2f0b // > UpdateAccountSettingsPopup::onClose @ 0x1002a3bb0 // > UpdateAccountSettingsPopup::keyBackClicked @ 0x1002a3e50 // > sub_1002A3E90 @ 0x1002a3ef3 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJAccountSettingsLayer::closeAccInputNodes(GJAccountSettingsLayer *a1, cocos2d::CCArray *a2) { cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r13 char *v4; // r12 cocos2d::CCObject *v5; // r15 double v6; // xmm0_8 int v7; // r15d std::__compressed_pair *>> *v8; // r14 std::__tree_end_node *>::pointer left; // rax std::__compressed_pair *>> *v10; // rbx int v11; // eax char *v12; // r12 GJAccountSettingsLayer *v13; // rbx std::__tree_end_node *> *v14; // rax __int128 v15; // [rsp+8h] [rbp-58h] BYREF __int64 v16; // [rsp+18h] [rbp-48h] std::__compressed_pair *>> *p_pair1; // [rsp+20h] [rbp-40h] cocos2d::CCObject **v18; // [rsp+28h] [rbp-38h] GJAccountSettingsLayer *v19; // [rsp+30h] [rbp-30h] if ( a2 ) { data = a2->data; if ( data->num ) { arr = data->arr; v18 = &arr[data->num - 1]; p_pair1 = &a1->m_links.__tree_.__pair1_; v19 = a1; do { v5 = *arr; if ( !*arr ) break; *(_QWORD *)&v5[9].m_unknown2 = 0; v6 = ((double (__fastcall *)(cocos2d::CCObject *, _QWORD))v5->__vftable[14].isEqual)(v5, 0); CCTextInputNode::getString(&v15, (__int64)v5, v6); v7 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v5->getTag)(v5); v8 = p_pair1; while ( 1 ) { left = v8->__value_.__left_; v10 = v8; if ( !v8->__value_.__left_ ) break; while ( 1 ) { v8 = (std::__compressed_pair *>> *)left; v11 = *((_DWORD *)left + 8); if ( v7 < v11 ) break; if ( v7 <= v11 ) { v12 = (char *)v8; if ( ((__int64)v8[5].__value_.__left_ & 1) == 0 ) goto LABEL_4; goto LABEL_17; } left = v8[1].__value_.__left_; if ( !left ) { v10 = v8 + 1; goto LABEL_12; } } } LABEL_12: v12 = (char *)operator new(0x40u); *((_DWORD *)v12 + 8) = v7; *(_OWORD *)(v12 + 40) = 0; *((_QWORD *)v12 + 7) = 0; *(_OWORD *)v12 = 0; *((_QWORD *)v12 + 2) = v8; v10->__value_.__left_ = (std::__tree_end_node *>::pointer)v12; v13 = v19; v14 = (std::__tree_end_node *> *)v19->m_links.__tree_.__begin_node_->__left_; if ( v14 ) v19->m_links.__tree_.__begin_node_ = v14; sub_100054DD0((__int64 *)v13->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v12); ++v13->m_links.__tree_.__pair3_.__value_; if ( (v12[40] & 1) != 0 ) LABEL_17: operator delete(*((void **)v12 + 7)); LABEL_4: v4 = v12 + 40; *((_QWORD *)v4 + 2) = v16; *(_OWORD *)v4 = v15; ++arr; } while ( arr <= v18 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source