{"type": "func", "start": 4297718368, "end": 4297718536, "name": "GJBaseGameLayer::processQueuedAudioTriggers", "pseudocode": "// \n// GJBaseGameLayer::processQueuedAudioTriggers from 0x10029fa60 to 0x10029fb08 (168 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::startMusic @ 0x1001426d4\n// > LevelEditorLayer::onPlaytest @ 0x100404b94\n// > EditorUI::onPlayback @ 0x1004713cc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:12 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::processQueuedAudioTriggers(__int64 result)\n{\n  __int64 v1; // x19\n  __int64 v2; // x20\n  __int64 v3; // x21\n  int v4; // w8\n\n  v1 = result;\n  *(_BYTE *)(result + 1983) = 0;\n  v2 = *(_QWORD *)(result + 1984);\n  v3 = *(_QWORD *)(result + 1992);\n  if ( v2 != v3 )\n  {\n    do\n    {\n      v4 = *(_DWORD *)(*(_QWORD *)v2 + 1028LL);\n      if ( v4 > 3602 )\n      {\n        if ( v4 == 3603 )\n        {\n          result = GJBaseGameLayer::activateSFXEditTrigger(v1);\n        }\n        else if ( v4 == 3605 )\n        {\n          result = GJBaseGameLayer::activateSongEditTrigger(v1);\n        }\n      }\n      else if ( v4 == 1934 )\n      {\n        result = GJBaseGameLayer::activateSongTrigger(v1);\n      }\n      else if ( v4 == 3602 )\n      {\n        result = GJBaseGameLayer::activateSFXTrigger(v1);\n      }\n      v2 += 8;\n    }\n    while ( v2 != v3 );\n    v2 = *(_QWORD *)(v1 + 1984);\n  }\n  *(_QWORD *)(v1 + 1992) = v2;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedAudioTriggers from 0x10029fa60 to 0x10029fb08 (168 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::startMusic @ 0x1001426d4\n; > LevelEditorLayer::onPlaytest @ 0x100404b94\n; > EditorUI::onPlayback @ 0x1004713cc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:12 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10029fa60\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10029fa64\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10029fa68\nADD             X29, SP, #0x20                                         ; +0xc, 0x10029fa6c\nMOV             X19, X0                                                ; +0x10, 0x10029fa70\nSTRB            WZR, [X0,#0x7BF]                                       ; +0x14, 0x10029fa74\nLDR             X20, [X0,#0x7C0]                                       ; +0x18, 0x10029fa78\nLDR             X21, [X0,#0x7C8]                                       ; +0x1c, 0x10029fa7c\nCMP             X20, X21                                               ; +0x20, 0x10029fa80\nB.EQ            loc_10029FAF4                                          ; +0x24, 0x10029fa84\nLDR             X1, [X20]                                              ; +0x28, 0x10029fa88\nLDR             W8, [X1,#0x404]                                        ; +0x2c, 0x10029fa8c\nCMP             W8, #0xE12                                             ; +0x30, 0x10029fa90\nB.GT            loc_10029FAB4                                          ; +0x34, 0x10029fa94\nCMP             W8, #0x78E                                             ; +0x38, 0x10029fa98\nB.EQ            loc_10029FAD0                                          ; +0x3c, 0x10029fa9c\nCMP             W8, #0xE12                                             ; +0x40, 0x10029faa0\nB.NE            loc_10029FAE4                                          ; +0x44, 0x10029faa4\nMOV             X0, X19                                                ; +0x48, 0x10029faa8\nBL              GJBaseGameLayer__activateSFXTrigger                    ; +0x4c, 0x10029faac\nB               loc_10029FAE4                                          ; +0x50, 0x10029fab0\nCMP             W8, #0xE13                                             ; +0x54, 0x10029fab4\nB.EQ            loc_10029FADC                                          ; +0x58, 0x10029fab8\nCMP             W8, #0xE15                                             ; +0x5c, 0x10029fabc\nB.NE            loc_10029FAE4                                          ; +0x60, 0x10029fac0\nMOV             X0, X19                                                ; +0x64, 0x10029fac4\nBL              GJBaseGameLayer__activateSongEditTrigger               ; +0x68, 0x10029fac8\nB               loc_10029FAE4                                          ; +0x6c, 0x10029facc\nMOV             X0, X19                                                ; +0x70, 0x10029fad0\nBL              GJBaseGameLayer__activateSongTrigger                   ; +0x74, 0x10029fad4\nB               loc_10029FAE4                                          ; +0x78, 0x10029fad8\nMOV             X0, X19                                                ; +0x7c, 0x10029fadc\nBL              GJBaseGameLayer__activateSFXEditTrigger                ; +0x80, 0x10029fae0\nADD             X20, X20, #8                                           ; +0x84, 0x10029fae4\nCMP             X20, X21                                               ; +0x88, 0x10029fae8\nB.NE            loc_10029FA88                                          ; +0x8c, 0x10029faec\nLDR             X20, [X19,#0x7C0]                                      ; +0x90, 0x10029faf0\nSTR             X20, [X19,#0x7C8]                                      ; +0x94, 0x10029faf4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x98, 0x10029faf8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x9c, 0x10029fafc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa0, 0x10029fb00\nRET                                                                    ; +0xa4, 0x10029fb04", "xrefs": ["PlayLayer::startMusic @ 0x1001426d4", "LevelEditorLayer::onPlaytest @ 0x100404b94", "EditorUI::onPlayback @ 0x1004713cc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}