{"type": "func", "start": 4297633920, "end": 4297634032, "name": "GJBaseGameLayer::controlDynamicCommand", "pseudocode": "// \n// GJBaseGameLayer::controlDynamicCommand from 0x10028b080 to 0x10028b0f0 (112 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x100289a54\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fb0\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fc4\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:00 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::controlDynamicCommand(__int64 a1, __int64 a2, int a3, __int64 *a4, int a5)\n{\n  __int64 v5; // x8\n  __int64 v6; // x9\n  char v7; // w10\n  __int64 v8; // x11\n\n  v5 = *a4;\n  v6 = a4[1];\n  while ( v5 != v6 )\n  {\n    if ( a3 != -1 && *(_DWORD *)(v5 + 80) == a3 || a3 == -1 && *(_QWORD *)v5 == a2 )\n    {\n      v7 = 1;\n      if ( a5 )\n      {\n        if ( a5 != 1 )\n        {\n          if ( a5 != 2 )\n            goto LABEL_14;\n          v7 = 0;\n        }\n        *(_BYTE *)(v5 + 78) = v7;\n        v8 = 79;\n      }\n      else\n      {\n        v8 = 77;\n      }\n      *(_BYTE *)(v5 + v8) = v7;\n    }\nLABEL_14:\n    v5 += 96;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlDynamicCommand from 0x10028b080 to 0x10028b0f0 (112 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x100289a54\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fb0\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fc4\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:00 +0000\n; \nLDP             X8, X9, [X3]                                           ; +0x0, 0x10028b080\nCMP             X8, X9                                                 ; +0x4, 0x10028b084\nB.EQ            locret_10028B0EC                                       ; +0x8, 0x10028b088\nCMN             W2, #1                                                 ; +0xc, 0x10028b08c\nB.EQ            loc_10028B0A0                                          ; +0x10, 0x10028b090\nLDR             W10, [X8,#0x50]                                        ; +0x14, 0x10028b094\nCMP             W10, W2                                                ; +0x18, 0x10028b098\nB.EQ            loc_10028B0B4                                          ; +0x1c, 0x10028b09c\nCMN             W2, #1                                                 ; +0x20, 0x10028b0a0\nB.NE            loc_10028B0E4                                          ; +0x24, 0x10028b0a4\nLDR             X10, [X8]                                              ; +0x28, 0x10028b0a8\nCMP             X10, X1                                                ; +0x2c, 0x10028b0ac\nB.NE            loc_10028B0E4                                          ; +0x30, 0x10028b0b0\nMOV             W10, #1                                                ; +0x34, 0x10028b0b4\nCBZ             W4, loc_10028B0DC                                      ; +0x38, 0x10028b0b8\nCMP             W4, #1                                                 ; +0x3c, 0x10028b0bc\nB.EQ            loc_10028B0D0                                          ; +0x40, 0x10028b0c0\nCMP             W4, #2                                                 ; +0x44, 0x10028b0c4\nB.NE            loc_10028B0E4                                          ; +0x48, 0x10028b0c8\nMOV             W10, #0                                                ; +0x4c, 0x10028b0cc\nSTRB            W10, [X8,#0x4E]                                        ; +0x50, 0x10028b0d0\nMOV             W11, #0x4F ; 'O'                                       ; +0x54, 0x10028b0d4\nB               loc_10028B0E0                                          ; +0x58, 0x10028b0d8\nMOV             W11, #0x4D ; 'M'                                       ; +0x5c, 0x10028b0dc\nSTRB            W10, [X8,X11]                                          ; +0x60, 0x10028b0e0\nADD             X8, X8, #0x60 ; '`'                                    ; +0x64, 0x10028b0e4\nB               loc_10028B084                                          ; +0x68, 0x10028b0e8\nRET                                                                    ; +0x6c, 0x10028b0ec", "xrefs": ["GJBaseGameLayer::controlTriggersInGroup @ 0x100289a54", "GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fb0", "GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fc4"], "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"}