{"type": "func", "start": 4654000, "end": 4654068, "name": "GJBaseGameLayer::controlAdvancedFollowCommand", "pseudocode": "// \n// GJBaseGameLayer::controlAdvancedFollowCommand from 0x4703b0 to 0x4703f4 (68 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x495c8c\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x495f96\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; // r5\n  AdvancedFollowInstance *i; // r0\n  bool v6; // zf\n\n  m_finish = a1->m_gameState.m_advanceFollowInstances.m_finish;\n  for ( i = a1->m_gameState.m_advanceFollowInstances.m_start; i != m_finish; ++i )\n  {\n    if ( a3 == -1 )\n      v6 = i->m_gameObject == a2;\n    else\n      v6 = i->m_controlId == a3;\n    if ( v6 )\n    {\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      }\n      else\n      {\n        i->m_finished = 0;\n        i->m_doStart = 0;\n        i->m_started = 1;\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlAdvancedFollowCommand from 0x4703b0 to 0x4703f4 (68 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x495c8c\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x495f96\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            {R4-R7,LR}                                             ; +0x0, 0x4703b0\nMOVS            R4, #0                                                 ; +0x2, 0x4703b2\nLDR.W           R5, [R0,#0x540]                                        ; +0x4, 0x4703b4\nMOVS            R6, #1                                                 ; +0x8, 0x4703b8\nLDR.W           R0, [R0,#0x53C]                                        ; +0xa, 0x4703ba\nCMP             R0, R5                                                 ; +0xe, 0x4703be\nBEQ             locret_4703F2                                          ; +0x10, 0x4703c0\nADDS            R7, R2, #1                                             ; +0x12, 0x4703c2\nBEQ             loc_4703CC                                             ; +0x14, 0x4703c4\nLDR             R7, [R0,#0xC]                                          ; +0x16, 0x4703c6\nCMP             R7, R2                                                 ; +0x18, 0x4703c8\nB               loc_4703D0                                             ; +0x1a, 0x4703ca\nLDR             R7, [R0]                                               ; +0x1c, 0x4703cc\nCMP             R7, R1                                                 ; +0x1e, 0x4703ce\nBNE             loc_4703EE                                             ; +0x20, 0x4703d0\nCBNZ            R3, loc_4703DC                                         ; +0x22, 0x4703d2\nSTRB            R3, [R0,#0x18]                                         ; +0x24, 0x4703d4\nSTRB            R3, [R0,#0x19]                                         ; +0x26, 0x4703d6\nSTRB            R6, [R0,#0x1A]                                         ; +0x28, 0x4703d8\nB               loc_4703EE                                             ; +0x2a, 0x4703da\nCMP             R3, #1                                                 ; +0x2c, 0x4703dc\nBNE             loc_4703E6                                             ; +0x2e, 0x4703de\nSTRB            R3, [R0,#0x18]                                         ; +0x30, 0x4703e0\nSTRB            R3, [R0,#0x19]                                         ; +0x32, 0x4703e2\nB               loc_4703EE                                             ; +0x34, 0x4703e4\nCMP             R3, #2                                                 ; +0x36, 0x4703e6\nITT EQ                                                                 ; +0x38, 0x4703e8\nSTRBEQ          R4, [R0,#0x18]                                         ; +0x3a, 0x4703ea\nSTRBEQ          R4, [R0,#0x19]                                         ; +0x3c, 0x4703ec\nADDS            R0, #0x1C                                              ; +0x3e, 0x4703ee\nB               loc_4703BE                                             ; +0x40, 0x4703f0\nPOP             {R4-R7,PC}                                             ; +0x42, 0x4703f2", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x495c8c", "GJBaseGameLayer::controlTriggersInGroup @ 0x495f96"], "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"}