{"type": "func", "start": 4296046544, "end": 4296047074, "name": "GJBaseGameLayer::activatePlayerControlTrigger", "pseudocode": "// \n// GJBaseGameLayer::activatePlayerControlTrigger from 0x1001077d0 to 0x1001079e2 (530 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x10019a5ba\n// \n// This function is hookable on this platform (idp: pc, 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 12:21:32 +0000\n// \n\nchar __fastcall GJBaseGameLayer::activatePlayerControlTrigger(__int64 a1, _BYTE *a2, __int64 a3)\n{\n  char v3; // r15\n  char v4; // r13\n  __int64 v5; // rcx\n  unsigned __int8 v6; // r12\n  char result; // al\n  char v8; // r15\n  char v9; // r15\n  char v10; // [rsp+0h] [rbp-2Ah]\n  unsigned __int8 v11; // [rsp+1h] [rbp-29h]\n\n  v3 = a2[1684];\n  v4 = a2[1685];\n  v5 = (unsigned __int8)a2[1840];\n  v6 = a2[1841];\n  v10 = a2[1842];\n  result = v3 | ~v4;\n  if ( !(v3 & 1 | ((v4 & 1) == 0)) )\n    goto LABEL_12;\n  v11 = a2[1840];\n  if ( (_BYTE)v5 )\n  {\n    PlayerObject::releaseButton(*(_QWORD *)(a1 + 3256), 1);\n    v5 = v11;\n    result = v6 & *(_BYTE *)(a1 + 12238);\n    if ( result != 1 )\n    {\nLABEL_4:\n      v8 = v3 ^ 1;\n      if ( !v10 )\n        goto LABEL_5;\n      goto LABEL_10;\n    }\n  }\n  else\n  {\n    result = v6 & *(_BYTE *)(a1 + 12238);\n    if ( result != 1 )\n      goto LABEL_4;\n  }\n  PlayerObject::releaseButton(*(_QWORD *)(a1 + 3256), 5);\n  PlayerObject::releaseButton(*(_QWORD *)(a1 + 3256), 2);\n  result = PlayerObject::releaseButton(*(_QWORD *)(a1 + 3256), 3);\n  v5 = v11;\n  v8 = v3 ^ 1;\n  if ( !v10 )\n  {\nLABEL_5:\n    v9 = v4 | v8;\n    if ( a2[1843] != 1 )\n      goto LABEL_6;\n    goto LABEL_11;\n  }\nLABEL_10:\n  result = PlayerObject::stopRotation(*(_QWORD *)(a1 + 3256), 1, 0, v5);\n  v5 = v11;\n  v9 = v4 | v8;\n  if ( a2[1843] == 1 )\n  {\nLABEL_11:\n    result = PlayerObject::handlePlayerCommand(*(_QWORD *)(a1 + 3256), 543, a3, v5);\n    v5 = v11;\n    if ( (v9 & 1) == 0 )\n      return result;\nLABEL_12:\n    if ( (_BYTE)v5 )\n    {\n      result = PlayerObject::releaseButton(*(_QWORD *)(a1 + 3264), 1);\n      if ( (*(_BYTE *)(a1 + 12238) & v6) != 1 )\n      {\nLABEL_14:\n        if ( !v10 )\n          goto LABEL_15;\n        goto LABEL_19;\n      }\n    }\n    else if ( (*(_BYTE *)(a1 + 12238) & v6) != 1 )\n    {\n      goto LABEL_14;\n    }\n    PlayerObject::releaseButton(*(_QWORD *)(a1 + 3264), 5);\n    PlayerObject::releaseButton(*(_QWORD *)(a1 + 3264), 2);\n    result = PlayerObject::releaseButton(*(_QWORD *)(a1 + 3264), 3);\n    if ( !v10 )\n    {\nLABEL_15:\n      if ( a2[1843] != 1 )\n        return result;\n      return PlayerObject::handlePlayerCommand(*(_QWORD *)(a1 + 3264), 543, a3, v5);\n    }\nLABEL_19:\n    result = PlayerObject::stopRotation(*(_QWORD *)(a1 + 3264), 1, 0, v5);\n    if ( a2[1843] != 1 )\n      return result;\n    return PlayerObject::handlePlayerCommand(*(_QWORD *)(a1 + 3264), 543, a3, v5);\n  }\nLABEL_6:\n  if ( (v9 & 1) != 0 )\n    goto LABEL_12;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::activatePlayerControlTrigger from 0x1001077d0 to 0x1001079e2 (530 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x10019a5ba\n; \n; This function is hookable on this platform (idp: pc, 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 12:21:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001077d0\nmov     rbp, rsp                                                       ; +0x1, 0x1001077d1\npush    r15                                                            ; +0x4, 0x1001077d4\npush    r14                                                            ; +0x6, 0x1001077d6\npush    r13                                                            ; +0x8, 0x1001077d8\npush    r12                                                            ; +0xa, 0x1001077da\npush    rbx                                                            ; +0xc, 0x1001077dc\npush    rax                                                            ; +0xd, 0x1001077dd\nmov     r14, rsi                                                       ; +0xe, 0x1001077de\nmov     rbx, rdi                                                       ; +0x11, 0x1001077e1\nmovzx   r15d, byte ptr [rsi+694h]                                      ; +0x14, 0x1001077e4\nmovzx   r13d, byte ptr [rsi+695h]                                      ; +0x1c, 0x1001077ec\nmovzx   ecx, byte ptr [rsi+730h]                                       ; +0x24, 0x1001077f4\nmovzx   r12d, byte ptr [rsi+731h]                                      ; +0x2b, 0x1001077fb\nmovzx   eax, byte ptr [rsi+732h]                                       ; +0x33, 0x100107803\nmov     [rbp+var_2A], al                                               ; +0x3a, 0x10010780a\nmov     eax, r13d                                                      ; +0x3d, 0x10010780d\nnot     al                                                             ; +0x40, 0x100107810\nor      al, r15b                                                       ; +0x42, 0x100107812\ntest    al, 1                                                          ; +0x45, 0x100107815\njz      loc_10010790F                                                  ; +0x47, 0x100107817\ntest    cl, cl                                                         ; +0x4d, 0x10010781d\nmov     [rbp+var_29], cl                                               ; +0x4f, 0x10010781f\njnz     short loc_100107860                                            ; +0x52, 0x100107822\nmovzx   eax, byte ptr [rbx+2FCEh]                                      ; +0x54, 0x100107824\nand     al, r12b                                                       ; +0x5b, 0x10010782b\ncmp     al, 1                                                          ; +0x5e, 0x10010782e\njz      short loc_100107883                                            ; +0x60, 0x100107830\nxor     r15b, 1                                                        ; +0x62, 0x100107832\ncmp     [rbp+var_2A], 0                                                ; +0x66, 0x100107836\njnz     loc_1001078C8                                                  ; +0x6a, 0x10010783a\nor      r15b, r13b                                                     ; +0x70, 0x100107840\ncmp     byte ptr [r14+733h], 1                                         ; +0x73, 0x100107843\njz      loc_1001078F0                                                  ; +0x7b, 0x10010784b\ntest    r15b, 1                                                        ; +0x81, 0x100107851\njnz     loc_10010790F                                                  ; +0x85, 0x100107855\njmp     loc_1001079D3                                                  ; +0x8b, 0x10010785b\nmov     rdi, [rbx+0CB8h]                                               ; +0x90, 0x100107860\nmov     esi, 1                                                         ; +0x97, 0x100107867\ncall    PlayerObject__releaseButton                                    ; +0x9c, 0x10010786c\nmovzx   ecx, [rbp+var_29]                                              ; +0xa1, 0x100107871\nmovzx   eax, byte ptr [rbx+2FCEh]                                      ; +0xa5, 0x100107875\nand     al, r12b                                                       ; +0xac, 0x10010787c\ncmp     al, 1                                                          ; +0xaf, 0x10010787f\njnz     short loc_100107832                                            ; +0xb1, 0x100107881\nmov     rdi, [rbx+0CB8h]                                               ; +0xb3, 0x100107883\nmov     esi, 5                                                         ; +0xba, 0x10010788a\ncall    PlayerObject__releaseButton                                    ; +0xbf, 0x10010788f\nmov     rdi, [rbx+0CB8h]                                               ; +0xc4, 0x100107894\nmov     esi, 2                                                         ; +0xcb, 0x10010789b\ncall    PlayerObject__releaseButton                                    ; +0xd0, 0x1001078a0\nmov     rdi, [rbx+0CB8h]                                               ; +0xd5, 0x1001078a5\nmov     esi, 3                                                         ; +0xdc, 0x1001078ac\ncall    PlayerObject__releaseButton                                    ; +0xe1, 0x1001078b1\nmovzx   ecx, [rbp+var_29]                                              ; +0xe6, 0x1001078b6\nxor     r15b, 1                                                        ; +0xea, 0x1001078ba\ncmp     [rbp+var_2A], 0                                                ; +0xee, 0x1001078be\njz      loc_100107840                                                  ; +0xf2, 0x1001078c2\nmov     rdi, [rbx+0CB8h]                                               ; +0xf8, 0x1001078c8\nmov     esi, 1                                                         ; +0xff, 0x1001078cf\nxor     edx, edx                                                       ; +0x104, 0x1001078d4\ncall    PlayerObject__stopRotation                                     ; +0x106, 0x1001078d6\nmovzx   ecx, [rbp+var_29]                                              ; +0x10b, 0x1001078db\nor      r15b, r13b                                                     ; +0x10f, 0x1001078df\ncmp     byte ptr [r14+733h], 1                                         ; +0x112, 0x1001078e2\njnz     loc_100107851                                                  ; +0x11a, 0x1001078ea\nmov     rdi, [rbx+0CB8h]                                               ; +0x120, 0x1001078f0\nmov     esi, 21Fh                                                      ; +0x127, 0x1001078f7\ncall    PlayerObject__handlePlayerCommand                              ; +0x12c, 0x1001078fc\nmovzx   ecx, [rbp+var_29]                                              ; +0x131, 0x100107901\ntest    r15b, 1                                                        ; +0x135, 0x100107905\njz      loc_1001079D3                                                  ; +0x139, 0x100107909\ntest    cl, cl                                                         ; +0x13f, 0x10010790f\njnz     short loc_100107957                                            ; +0x141, 0x100107911\nand     r12b, [rbx+2FCEh]                                              ; +0x143, 0x100107913\ncmp     r12b, 1                                                        ; +0x14a, 0x10010791a\njz      short loc_100107975                                            ; +0x14e, 0x10010791e\ncmp     [rbp+var_2A], 0                                                ; +0x150, 0x100107920\njnz     loc_1001079B2                                                  ; +0x154, 0x100107924\ncmp     byte ptr [r14+733h], 1                                         ; +0x15a, 0x10010792a\njnz     loc_1001079D3                                                  ; +0x162, 0x100107932\nmov     rdi, [rbx+0CC0h]                                               ; +0x168, 0x100107938\nmov     esi, 21Fh                                                      ; +0x16f, 0x10010793f\nadd     rsp, 8                                                         ; +0x174, 0x100107944\npop     rbx                                                            ; +0x178, 0x100107948\npop     r12                                                            ; +0x179, 0x100107949\npop     r13                                                            ; +0x17b, 0x10010794b\npop     r14                                                            ; +0x17d, 0x10010794d\npop     r15                                                            ; +0x17f, 0x10010794f\npop     rbp                                                            ; +0x181, 0x100107951\njmp     PlayerObject__handlePlayerCommand                              ; +0x182, 0x100107952\nmov     rdi, [rbx+0CC0h]                                               ; +0x187, 0x100107957\nmov     esi, 1                                                         ; +0x18e, 0x10010795e\ncall    PlayerObject__releaseButton                                    ; +0x193, 0x100107963\nand     r12b, [rbx+2FCEh]                                              ; +0x198, 0x100107968\ncmp     r12b, 1                                                        ; +0x19f, 0x10010796f\njnz     short loc_100107920                                            ; +0x1a3, 0x100107973\nmov     rdi, [rbx+0CC0h]                                               ; +0x1a5, 0x100107975\nmov     esi, 5                                                         ; +0x1ac, 0x10010797c\ncall    PlayerObject__releaseButton                                    ; +0x1b1, 0x100107981\nmov     rdi, [rbx+0CC0h]                                               ; +0x1b6, 0x100107986\nmov     esi, 2                                                         ; +0x1bd, 0x10010798d\ncall    PlayerObject__releaseButton                                    ; +0x1c2, 0x100107992\nmov     rdi, [rbx+0CC0h]                                               ; +0x1c7, 0x100107997\nmov     esi, 3                                                         ; +0x1ce, 0x10010799e\ncall    PlayerObject__releaseButton                                    ; +0x1d3, 0x1001079a3\ncmp     [rbp+var_2A], 0                                                ; +0x1d8, 0x1001079a8\njz      loc_10010792A                                                  ; +0x1dc, 0x1001079ac\nmov     rdi, [rbx+0CC0h]                                               ; +0x1e2, 0x1001079b2\nmov     esi, 1                                                         ; +0x1e9, 0x1001079b9\nxor     edx, edx                                                       ; +0x1ee, 0x1001079be\ncall    PlayerObject__stopRotation                                     ; +0x1f0, 0x1001079c0\ncmp     byte ptr [r14+733h], 1                                         ; +0x1f5, 0x1001079c5\njz      loc_100107938                                                  ; +0x1fd, 0x1001079cd\nadd     rsp, 8                                                         ; +0x203, 0x1001079d3\npop     rbx                                                            ; +0x207, 0x1001079d7\npop     r12                                                            ; +0x208, 0x1001079d8\npop     r13                                                            ; +0x20a, 0x1001079da\npop     r14                                                            ; +0x20c, 0x1001079dc\npop     r15                                                            ; +0x20e, 0x1001079de\npop     rbp                                                            ; +0x210, 0x1001079e0\nretn                                                                   ; +0x211, 0x1001079e1", "xrefs": ["EffectGameObject::triggerObject @ 0x10019a5ba"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}