{"type": "func", "start": 8767364, "end": 8767504, "name": "GJBaseGameLayer::controlAdvancedFollowCommand", "pseudocode": "// \n// GJBaseGameLayer::controlAdvancedFollowCommand from 0x85c784 to 0x85c810 (140 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x898eb8\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x899394\n// > <???> @ 0x6b910\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 GJBaseGameLayer::controlAdvancedFollowCommand(\n        GJBaseGameLayer *a1,\n        AdvancedFollowTriggerObject *a2,\n        int a3,\n        GJActionCommand a4)\n{\n  AdvancedFollowInstance *m_finish; // x4\n  AdvancedFollowInstance *i; // x0\n\n  m_finish = a1->m_gameState.m_advanceFollowInstances.m_finish;\n  for ( i = a1->m_gameState.m_advanceFollowInstances.m_start; m_finish != i; i[-1].m_started = 1 )\n  {\n    while ( a3 == -1 )\n    {\n      if ( i->m_gameObject == a2 )\n        goto LABEL_7;\nLABEL_4:\n      if ( m_finish == ++i )\n        return;\n    }\n    if ( i->m_controlId != a3 )\n      goto LABEL_4;\nLABEL_7:\n    if ( a4 )\n    {\n      if ( a4 == Pause )\n      {\n        i->m_finished = 1;\n        i->m_doStart = 1;\n      }\n      else if ( a4 == Resume )\n      {\n        i->m_finished = 0;\n        i->m_doStart = 0;\n      }\n      goto LABEL_4;\n    }\n    i->m_finished = 0;\n    ++i;\n    i[-1].m_doStart = 0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlAdvancedFollowCommand from 0x85c784 to 0x85c810 (140 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x898eb8\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x899394\n; > <???> @ 0x6b910\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\nLDR             X4, [X0,#0x740]                                        ; +0x0, 0x85c784\nMOV             W6, #1                                                 ; +0x4, 0x85c788\nLDR             X0, [X0,#0x738]                                        ; +0x8, 0x85c78c\nCMP             X4, X0                                                 ; +0xc, 0x85c790\nB.NE            loc_85C7B4                                             ; +0x10, 0x85c794\nB               locret_85C7E4                                          ; +0x14, 0x85c798\nLDR             X5, [X0]                                               ; +0x18, 0x85c79c\nCMP             X5, X1                                                 ; +0x1c, 0x85c7a0\nB.EQ            loc_85C7C8                                             ; +0x20, 0x85c7a4\nADD             X0, X0, #0x20 ; ' '                                    ; +0x24, 0x85c7a8\nCMP             X4, X0                                                 ; +0x28, 0x85c7ac\nB.EQ            locret_85C7E4                                          ; +0x2c, 0x85c7b0\nCMN             W2, #1                                                 ; +0x30, 0x85c7b4\nB.EQ            loc_85C79C                                             ; +0x34, 0x85c7b8\nLDR             W5, [X0,#0x10]                                         ; +0x38, 0x85c7bc\nCMP             W5, W2                                                 ; +0x3c, 0x85c7c0\nB.NE            loc_85C7A8                                             ; +0x40, 0x85c7c4\nCBNZ            W3, loc_85C7E8                                         ; +0x44, 0x85c7c8\nSTRB            WZR, [X0,#0x1C]                                        ; +0x48, 0x85c7cc\nADD             X0, X0, #0x20 ; ' '                                    ; +0x4c, 0x85c7d0\nSTURB           WZR, [X0,#-3]                                          ; +0x50, 0x85c7d4\nSTURB           W6, [X0,#-2]                                           ; +0x54, 0x85c7d8\nCMP             X4, X0                                                 ; +0x58, 0x85c7dc\nB.NE            loc_85C7B4                                             ; +0x5c, 0x85c7e0\nRET                                                                    ; +0x60, 0x85c7e4\nCMP             W3, #1                                                 ; +0x64, 0x85c7e8\nB.EQ            loc_85C804                                             ; +0x68, 0x85c7ec\nCMP             W3, #2                                                 ; +0x6c, 0x85c7f0\nB.NE            loc_85C7A8                                             ; +0x70, 0x85c7f4\nSTRB            WZR, [X0,#0x1C]                                        ; +0x74, 0x85c7f8\nSTRB            WZR, [X0,#0x1D]                                        ; +0x78, 0x85c7fc\nB               loc_85C7A8                                             ; +0x7c, 0x85c800\nSTRB            W3, [X0,#0x1C]                                         ; +0x80, 0x85c804\nSTRB            W3, [X0,#0x1D]                                         ; +0x84, 0x85c808\nB               loc_85C7A8                                             ; +0x88, 0x85c80c", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x898eb8", "GJBaseGameLayer::controlTriggersInGroup @ 0x899394", "<???> @ 0x6b910"], "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"}