{"type": "func", "start": 4296193376, "end": 4296193668, "name": "GJBaseGameLayer::activateTimerTrigger", "pseudocode": "// \n// GJBaseGameLayer::activateTimerTrigger from 0x10012b560 to 0x10012b684 (292 bytes)\n// \n// 1 xrefs:\n// > TimerTriggerGameObject::triggerObject @ 0x1001c404b\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:24:44 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::activateTimerTrigger(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v3; // ecx\n  __int64 result; // rax\n\n  v3 = *(_DWORD *)(a2 + 1028);\n  if ( v3 == 3617 )\n  {\n    result = *(unsigned int *)(a2 + 1868);\n    if ( (_DWORD)result == 1 )\n    {\n      return sub_1002D7700(*(_QWORD *)(a1 + 2152), *(unsigned int *)(a2 + 1680));\n    }\n    else if ( !(_DWORD)result )\n    {\n      return sub_1002D78A0(*(_QWORD *)(a1 + 2152), *(unsigned int *)(a2 + 1680));\n    }\n  }\n  else\n  {\n    result = a3;\n    if ( v3 == 3615 )\n    {\n      return GJEffectManager::runTimerTrigger(\n               *(_QWORD *)(a1 + 2152),\n               *(_DWORD *)(a2 + 1680),\n               *(unsigned __int8 *)(a2 + 1865),\n               *(_DWORD *)(a2 + 1464),\n               a3,\n               *(_DWORD *)(a2 + 916),\n               *(_DWORD *)(a2 + 1672));\n    }\n    else if ( v3 == 3614 )\n    {\n      return GJEffectManager::startTimer(\n               *(_QWORD *)(a1 + 2152),\n               *(_DWORD *)(a2 + 1680),\n               *(unsigned __int8 *)(a2 + 1856),\n               *(unsigned __int8 *)(a2 + 1864) ^ 1u,\n               *(unsigned __int8 *)(a2 + 1857),\n               *(unsigned __int8 *)(a2 + 1858),\n               *(_DWORD *)(a2 + 1464),\n               a3,\n               *(_DWORD *)(a2 + 916),\n               *(_DWORD *)(a2 + 1672));\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::activateTimerTrigger from 0x10012b560 to 0x10012b684 (292 bytes)\n; \n; 1 xrefs:\n; > TimerTriggerGameObject::triggerObject @ 0x1001c404b\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:24:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x10012b560\nmov     rbp, rsp                                                       ; +0x1, 0x10012b561\npush    r14                                                            ; +0x4, 0x10012b564\npush    rbx                                                            ; +0x6, 0x10012b566\nmov     ecx, [rsi+404h]                                                ; +0x7, 0x10012b567\ncmp     ecx, 0E21h                                                     ; +0xd, 0x10012b56d\njz      loc_10012B649                                                  ; +0x13, 0x10012b573\nmov     rax, rdx                                                       ; +0x19, 0x10012b579\ncmp     ecx, 0E1Fh                                                     ; +0x1c, 0x10012b57c\njz      short loc_10012B5FE                                            ; +0x22, 0x10012b582\ncmp     ecx, 0E1Eh                                                     ; +0x24, 0x10012b584\njnz     short loc_10012B5F9                                            ; +0x2a, 0x10012b58a\nmov     rdi, [rdi+868h]                                                ; +0x2c, 0x10012b58c\nmov     r10d, [rsi+690h]                                               ; +0x33, 0x10012b593\nmovsd   xmm0, qword ptr [rsi+730h]                                     ; +0x3a, 0x10012b59a\nmovsd   xmm1, qword ptr [rsi+738h]                                     ; +0x42, 0x10012b5a2\nmovzx   edx, byte ptr [rsi+740h]                                       ; +0x4a, 0x10012b5aa\nmovzx   ecx, byte ptr [rsi+748h]                                       ; +0x51, 0x10012b5b1\nmovzx   r8d, byte ptr [rsi+741h]                                       ; +0x58, 0x10012b5b8\nmovss   xmm2, dword ptr [rsi+744h]                                     ; +0x60, 0x10012b5c0\nmovzx   r9d, byte ptr [rsi+742h]                                       ; +0x68, 0x10012b5c8\nmov     r11d, [rsi+5B8h]                                               ; +0x70, 0x10012b5d0\nmov     ebx, [rsi+394h]                                                ; +0x77, 0x10012b5d7\nmov     r14d, [rsi+688h]                                               ; +0x7d, 0x10012b5dd\nxor     ecx, 1                                                         ; +0x84, 0x10012b5e4\nmov     esi, r10d                                                      ; +0x87, 0x10012b5e7\npush    r14                                                            ; +0x8a, 0x10012b5ea\npush    rbx                                                            ; +0x8c, 0x10012b5ec\npush    rax                                                            ; +0x8d, 0x10012b5ed\npush    r11                                                            ; +0x8e, 0x10012b5ee\ncall    GJEffectManager__startTimer                                    ; +0x90, 0x10012b5f0\nadd     rsp, 20h                                                       ; +0x95, 0x10012b5f5\npop     rbx                                                            ; +0x99, 0x10012b5f9\npop     r14                                                            ; +0x9a, 0x10012b5fa\npop     rbp                                                            ; +0x9c, 0x10012b5fc\nretn                                                                   ; +0x9d, 0x10012b5fd\nmov     rdi, [rdi+868h]                                                ; +0x9e, 0x10012b5fe\nmov     r8d, [rsi+690h]                                                ; +0xa5, 0x10012b605\nmovsd   xmm0, qword ptr [rsi+738h]                                     ; +0xac, 0x10012b60c\nmovzx   edx, byte ptr [rsi+749h]                                       ; +0xb4, 0x10012b614\nmov     ecx, [rsi+5B8h]                                                ; +0xbb, 0x10012b61b\nmov     r9d, [rsi+394h]                                                ; +0xc1, 0x10012b621\nmov     r10d, [rsi+688h]                                               ; +0xc8, 0x10012b628\nsub     rsp, 8                                                         ; +0xcf, 0x10012b62f\nmov     esi, r8d                                                       ; +0xd3, 0x10012b633\nmov     r8, rax                                                        ; +0xd6, 0x10012b636\npush    r10                                                            ; +0xd9, 0x10012b639\ncall    GJEffectManager__runTimerTrigger                               ; +0xdb, 0x10012b63b\nadd     rsp, 10h                                                       ; +0xe0, 0x10012b640\npop     rbx                                                            ; +0xe4, 0x10012b644\npop     r14                                                            ; +0xe5, 0x10012b645\npop     rbp                                                            ; +0xe7, 0x10012b647\nretn                                                                   ; +0xe8, 0x10012b648\nmov     eax, [rsi+74Ch]                                                ; +0xe9, 0x10012b649\ncmp     eax, 1                                                         ; +0xef, 0x10012b64f\njz      short loc_10012B66E                                            ; +0xf2, 0x10012b652\ntest    eax, eax                                                       ; +0xf4, 0x10012b654\njnz     short loc_10012B5F9                                            ; +0xf6, 0x10012b656\nmov     rdi, [rdi+868h]                                                ; +0xf8, 0x10012b658\nmov     esi, [rsi+690h]                                                ; +0xff, 0x10012b65f\npop     rbx                                                            ; +0x105, 0x10012b665\npop     r14                                                            ; +0x106, 0x10012b666\npop     rbp                                                            ; +0x108, 0x10012b668\njmp     sub_1002D78A0                                                  ; +0x109, 0x10012b669\nmov     rdi, [rdi+868h]                                                ; +0x10e, 0x10012b66e\nmov     esi, [rsi+690h]                                                ; +0x115, 0x10012b675\npop     rbx                                                            ; +0x11b, 0x10012b67b\npop     r14                                                            ; +0x11c, 0x10012b67c\npop     rbp                                                            ; +0x11e, 0x10012b67e\njmp     sub_1002D7700                                                  ; +0x11f, 0x10012b67f", "xrefs": ["TimerTriggerGameObject::triggerObject @ 0x1001c404b"], "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"}