{"type": "func", "start": 4296990980, "end": 4296991104, "name": "GJBaseGameLayer::controlAdvancedFollowCommand", "pseudocode": "// \n// GJBaseGameLayer::controlAdvancedFollowCommand from 0x1001ee104 to 0x1001ee180 (124 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edfc8\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4b4\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::controlAdvancedFollowCommand(\n        GJBaseGameLayer *a1,\n        AdvancedFollowTriggerObject *a2,\n        int a3,\n        GJActionCommand a4)\n{\n  std::__vector_base<AdvancedFollowInstance>::pointer begin; // x8\n  std::__vector_base<AdvancedFollowInstance>::pointer i; // x9\n\n  begin = a1->m_gameState.m_advanceFollowInstances.__begin_;\n  for ( i = a1->m_gameState.m_advanceFollowInstances.__end_; begin != i; ++begin )\n  {\n    if ( a3 != -1 && begin->m_controlId == a3 || a3 == -1 && begin->m_gameObject == a2 )\n    {\n      switch ( a4 )\n      {\n        case Resume:\n          *(_WORD *)&begin->m_finished = 0;\n          break;\n        case Pause:\n          *(_WORD *)&begin->m_finished = 257;\n          break;\n        case Stop:\n          *(_WORD *)&begin->m_finished = 0;\n          begin->m_started = 1;\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlAdvancedFollowCommand from 0x1001ee104 to 0x1001ee180 (124 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edfc8\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4b4\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             X8, [X0,#0x670]                                        ; +0x0, 0x1001ee104\nLDR             X9, [X0,#0x678]                                        ; +0x4, 0x1001ee108\nCMP             X8, X9                                                 ; +0x8, 0x1001ee10c\nB.EQ            locret_1001EE17C                                       ; +0xc, 0x1001ee110\nMOV             W10, #0x101                                            ; +0x10, 0x1001ee114\nMOV             W11, #1                                                ; +0x14, 0x1001ee118\nCMN             W2, #1                                                 ; +0x18, 0x1001ee11c\nB.EQ            loc_1001EE130                                          ; +0x1c, 0x1001ee120\nLDR             W12, [X8,#0x10]                                        ; +0x20, 0x1001ee124\nCMP             W12, W2                                                ; +0x24, 0x1001ee128\nB.EQ            loc_1001EE144                                          ; +0x28, 0x1001ee12c\nCMN             W2, #1                                                 ; +0x2c, 0x1001ee130\nB.NE            loc_1001EE170                                          ; +0x30, 0x1001ee134\nLDR             X12, [X8]                                              ; +0x34, 0x1001ee138\nCMP             X12, X1                                                ; +0x38, 0x1001ee13c\nB.NE            loc_1001EE170                                          ; +0x3c, 0x1001ee140\nCMP             W3, #2                                                 ; +0x40, 0x1001ee144\nB.EQ            loc_1001EE16C                                          ; +0x44, 0x1001ee148\nCMP             W3, #1                                                 ; +0x48, 0x1001ee14c\nB.EQ            loc_1001EE164                                          ; +0x4c, 0x1001ee150\nCBNZ            W3, loc_1001EE170                                      ; +0x50, 0x1001ee154\nSTRH            WZR, [X8,#0x1C]                                        ; +0x54, 0x1001ee158\nSTRB            W11, [X8,#0x1E]                                        ; +0x58, 0x1001ee15c\nB               loc_1001EE170                                          ; +0x5c, 0x1001ee160\nSTRH            W10, [X8,#0x1C]                                        ; +0x60, 0x1001ee164\nB               loc_1001EE170                                          ; +0x64, 0x1001ee168\nSTRH            WZR, [X8,#0x1C]                                        ; +0x68, 0x1001ee16c\nADD             X8, X8, #0x20 ; ' '                                    ; +0x6c, 0x1001ee170\nCMP             X8, X9                                                 ; +0x70, 0x1001ee174\nB.NE            loc_1001EE11C                                          ; +0x74, 0x1001ee178\nRET                                                                    ; +0x78, 0x1001ee17c", "xrefs": ["GJBaseGameLayer::controlTriggersInGroup @ 0x1001edfc8", "GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4b4"], "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"}