{"type": "func", "start": 4296336000, "end": 4296336457, "name": "GJBaseGameLayer::resetGroupCounters", "pseudocode": "// \n// GJBaseGameLayer::resetGroupCounters from 0x10014e280 to 0x10014e449 (457 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::init @ 0x1000dc071\n// > LevelEditorLayer::onPlaytest @ 0x1000f2768\n// > LevelEditorLayer::onStopPlaytest @ 0x1000f32a9\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 GJBaseGameLayer::resetGroupCounters(GJBaseGameLayer *a1, bool a2)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<LabelGameObject *>>, void *> *>::__next_pointer next; // r13\n  LabelGameObject **v4; // rbx\n  LabelGameObject **i; // r15\n  _QWORD *p_next; // r12\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<LabelGameObject *>>, void *> *>::__next_pointer v7; // rbx\n  __int64 v8; // rdi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<LabelGameObject *>>, void *> *>::__next_pointer v9; // r13\n  LabelGameObject **v10; // rbx\n  LabelGameObject **j; // r14\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<LabelGameObject *>>, void *> *>::__next_pointer v12; // r12\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<LabelGameObject *>>, void *> *>::__next_pointer v13; // rbx\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<LabelGameObject *>>, void *> *>::__next_pointer v14; // r15\n  const char *v15; // rsi\n  __int64 v16; // r14\n  size_t v17; // rdx\n  __int16 v18; // [rsp+8h] [rbp-68h] BYREF\n  char v19; // [rsp+Ah] [rbp-66h]\n  void *__p; // [rsp+18h] [rbp-58h] BYREF\n  char v21; // [rsp+20h] [rbp-50h] BYREF\n  _BYTE __dst[15]; // [rsp+21h] [rbp-4Fh] BYREF\n  void *v23; // [rsp+30h] [rbp-40h] BYREF\n  void **p_p; // [rsp+38h] [rbp-38h]\n  _BOOL4 v25; // [rsp+44h] [rbp-2Ch]\n\n  v25 = a2;\n  next = a1->m_labelObjects.__table_.__p1_.__value_.__next_;\n  if ( next )\n  {\n    if ( v25 )\n    {\n      p_p = &__p;\n      do\n      {\n        p_next = &next[3].__next_->__next_;\n        v7 = next[4].__next_;\n        while ( p_next != (_QWORD *)v7 )\n        {\n          v8 = *p_next;\n          v18 = 12290;\n          v19 = 0;\n          LabelGameObject::updateLabel(v8, &v18);\n          if ( (v18 & 1) != 0 )\n            operator delete(__p);\n          ++p_next;\n        }\n        next = next->__next_;\n      }\n      while ( next );\n    }\n    else\n    {\n      do\n      {\n        v4 = (LabelGameObject **)next[3].__next_;\n        for ( i = (LabelGameObject **)next[4].__next_; v4 != i; ++v4 )\n          LabelGameObject::updatePreviewLabel(*v4);\n        next = next->__next_;\n      }\n      while ( next );\n    }\n  }\n  v9 = a1->m_timeLabelObjects.__table_.__p1_.__value_.__next_;\n  if ( v9 )\n  {\n    if ( v25 )\n    {\n      p_p = &v23;\n      do\n      {\n        v12 = v9[3].__next_;\n        v13 = v9[4].__next_;\n        while ( v12 != v13 )\n        {\n          v14 = v12->__next_;\n          v15 = \"0.00\";\n          if ( LOBYTE(v12->__next_[236].__next_) )\n            v15 = \"0\";\n          v16 = LOBYTE(v12->__next_[236].__next_) ^ 1LL;\n          v17 = 3 * v16 + 1;\n          v21 = 2 * v17;\n          memcpy(__dst, v15, v17);\n          __dst[3 * v16 + 1] = 0;\n          LabelGameObject::updateLabel(v14, &v21);\n          if ( (v21 & 1) != 0 )\n            operator delete(v23);\n          ++v12;\n        }\n        v9 = v9->__next_;\n      }\n      while ( v9 );\n    }\n    else\n    {\n      do\n      {\n        v10 = (LabelGameObject **)v9[3].__next_;\n        for ( j = (LabelGameObject **)v9[4].__next_; v10 != j; ++v10 )\n          LabelGameObject::updatePreviewLabel(*v10);\n        v9 = v9->__next_;\n      }\n      while ( v9 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetGroupCounters from 0x10014e280 to 0x10014e449 (457 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::init @ 0x1000dc071\n; > LevelEditorLayer::onPlaytest @ 0x1000f2768\n; > LevelEditorLayer::onStopPlaytest @ 0x1000f32a9\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, 0x10014e280\nmov     rbp, rsp                                                       ; +0x1, 0x10014e281\npush    r15                                                            ; +0x4, 0x10014e284\npush    r14                                                            ; +0x6, 0x10014e286\npush    r13                                                            ; +0x8, 0x10014e288\npush    r12                                                            ; +0xa, 0x10014e28a\npush    rbx                                                            ; +0xc, 0x10014e28c\nsub     rsp, 48h                                                       ; +0xd, 0x10014e28d\nmov     [rbp+var_2C], esi                                              ; +0x11, 0x10014e291\nmov     r14, rdi                                                       ; +0x14, 0x10014e294\nmov     r13, [rdi+0F18h]                                               ; +0x17, 0x10014e297\ntest    r13, r13                                                       ; +0x1e, 0x10014e29e\njz      loc_10014E350                                                  ; +0x21, 0x10014e2a1\ncmp     byte ptr [rbp+var_2C], 0                                       ; +0x27, 0x10014e2a7\njz      short loc_10014E2CD                                            ; +0x2b, 0x10014e2ab\nlea     rax, [rbp+__p]                                                 ; +0x2d, 0x10014e2ad\nmov     [rbp+var_38], rax                                              ; +0x31, 0x10014e2b1\nlea     r15, [rbp+var_68]                                              ; +0x35, 0x10014e2b5\njmp     short loc_10014E309                                            ; +0x39, 0x10014e2b9\nalign 20h                                                              ; +0x3b, 0x10014e2bb\nmov     r13, [r13+0]                                                   ; +0x40, 0x10014e2c0\ntest    r13, r13                                                       ; +0x44, 0x10014e2c4\njz      loc_10014E350                                                  ; +0x47, 0x10014e2c7\nmov     rbx, [r13+18h]                                                 ; +0x4d, 0x10014e2cd\nmov     r15, [r13+20h]                                                 ; +0x51, 0x10014e2d1\ncmp     rbx, r15                                                       ; +0x55, 0x10014e2d5\njz      short loc_10014E2C0                                            ; +0x58, 0x10014e2d8\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x10014e2da\nmov     rdi, [rbx]                                                     ; +0x60, 0x10014e2e0\ncall    LabelGameObject__updatePreviewLabel                            ; +0x63, 0x10014e2e3\nadd     rbx, 8                                                         ; +0x68, 0x10014e2e8\ncmp     rbx, r15                                                       ; +0x6c, 0x10014e2ec\njnz     short loc_10014E2E0                                            ; +0x6f, 0x10014e2ef\njmp     short loc_10014E2C0                                            ; +0x71, 0x10014e2f1\nalign 20h                                                              ; +0x73, 0x10014e2f3\nmov     r13, [r13+0]                                                   ; +0x80, 0x10014e300\ntest    r13, r13                                                       ; +0x84, 0x10014e304\njz      short loc_10014E350                                            ; +0x87, 0x10014e307\nmov     r12, [r13+18h]                                                 ; +0x89, 0x10014e309\nmov     rbx, [r13+20h]                                                 ; +0x8d, 0x10014e30d\njmp     short loc_10014E324                                            ; +0x91, 0x10014e311\nalign 20h                                                              ; +0x93, 0x10014e313\nadd     r12, 8                                                         ; +0xa0, 0x10014e320\ncmp     r12, rbx                                                       ; +0xa4, 0x10014e324\njz      short loc_10014E300                                            ; +0xa7, 0x10014e327\nmov     rdi, [r12]                                                     ; +0xa9, 0x10014e329\nmov     [rbp+var_68], 3002h                                            ; +0xad, 0x10014e32d\nmov     [rbp+var_66], 0                                                ; +0xb3, 0x10014e333\nmov     rsi, r15                                                       ; +0xb7, 0x10014e337\ncall    LabelGameObject__updateLabel                                   ; +0xba, 0x10014e33a\ntest    byte ptr [rbp+var_68], 1                                       ; +0xbf, 0x10014e33f\njz      short loc_10014E320                                            ; +0xc3, 0x10014e343\nmov     rdi, [rbp+__p]; __p                                            ; +0xc5, 0x10014e345\ncall    __ZdlPv; operator delete(void *)                               ; +0xc9, 0x10014e349\njmp     short loc_10014E320                                            ; +0xce, 0x10014e34e\nmov     r13, [r14+0F40h]                                               ; +0xd0, 0x10014e350\ntest    r13, r13                                                       ; +0xd7, 0x10014e357\njz      loc_10014E43A                                                  ; +0xda, 0x10014e35a\ncmp     byte ptr [rbp+var_2C], 0                                       ; +0xe0, 0x10014e360\njz      short loc_10014E37D                                            ; +0xe4, 0x10014e364\nlea     rax, [rbp+var_40]                                              ; +0xe6, 0x10014e366\nmov     [rbp+var_38], rax                                              ; +0xea, 0x10014e36a\njmp     short loc_10014E3BD                                            ; +0xee, 0x10014e36e\nmov     r13, [r13+0]                                                   ; +0xf0, 0x10014e370\ntest    r13, r13                                                       ; +0xf4, 0x10014e374\njz      loc_10014E43A                                                  ; +0xf7, 0x10014e377\nmov     rbx, [r13+18h]                                                 ; +0xfd, 0x10014e37d\nmov     r14, [r13+20h]                                                 ; +0x101, 0x10014e381\ncmp     rbx, r14                                                       ; +0x105, 0x10014e385\njz      short loc_10014E370                                            ; +0x108, 0x10014e388\nnop     word ptr [rax+rax+00h]                                         ; +0x10a, 0x10014e38a\nmov     rdi, [rbx]                                                     ; +0x110, 0x10014e390\ncall    LabelGameObject__updatePreviewLabel                            ; +0x113, 0x10014e393\nadd     rbx, 8                                                         ; +0x118, 0x10014e398\ncmp     rbx, r14                                                       ; +0x11c, 0x10014e39c\njnz     short loc_10014E390                                            ; +0x11f, 0x10014e39f\njmp     short loc_10014E370                                            ; +0x121, 0x10014e3a1\nalign 10h                                                              ; +0x123, 0x10014e3a3\nmov     r13, [r13+0]                                                   ; +0x130, 0x10014e3b0\ntest    r13, r13                                                       ; +0x134, 0x10014e3b4\njz      loc_10014E43A                                                  ; +0x137, 0x10014e3b7\nmov     r12, [r13+18h]                                                 ; +0x13d, 0x10014e3bd\nmov     rbx, [r13+20h]                                                 ; +0x141, 0x10014e3c1\njmp     short loc_10014E3D4                                            ; +0x145, 0x10014e3c5\nalign 10h                                                              ; +0x147, 0x10014e3c7\nadd     r12, 8                                                         ; +0x150, 0x10014e3d0\ncmp     r12, rbx                                                       ; +0x154, 0x10014e3d4\njz      short loc_10014E3B0                                            ; +0x157, 0x10014e3d7\nmov     r15, [r12]                                                     ; +0x159, 0x10014e3d9\nmovzx   r14d, byte ptr [r15+760h]                                      ; +0x15d, 0x10014e3dd\ntest    r14, r14                                                       ; +0x165, 0x10014e3e5\nlea     rsi, a000; \"0.00\"                                              ; +0x168, 0x10014e3e8\nlea     rax, a0; \"0\"                                                   ; +0x16f, 0x10014e3ef\ncmovnz  rsi, rax; __src                                                ; +0x176, 0x10014e3f6\nxor     r14, 1                                                         ; +0x17a, 0x10014e3fa\nlea     rdx, [r14+r14*2]                                               ; +0x17e, 0x10014e3fe\ninc     rdx; __n                                                       ; +0x182, 0x10014e402\nlea     eax, [rdx+rdx]                                                 ; +0x185, 0x10014e405\nmov     [rbp+var_50], al                                               ; +0x188, 0x10014e408\nlea     rdi, [rbp+__dst]; __dst                                        ; +0x18b, 0x10014e40b\ncall    _memcpy                                                        ; +0x18f, 0x10014e40f\nlea     rax, [r14+r14*2]                                               ; +0x194, 0x10014e414\nmov     [rbp+rax+var_4E], 0                                            ; +0x198, 0x10014e418\nmov     rdi, r15                                                       ; +0x19d, 0x10014e41d\nlea     rsi, [rbp+var_50]                                              ; +0x1a0, 0x10014e420\ncall    LabelGameObject__updateLabel                                   ; +0x1a4, 0x10014e424\ntest    [rbp+var_50], 1                                                ; +0x1a9, 0x10014e429\njz      short loc_10014E3D0                                            ; +0x1ad, 0x10014e42d\nmov     rdi, [rbp+var_40]; __p                                         ; +0x1af, 0x10014e42f\ncall    __ZdlPv; operator delete(void *)                               ; +0x1b3, 0x10014e433\njmp     short loc_10014E3D0                                            ; +0x1b8, 0x10014e438\nadd     rsp, 48h                                                       ; +0x1ba, 0x10014e43a\npop     rbx                                                            ; +0x1be, 0x10014e43e\npop     r12                                                            ; +0x1bf, 0x10014e43f\npop     r13                                                            ; +0x1c1, 0x10014e441\npop     r14                                                            ; +0x1c3, 0x10014e443\npop     r15                                                            ; +0x1c5, 0x10014e445\npop     rbp                                                            ; +0x1c7, 0x10014e447\nretn                                                                   ; +0x1c8, 0x10014e448", "xrefs": ["LevelEditorLayer::init @ 0x1000dc071", "LevelEditorLayer::onPlaytest @ 0x1000f2768", "LevelEditorLayer::onStopPlaytest @ 0x1000f32a9"], "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"}