{"type": "func", "start": 4639854, "end": 4639924, "name": "GJGameState::processStateTriggers", "pseudocode": "// \n// GJGameState::processStateTriggers from 0x46cc6e to 0x46ccb4 (70 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::update @ 0x497a86\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 *p_m_header; // r6\n  std::_rb_tree_base *m_left; // r4\n  int v4; // r7\n  void *v5; // r0\n\n  p_m_header = &a1->m_activatedObjectIDs.m_header;\n  m_left = a1->m_activatedObjectIDs.m_header.m_left;\n  while ( m_left != p_m_header )\n  {\n    if ( (int)m_left[1].m_left >= (signed int)a1->m_commandIndex )\n    {\n      m_left = (std::_rb_tree_base *)sub_761FA8(m_left);\n    }\n    else\n    {\n      v4 = sub_761FA8(m_left);\n      v5 = (void *)sub_7621E4(m_left, p_m_header);\n      m_left = (std::_rb_tree_base *)v4;\n      operator delete(v5);\n      --a1->m_activatedObjectIDs.m_nodecount;\n    }\n  }\n}", "assembly": "; \n; GJGameState::processStateTriggers from 0x46cc6e to 0x46ccb4 (70 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::update @ 0x497a86\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            {R3-R7,LR}                                             ; +0x0, 0x46cc6e\nADD.W           R6, R0, #0x2A8                                         ; +0x2, 0x46cc70\nLDR.W           R4, [R0,#0x2B0]                                        ; +0x6, 0x46cc74\nMOV             R5, R0                                                 ; +0xa, 0x46cc78\nCMP             R4, R6                                                 ; +0xc, 0x46cc7a\nBEQ             locret_46CCB2                                          ; +0xe, 0x46cc7c\nLDR             R2, [R4,#0x18]                                         ; +0x10, 0x46cc7e\nMOV             R0, R4                                                 ; +0x12, 0x46cc80\nLDR.W           R3, [R5,#0x1F0]                                        ; +0x14, 0x46cc82\nCMP             R2, R3                                                 ; +0x18, 0x46cc86\nBGE             loc_46CCAA                                             ; +0x1a, 0x46cc88\nBL              sub_761FA8                                             ; +0x1c, 0x46cc8a\nMOV             R1, R6                                                 ; +0x20, 0x46cc8e\nMOV             R7, R0                                                 ; +0x22, 0x46cc90\nMOV             R0, R4                                                 ; +0x24, 0x46cc92\nBL              sub_7621E4                                             ; +0x26, 0x46cc94\nMOV             R4, R7                                                 ; +0x2a, 0x46cc98\nBL              _ZdlPv; operator delete(void *)                        ; +0x2c, 0x46cc9a\nLDR.W           R3, [R5,#0x2B8]                                        ; +0x30, 0x46cc9e\nSUBS            R3, #1                                                 ; +0x34, 0x46cca2\nSTR.W           R3, [R5,#0x2B8]                                        ; +0x36, 0x46cca4\nB               loc_46CC7A                                             ; +0x3a, 0x46cca8\nBL              sub_761FA8                                             ; +0x3c, 0x46ccaa\nMOV             R4, R0                                                 ; +0x40, 0x46ccae\nB               loc_46CC7A                                             ; +0x42, 0x46ccb0\nPOP             {R3-R7,PC}                                             ; +0x44, 0x46ccb2", "xrefs": ["GJBaseGameLayer::update @ 0x497a86"], "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"}