{"type": "func", "start": 4296074896, "end": 4296075195, "name": "GJGameState::processStateTriggers", "pseudocode": "// \n// GJGameState::processStateTriggers from 0x10010e690 to 0x10010e7bb (299 bytes)\n// \n// 0 xrefs:\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 GJGameState::processStateTriggers(GJGameState *a1)\n{\n  std::__tree<std::__value_type<std::pair<int, int>, int>, std::__map_value_compare<std::pair<int, int>, std::__value_type<std::pair<int, int>, int>, std::less<std::pair<int, int>>, true>, std::allocator<std::__value_type<std::pair<int, int>, int>>>::__iter_pointer begin_node; // r14\n  GJGameState *left; // rax\n  GJGameState *v3; // rcx\n  void *v4; // rdx\n  GJGameState *v5; // r12\n  bool v6; // zf\n  std::__tree_end_node<std::__tree_node_base<void *> *> **v7; // rdx\n  std::__tree_end_node<std::__tree_node_base<void *> *> *v8; // rcx\n\n  begin_node = a1->m_activatedObjectIDs.__tree_.__begin_node_;\n  if ( begin_node != (std::__tree<std::__value_type<std::pair<int, int>, int>, std::__map_value_compare<std::pair<int, int>, std::__value_type<std::pair<int, int>, int>, std::less<std::pair<int, int>>, true>, std::allocator<std::__value_type<std::pair<int, int>, int>>>::__iter_pointer)&a1->m_activatedObjectIDs.__tree_.__pair1_ )\n  {\n    do\n    {\n      left = (GJGameState *)begin_node[1].__left_;\n      if ( SHIDWORD(begin_node[4].__left_) >= (signed int)a1->m_commandIndex )\n      {\n        if ( left )\n        {\n          do\n          {\n            v5 = left;\n            left = *(GJGameState **)&left->m_cameraZoom;\n          }\n          while ( left );\n        }\n        else\n        {\n          do\n          {\n            v5 = (GJGameState *)begin_node[2].__left_;\n            v6 = *(_QWORD *)&v5->m_cameraZoom == (_QWORD)begin_node;\n            begin_node = (std::__tree<std::__value_type<std::pair<int, int>, int>, std::__map_value_compare<std::pair<int, int>, std::__value_type<std::pair<int, int>, int>, std::less<std::pair<int, int>>, true>, std::allocator<std::__value_type<std::pair<int, int>, int>>>::__iter_pointer)v5;\n          }\n          while ( !v6 );\n        }\n      }\n      else\n      {\n        v3 = (GJGameState *)begin_node[1].__left_;\n        v4 = begin_node;\n        if ( left )\n        {\n          do\n          {\n            v5 = v3;\n            v3 = *(GJGameState **)&v3->m_cameraZoom;\n          }\n          while ( v3 );\n        }\n        else\n        {\n          do\n          {\n            v5 = *((GJGameState **)v4 + 2);\n            v6 = *(_QWORD *)&v5->m_cameraZoom == (_QWORD)v4;\n            v4 = v5;\n          }\n          while ( !v6 );\n        }\n        v7 = (std::__tree_end_node<std::__tree_node_base<void *> *> **)begin_node;\n        if ( left )\n        {\n          do\n          {\n            v8 = (std::__tree_end_node<std::__tree_node_base<void *> *> *)left;\n            left = *(GJGameState **)&left->m_cameraZoom;\n          }\n          while ( left );\n        }\n        else\n        {\n          do\n          {\n            v8 = v7[2];\n            v6 = v8->__left_ == (std::__tree_end_node<std::__tree_node_base<void *> *>::pointer)v7;\n            v7 = (std::__tree_end_node<std::__tree_node_base<void *> *> **)v8;\n          }\n          while ( !v6 );\n        }\n        if ( a1->m_activatedObjectIDs.__tree_.__begin_node_ == begin_node )\n          a1->m_activatedObjectIDs.__tree_.__begin_node_ = v8;\n        --a1->m_activatedObjectIDs.__tree_.__pair3_.__value_;\n        sub_100165F60(a1->m_activatedObjectIDs.__tree_.__pair1_.__value_.__left_, begin_node);\n        operator delete(begin_node);\n      }\n      begin_node = (std::__tree<std::__value_type<std::pair<int, int>, int>, std::__map_value_compare<std::pair<int, int>, std::__value_type<std::pair<int, int>, int>, std::less<std::pair<int, int>>, true>, std::allocator<std::__value_type<std::pair<int, int>, int>>>::__iter_pointer)v5;\n    }\n    while ( v5 != (GJGameState *)&a1->m_activatedObjectIDs.__tree_.__pair1_ );\n  }\n}", "assembly": "; \n; GJGameState::processStateTriggers from 0x10010e690 to 0x10010e7bb (299 bytes)\n; \n; 0 xrefs:\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, 0x10010e690\nmov     rbp, rsp                                                       ; +0x1, 0x10010e691\npush    r15                                                            ; +0x4, 0x10010e694\npush    r14                                                            ; +0x6, 0x10010e696\npush    r12                                                            ; +0x8, 0x10010e698\npush    rbx                                                            ; +0xa, 0x10010e69a\nmov     r14, [rdi+2E8h]                                                ; +0xb, 0x10010e69b\nlea     r15, [rdi+2F0h]                                                ; +0x12, 0x10010e6a2\ncmp     r14, r15                                                       ; +0x19, 0x10010e6a9\njz      loc_10010E7B2                                                  ; +0x1c, 0x10010e6ac\nmov     rbx, rdi                                                       ; +0x22, 0x10010e6b2\njmp     short loc_10010E6EA                                            ; +0x25, 0x10010e6b5\nalign 20h                                                              ; +0x27, 0x10010e6b7\ndec     qword ptr [rbx+2F8h]                                           ; +0x30, 0x10010e6c0\nmov     rdi, [rbx+2F0h]                                                ; +0x37, 0x10010e6c7\nmov     rsi, r14                                                       ; +0x3e, 0x10010e6ce\ncall    sub_100165F60                                                  ; +0x41, 0x10010e6d1\nmov     rdi, r14; __p                                                  ; +0x46, 0x10010e6d6\ncall    __ZdlPv; operator delete(void *)                               ; +0x49, 0x10010e6d9\nmov     r14, r12                                                       ; +0x4e, 0x10010e6de\ncmp     r12, r15                                                       ; +0x51, 0x10010e6e1\njz      loc_10010E7B2                                                  ; +0x54, 0x10010e6e4\nmov     ecx, [r14+24h]                                                 ; +0x5a, 0x10010e6ea\nmov     rax, [r14+8]                                                   ; +0x5e, 0x10010e6ee\ncmp     ecx, [rbx+208h]                                                ; +0x62, 0x10010e6f2\njge     loc_10010E780                                                  ; +0x68, 0x10010e6f8\nmov     rcx, rax                                                       ; +0x6e, 0x10010e6fe\nmov     rdx, r14                                                       ; +0x71, 0x10010e701\ntest    rax, rax                                                       ; +0x74, 0x10010e704\njz      short loc_10010E720                                            ; +0x77, 0x10010e707\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x10010e709\nmov     r12, rcx                                                       ; +0x80, 0x10010e710\nmov     rcx, [rcx]                                                     ; +0x83, 0x10010e713\ntest    rcx, rcx                                                       ; +0x86, 0x10010e716\njnz     short loc_10010E710                                            ; +0x89, 0x10010e719\njmp     short loc_10010E72D                                            ; +0x8b, 0x10010e71b\nalign 20h                                                              ; +0x8d, 0x10010e71d\nmov     r12, [rdx+10h]                                                 ; +0x90, 0x10010e720\ncmp     [r12], rdx                                                     ; +0x94, 0x10010e724\nmov     rdx, r12                                                       ; +0x98, 0x10010e728\njnz     short loc_10010E720                                            ; +0x9b, 0x10010e72b\nmov     rdx, r14                                                       ; +0x9d, 0x10010e72d\ntest    rax, rax                                                       ; +0xa0, 0x10010e730\njz      short loc_10010E750                                            ; +0xa3, 0x10010e733\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa5, 0x10010e735\nmov     rcx, rax                                                       ; +0xb0, 0x10010e740\nmov     rax, [rax]                                                     ; +0xb3, 0x10010e743\ntest    rax, rax                                                       ; +0xb6, 0x10010e746\njnz     short loc_10010E740                                            ; +0xb9, 0x10010e749\njmp     short loc_10010E75C                                            ; +0xbb, 0x10010e74b\nalign 10h                                                              ; +0xbd, 0x10010e74d\nmov     rcx, [rdx+10h]                                                 ; +0xc0, 0x10010e750\ncmp     [rcx], rdx                                                     ; +0xc4, 0x10010e754\nmov     rdx, rcx                                                       ; +0xc7, 0x10010e757\njnz     short loc_10010E750                                            ; +0xca, 0x10010e75a\ncmp     [rbx+2E8h], r14                                                ; +0xcc, 0x10010e75c\njnz     loc_10010E6C0                                                  ; +0xd3, 0x10010e763\nmov     [rbx+2E8h], rcx                                                ; +0xd9, 0x10010e769\njmp     loc_10010E6C0                                                  ; +0xe0, 0x10010e770\nalign 20h                                                              ; +0xe5, 0x10010e775\ntest    rax, rax                                                       ; +0xf0, 0x10010e780\njz      short loc_10010E7A0                                            ; +0xf3, 0x10010e783\nnop     word ptr [rax+rax+00000000h]                                   ; +0xf5, 0x10010e785\nmov     r12, rax                                                       ; +0x100, 0x10010e790\nmov     rax, [rax]                                                     ; +0x103, 0x10010e793\ntest    rax, rax                                                       ; +0x106, 0x10010e796\njnz     short loc_10010E790                                            ; +0x109, 0x10010e799\njmp     loc_10010E6DE                                                  ; +0x10b, 0x10010e79b\nmov     r12, [r14+10h]                                                 ; +0x110, 0x10010e7a0\ncmp     [r12], r14                                                     ; +0x114, 0x10010e7a4\nmov     r14, r12                                                       ; +0x118, 0x10010e7a8\njnz     short loc_10010E7A0                                            ; +0x11b, 0x10010e7ab\njmp     loc_10010E6DE                                                  ; +0x11d, 0x10010e7ad\npop     rbx                                                            ; +0x122, 0x10010e7b2\npop     r12                                                            ; +0x123, 0x10010e7b3\npop     r14                                                            ; +0x125, 0x10010e7b5\npop     r15                                                            ; +0x127, 0x10010e7b7\npop     rbp                                                            ; +0x129, 0x10010e7b9\nretn                                                                   ; +0x12a, 0x10010e7ba", "xrefs": [], "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"}