{"type": "func", "start": 9065220, "end": 9065340, "name": "GJEffectManager::hasBeenTriggered", "pseudocode": "// \n// GJEffectManager::hasBeenTriggered from 0x8a5304 to 0x8a537c (120 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x5e4de0\n// > GJBaseGameLayer::playerTouchedTrigger @ 0x88769c\n// > GJBaseGameLayer::collisionCheckObjects @ 0x88bdb4\n// > GJBaseGameLayer::collisionCheckObjects @ 0x88bdf4\n// > <???> @ 0x2bef0\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\nbool GJEffectManager::hasBeenTriggered(GJEffectManager *a1, int a2, int a3)\n{\n  std::_Rb_tree_node_base *p_M_header; // x5\n  std::_Rb_tree_node_base::_Base_ptr M_parent; // x0\n  std::_Rb_tree_node_base *v5; // x4\n  int M_color; // w3\n  int v7; // w3\n\n  p_M_header = &a1->m_unkMap498._M_t._M_impl._M_header;\n  M_parent = a1->m_unkMap498._M_t._M_impl._M_header._M_parent;\n  if ( !M_parent )\n    goto LABEL_14;\n  v5 = p_M_header;\n  do\n  {\n    while ( 1 )\n    {\n      M_color = M_parent[1]._M_color;\n      if ( a2 > M_color || a2 >= M_color && a3 > *((_DWORD *)&M_parent[1]._M_color + 1) )\n        break;\n      v5 = M_parent;\n      M_parent = M_parent->_M_left;\n      if ( !M_parent )\n        goto LABEL_7;\n    }\n    M_parent = M_parent->_M_right;\n  }\n  while ( M_parent );\nLABEL_7:\n  if ( v5 == p_M_header )\n  {\nLABEL_14:\n    LOBYTE(M_parent) = 0;\n  }\n  else\n  {\n    v7 = v5[1]._M_color;\n    if ( a2 >= v7 )\n    {\n      LOBYTE(M_parent) = 1;\n      if ( a2 <= v7 )\n        LOBYTE(M_parent) = a3 >= *((_DWORD *)&v5[1]._M_color + 1);\n    }\n  }\n  return (char)M_parent;\n}", "assembly": "; \n; GJEffectManager::hasBeenTriggered from 0x8a5304 to 0x8a537c (120 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x5e4de0\n; > GJBaseGameLayer::playerTouchedTrigger @ 0x88769c\n; > GJBaseGameLayer::collisionCheckObjects @ 0x88bdb4\n; > GJBaseGameLayer::collisionCheckObjects @ 0x88bdf4\n; > <???> @ 0x2bef0\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\nADD             X5, X0, #0x510                                         ; +0x0, 0x8a5304\nLDR             X0, [X0,#0x518]                                        ; +0x4, 0x8a5308\nCBZ             X0, loc_8A5374                                         ; +0x8, 0x8a530c\nMOV             X4, X5                                                 ; +0xc, 0x8a5310\nLDR             W3, [X0,#0x20]                                         ; +0x10, 0x8a5314\nCMP             W1, W3                                                 ; +0x14, 0x8a5318\nB.GT            loc_8A5368                                             ; +0x18, 0x8a531c\nB.LT            loc_8A5330                                             ; +0x1c, 0x8a5320\nLDR             W3, [X0,#0x24]                                         ; +0x20, 0x8a5324\nCMP             W2, W3                                                 ; +0x24, 0x8a5328\nB.GT            loc_8A5368                                             ; +0x28, 0x8a532c\nMOV             X4, X0                                                 ; +0x2c, 0x8a5330\nLDR             X0, [X0,#0x10]                                         ; +0x30, 0x8a5334\nCBNZ            X0, loc_8A5314                                         ; +0x34, 0x8a5338\nCMP             X4, X5                                                 ; +0x38, 0x8a533c\nB.EQ            loc_8A5374                                             ; +0x3c, 0x8a5340\nLDR             W3, [X4,#0x20]                                         ; +0x40, 0x8a5344\nCMP             W1, W3                                                 ; +0x44, 0x8a5348\nB.LT            locret_8A5364                                          ; +0x48, 0x8a534c\nMOV             W0, #1                                                 ; +0x4c, 0x8a5350\nB.GT            locret_8A5364                                          ; +0x50, 0x8a5354\nLDR             W0, [X4,#0x24]                                         ; +0x54, 0x8a5358\nCMP             W2, W0                                                 ; +0x58, 0x8a535c\nCSET            W0, GE                                                 ; +0x5c, 0x8a5360\nRET                                                                    ; +0x60, 0x8a5364\nLDR             X0, [X0,#0x18]                                         ; +0x64, 0x8a5368\nCBNZ            X0, loc_8A5314                                         ; +0x68, 0x8a536c\nB               loc_8A533C                                             ; +0x6c, 0x8a5370\nMOV             W0, #0                                                 ; +0x70, 0x8a5374\nRET                                                                    ; +0x74, 0x8a5378", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x5e4de0", "GJBaseGameLayer::playerTouchedTrigger @ 0x88769c", "GJBaseGameLayer::collisionCheckObjects @ 0x88bdb4", "GJBaseGameLayer::collisionCheckObjects @ 0x88bdf4", "<???> @ 0x2bef0"], "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"}