{"type": "func", "start": 4297628632, "end": 4297628756, "name": "GJBaseGameLayer::controlAdvancedFollowCommand", "pseudocode": "// \n// GJBaseGameLayer::controlAdvancedFollowCommand from 0x100289bd8 to 0x100289c54 (124 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x100289a9c\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289f88\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:01:59 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::controlAdvancedFollowCommand(__int64 result, __int64 a2, int a3, int a4)\n{\n  __int64 v4; // x8\n  __int64 i; // x9\n\n  v4 = *(_QWORD *)(result + 1648);\n  for ( i = *(_QWORD *)(result + 1656); v4 != i; v4 += 32 )\n  {\n    if ( a3 != -1 && *(_DWORD *)(v4 + 16) == a3 || a3 == -1 && *(_QWORD *)v4 == a2 )\n    {\n      switch ( a4 )\n      {\n        case 2:\n          *(_WORD *)(v4 + 28) = 0;\n          break;\n        case 1:\n          *(_WORD *)(v4 + 28) = 257;\n          break;\n        case 0:\n          *(_WORD *)(v4 + 28) = 0;\n          *(_BYTE *)(v4 + 30) = 1;\n          break;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::controlAdvancedFollowCommand from 0x100289bd8 to 0x100289c54 (124 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x100289a9c\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289f88\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:01:59 +0000\n; \nLDR             X8, [X0,#0x670]                                        ; +0x0, 0x100289bd8\nLDR             X9, [X0,#0x678]                                        ; +0x4, 0x100289bdc\nCMP             X8, X9                                                 ; +0x8, 0x100289be0\nB.EQ            locret_100289C50                                       ; +0xc, 0x100289be4\nMOV             W10, #0x101                                            ; +0x10, 0x100289be8\nMOV             W11, #1                                                ; +0x14, 0x100289bec\nCMN             W2, #1                                                 ; +0x18, 0x100289bf0\nB.EQ            loc_100289C04                                          ; +0x1c, 0x100289bf4\nLDR             W12, [X8,#0x10]                                        ; +0x20, 0x100289bf8\nCMP             W12, W2                                                ; +0x24, 0x100289bfc\nB.EQ            loc_100289C18                                          ; +0x28, 0x100289c00\nCMN             W2, #1                                                 ; +0x2c, 0x100289c04\nB.NE            loc_100289C44                                          ; +0x30, 0x100289c08\nLDR             X12, [X8]                                              ; +0x34, 0x100289c0c\nCMP             X12, X1                                                ; +0x38, 0x100289c10\nB.NE            loc_100289C44                                          ; +0x3c, 0x100289c14\nCMP             W3, #2                                                 ; +0x40, 0x100289c18\nB.EQ            loc_100289C40                                          ; +0x44, 0x100289c1c\nCMP             W3, #1                                                 ; +0x48, 0x100289c20\nB.EQ            loc_100289C38                                          ; +0x4c, 0x100289c24\nCBNZ            W3, loc_100289C44                                      ; +0x50, 0x100289c28\nSTRH            WZR, [X8,#0x1C]                                        ; +0x54, 0x100289c2c\nSTRB            W11, [X8,#0x1E]                                        ; +0x58, 0x100289c30\nB               loc_100289C44                                          ; +0x5c, 0x100289c34\nSTRH            W10, [X8,#0x1C]                                        ; +0x60, 0x100289c38\nB               loc_100289C44                                          ; +0x64, 0x100289c3c\nSTRH            WZR, [X8,#0x1C]                                        ; +0x68, 0x100289c40\nADD             X8, X8, #0x20 ; ' '                                    ; +0x6c, 0x100289c44\nCMP             X8, X9                                                 ; +0x70, 0x100289c48\nB.NE            loc_100289BF0                                          ; +0x74, 0x100289c4c\nRET                                                                    ; +0x78, 0x100289c50", "xrefs": ["GJBaseGameLayer::controlTriggersInGroup @ 0x100289a9c", "GJBaseGameLayer::controlTriggersWithControlID @ 0x100289f88"], "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"}