{"type": "func", "start": 8743324, "end": 8743464, "name": "GJGameState::processStateTriggers", "pseudocode": "// \n// GJGameState::processStateTriggers from 0x85699c to 0x856a28 (140 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::update @ 0x89e248\n// > <???> @ 0x73140\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 GJGameState::processStateTriggers(GJGameState *a1)\n{\n  std::_rb_tree_base *m_left; // x19\n  std::_rb_tree_base *p_m_header; // x21\n  __int64 v4; // x0\n  __int64 v5; // x2\n  std::_rb_tree_base *v6; // x0\n  void *v7; // x0\n\n  m_left = a1->m_activatedObjectIDs.m_header.m_left;\n  p_m_header = &a1->m_activatedObjectIDs.m_header;\n  while ( 1 )\n  {\n    v4 = (__int64)m_left;\n    if ( m_left == p_m_header )\n      break;\n    while ( SLODWORD(m_left[1].m_parent) >= (signed int)a1->m_commandIndex )\n    {\n      v4 = sub_CFAB14(v4);\n      m_left = (std::_rb_tree_base *)v4;\n      if ( (std::_rb_tree_base *)v4 == p_m_header )\n        return;\n    }\n    v5 = sub_CFAB14(m_left);\n    v6 = m_left;\n    m_left = (std::_rb_tree_base *)v5;\n    v7 = (void *)sub_CFAF34(v6, p_m_header);\n    operator delete(v7);\n    --a1->m_activatedObjectIDs.m_nodecount;\n  }\n}", "assembly": "; \n; GJGameState::processStateTriggers from 0x85699c to 0x856a28 (140 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::update @ 0x89e248\n; > <???> @ 0x73140\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x85699c\nMOV             X29, SP                                                ; +0x4, 0x8569a0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x8569a4\nLDR             X19, [X0,#0x340]                                       ; +0xc, 0x8569a8\nMOV             X20, X0                                                ; +0x10, 0x8569ac\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0x8569b0\nADD             X21, X0, #0x330                                        ; +0x18, 0x8569b4\nCMP             X19, X21                                               ; +0x1c, 0x8569b8\nMOV             X0, X19                                                ; +0x20, 0x8569bc\nB.EQ            loc_8569E8                                             ; +0x24, 0x8569c0\nLDR             W2, [X19,#0x28]                                        ; +0x28, 0x8569c4\nLDR             W1, [X20,#0x228]                                       ; +0x2c, 0x8569c8\nCMP             W2, W1                                                 ; +0x30, 0x8569cc\nB.LT            loc_8569F8                                             ; +0x34, 0x8569d0\nBL              sub_CFAB14                                             ; +0x38, 0x8569d4\nMOV             X19, X0                                                ; +0x3c, 0x8569d8\nCMP             X19, X21                                               ; +0x40, 0x8569dc\nMOV             X0, X19                                                ; +0x44, 0x8569e0\nB.NE            loc_8569C4                                             ; +0x48, 0x8569e4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x4c, 0x8569e8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x50, 0x8569ec\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0x8569f0\nRET                                                                    ; +0x58, 0x8569f4\nMOV             X0, X19                                                ; +0x5c, 0x8569f8\nBL              sub_CFAB14                                             ; +0x60, 0x8569fc\nMOV             X2, X0                                                 ; +0x64, 0x856a00\nMOV             X1, X21                                                ; +0x68, 0x856a04\nMOV             X0, X19                                                ; +0x6c, 0x856a08\nMOV             X19, X2                                                ; +0x70, 0x856a0c\nBL              sub_CFAF34                                             ; +0x74, 0x856a10\nBL              _ZdlPv; operator delete(void *)                        ; +0x78, 0x856a14\nLDR             X0, [X20,#0x350]                                       ; +0x7c, 0x856a18\nSUB             X0, X0, #1                                             ; +0x80, 0x856a1c\nSTR             X0, [X20,#0x350]                                       ; +0x84, 0x856a20\nB               loc_8569B8                                             ; +0x88, 0x856a24", "xrefs": ["GJBaseGameLayer::update @ 0x89e248", "<???> @ 0x73140"], "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"}