{"type": "func", "start": 4296383504, "end": 4296383767, "name": "GJBaseGameLayer::clearActivatedAudioTriggers", "pseudocode": "// \n// GJBaseGameLayer::clearActivatedAudioTriggers from 0x100159c10 to 0x100159d17 (263 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1000de7a5\n// > LevelEditorLayer::resetPlayback @ 0x1000eec33\n// > LevelEditorLayer::onPlaytest @ 0x1000f2987\n// > GJBaseGameLayer::resetLevelVariables @ 0x100159179\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::clearActivatedAudioTriggers(GJBaseGameLayer *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, SongChannelState>, void *> *>::__next_pointer next; // rdi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, SongChannelState>, void *> *> *v3; // r14\n  unsigned __int64 value; // rsi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<SongTriggerState>>, void *> *>::__next_pointer v5; // r14\n  unsigned __int64 v6; // rsi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<SongTriggerState>>, void *> *> *v7; // r15\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<SongTriggerState>>, void *> *> *v8; // rdi\n\n  if ( a1->m_gameState.m_songChannelStates.__table_.__p2_.__value_ )\n  {\n    next = a1->m_gameState.m_songChannelStates.__table_.__p1_.__value_.__next_;\n    if ( next )\n    {\n      do\n      {\n        v3 = next->__next_;\n        operator delete(next);\n        next = v3;\n      }\n      while ( v3 );\n    }\n    a1->m_gameState.m_songChannelStates.__table_.__p1_.__value_.__next_ = nullptr;\n    value = a1->m_gameState.m_songChannelStates.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n    if ( value )\n      __bzero(a1->m_gameState.m_songChannelStates.__table_.__bucket_list_.__ptr_.__value_, 8 * value);\n    a1->m_gameState.m_songChannelStates.__table_.__p2_.__value_ = 0;\n  }\n  if ( a1->m_gameState.m_songTriggerStateVectors.__table_.__p2_.__value_ )\n  {\n    v5 = a1->m_gameState.m_songTriggerStateVectors.__table_.__p1_.__value_.__next_;\n    if ( v5 )\n    {\n      do\n      {\n        v7 = v5->__next_;\n        v8 = v5[3].__next_;\n        if ( v8 )\n        {\n          v5[4].__next_ = v8;\n          operator delete(v8);\n        }\n        operator delete(v5);\n        v5 = v7;\n      }\n      while ( v7 );\n    }\n    a1->m_gameState.m_songTriggerStateVectors.__table_.__p1_.__value_.__next_ = nullptr;\n    v6 = a1->m_gameState.m_songTriggerStateVectors.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n    if ( v6 )\n      __bzero(a1->m_gameState.m_songTriggerStateVectors.__table_.__bucket_list_.__ptr_.__value_, 8 * v6);\n    a1->m_gameState.m_songTriggerStateVectors.__table_.__p2_.__value_ = 0;\n  }\n  a1->m_gameState.m_sfxTriggerStates.__end_ = a1->m_gameState.m_sfxTriggerStates.__begin_;\n}", "assembly": "; \n; GJBaseGameLayer::clearActivatedAudioTriggers from 0x100159c10 to 0x100159d17 (263 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1000de7a5\n; > LevelEditorLayer::resetPlayback @ 0x1000eec33\n; > LevelEditorLayer::onPlaytest @ 0x1000f2987\n; > GJBaseGameLayer::resetLevelVariables @ 0x100159179\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, 0x100159c10\nmov     rbp, rsp                                                       ; +0x1, 0x100159c11\npush    r15                                                            ; +0x4, 0x100159c14\npush    r14                                                            ; +0x6, 0x100159c16\npush    rbx                                                            ; +0x8, 0x100159c18\npush    rax                                                            ; +0x9, 0x100159c19\nmov     rbx, rdi                                                       ; +0xa, 0x100159c1a\ncmp     qword ptr [rdi+718h], 0                                        ; +0xd, 0x100159c1d\njz      short loc_100159C82                                            ; +0x15, 0x100159c25\nmov     rdi, [rbx+710h]; __p                                           ; +0x17, 0x100159c27\ntest    rdi, rdi                                                       ; +0x1e, 0x100159c2e\njz      short loc_100159C50                                            ; +0x21, 0x100159c31\nnop     word ptr [rax+rax+00000000h]                                   ; +0x23, 0x100159c33\nmov     r14, [rdi]                                                     ; +0x30, 0x100159c40\ncall    __ZdlPv; operator delete(void *)                               ; +0x33, 0x100159c43\nmov     rdi, r14                                                       ; +0x38, 0x100159c48\ntest    r14, r14                                                       ; +0x3b, 0x100159c4b\njnz     short loc_100159C40                                            ; +0x3e, 0x100159c4e\nmov     qword ptr [rbx+710h], 0                                        ; +0x40, 0x100159c50\nmov     rsi, [rbx+708h]                                                ; +0x4b, 0x100159c5b\ntest    rsi, rsi                                                       ; +0x52, 0x100159c62\njz      short loc_100159C77                                            ; +0x55, 0x100159c65\nmov     rdi, [rbx+700h]                                                ; +0x57, 0x100159c67\nshl     rsi, 3                                                         ; +0x5e, 0x100159c6e\ncall    ___bzero                                                       ; +0x62, 0x100159c72\nmov     qword ptr [rbx+718h], 0                                        ; +0x67, 0x100159c77\ncmp     qword ptr [rbx+740h], 0                                        ; +0x72, 0x100159c82\njz      short loc_100159CCA                                            ; +0x7a, 0x100159c8a\nmov     r14, [rbx+738h]                                                ; +0x7c, 0x100159c8c\ntest    r14, r14                                                       ; +0x83, 0x100159c93\njnz     short loc_100159D00                                            ; +0x86, 0x100159c96\nmov     qword ptr [rbx+738h], 0                                        ; +0x88, 0x100159c98\nmov     rsi, [rbx+730h]                                                ; +0x93, 0x100159ca3\ntest    rsi, rsi                                                       ; +0x9a, 0x100159caa\njz      short loc_100159CBF                                            ; +0x9d, 0x100159cad\nmov     rdi, [rbx+728h]                                                ; +0x9f, 0x100159caf\nshl     rsi, 3                                                         ; +0xa6, 0x100159cb6\ncall    ___bzero                                                       ; +0xaa, 0x100159cba\nmov     qword ptr [rbx+740h], 0                                        ; +0xaf, 0x100159cbf\nmov     rax, [rbx+750h]                                                ; +0xba, 0x100159cca\nmov     [rbx+758h], rax                                                ; +0xc1, 0x100159cd1\nadd     rsp, 8                                                         ; +0xc8, 0x100159cd8\npop     rbx                                                            ; +0xcc, 0x100159cdc\npop     r14                                                            ; +0xcd, 0x100159cdd\npop     r15                                                            ; +0xcf, 0x100159cdf\npop     rbp                                                            ; +0xd1, 0x100159ce1\nretn                                                                   ; +0xd2, 0x100159ce2\nalign 10h                                                              ; +0xd3, 0x100159ce3\nmov     rdi, r14; __p                                                  ; +0xe0, 0x100159cf0\ncall    __ZdlPv; operator delete(void *)                               ; +0xe3, 0x100159cf3\nmov     r14, r15                                                       ; +0xe8, 0x100159cf8\ntest    r15, r15                                                       ; +0xeb, 0x100159cfb\njz      short loc_100159C98                                            ; +0xee, 0x100159cfe\nmov     r15, [r14]                                                     ; +0xf0, 0x100159d00\nmov     rdi, [r14+18h]; __p                                            ; +0xf3, 0x100159d03\ntest    rdi, rdi                                                       ; +0xf7, 0x100159d07\njz      short loc_100159CF0                                            ; +0xfa, 0x100159d0a\nmov     [r14+20h], rdi                                                 ; +0xfc, 0x100159d0c\ncall    __ZdlPv; operator delete(void *)                               ; +0x100, 0x100159d10\njmp     short loc_100159CF0                                            ; +0x105, 0x100159d15", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1000de7a5", "LevelEditorLayer::resetPlayback @ 0x1000eec33", "LevelEditorLayer::onPlaytest @ 0x1000f2987", "GJBaseGameLayer::resetLevelVariables @ 0x100159179"], "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"}