{"type": "func", "start": 5373659296, "end": 5373659507, "name": "EventLinkTrigger::triggerObject", "pseudocode": "// \n// EventLinkTrigger::triggerObject from 0x1404b88a0 to 0x1404b8973 (211 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14061f3d0\n// > <???> @ 0x1406dcc5c\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\n// Hidden C++ exception states: #wind=2\nvoid EventLinkTrigger::triggerObject(EventLinkTrigger *a1, GJBaseGameLayer *a2, int a3, std::vector<int> *const a4)\n{\n  std::vector<int> *v6; // rax\n  char v7; // bl\n  void *v8; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v10; // [rsp+30h] [rbp-28h]\n  _QWORD v11[4]; // [rsp+38h] [rbp-20h] BYREF\n\n  if ( a4 )\n  {\n    v6 = (std::vector<int> *)sub_14024B270(v11, (__int64)a4);\n    v7 = 1;\n  }\n  else\n  {\n    *(_OWORD *)Block = 0;\n    v10 = 0;\n    v6 = (std::vector<int> *)Block;\n    v7 = 2;\n  }\n  GJBaseGameLayer::activateEventTrigger(a2, a1, v6);\n  if ( (v7 & 2) != 0 )\n  {\n    v7 &= ~2u;\n    v8 = Block[0];\n    if ( Block[0] )\n    {\n      if ( (unsigned __int64)(4 * ((signed __int64)(v10 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 )\n      {\n        v8 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v8);\n    }\n  }\n  if ( (v7 & 1) != 0 )\n    sub_14005E430((__int64)v11);\n}", "assembly": "; \n; EventLinkTrigger::triggerObject from 0x1404b88a0 to 0x1404b8973 (211 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14061f3d0\n; > <???> @ 0x1406dcc5c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404b88a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404b88a5\npush    rdi                                                            ; +0xa, 0x1404b88aa\nsub     rsp, 50h                                                       ; +0xb, 0x1404b88ab\nmov     rdi, rdx                                                       ; +0xf, 0x1404b88af\nmov     rsi, rcx                                                       ; +0x12, 0x1404b88b2\nxor     eax, eax                                                       ; +0x15, 0x1404b88b5\nmov     [rsp+58h+arg_18], eax                                          ; +0x17, 0x1404b88b7\ntest    r9, r9                                                         ; +0x1b, 0x1404b88bb\njz      short loc_1404B88D5                                            ; +0x1e, 0x1404b88be\nmov     rdx, r9                                                        ; +0x20, 0x1404b88c0\nlea     rcx, [rsp+58h+var_20]                                          ; +0x23, 0x1404b88c3\ncall    sub_14024B270                                                  ; +0x28, 0x1404b88c8\nnop                                                                    ; +0x2d, 0x1404b88cd\nmov     ebx, 1                                                         ; +0x2e, 0x1404b88ce\njmp     short loc_1404B88ED                                            ; +0x33, 0x1404b88d3\nxorps   xmm0, xmm0                                                     ; +0x35, 0x1404b88d5\nmovdqu  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x38, 0x1404b88d8\nmov     [rsp+58h+var_28], rax                                          ; +0x3e, 0x1404b88de\nlea     rax, [rsp+58h+Block]                                           ; +0x43, 0x1404b88e3\nmov     ebx, 2                                                         ; +0x48, 0x1404b88e8\nmov     [rsp+58h+arg_18], ebx                                          ; +0x4d, 0x1404b88ed\nmov     r8, rax                                                        ; +0x51, 0x1404b88f1\nmov     rdx, rsi                                                       ; +0x54, 0x1404b88f4\nmov     rcx, rdi                                                       ; +0x57, 0x1404b88f7\ncall    GJBaseGameLayer__activateEventTrigger                          ; +0x5a, 0x1404b88fa\nnop                                                                    ; +0x5f, 0x1404b88ff\ntest    bl, 2                                                          ; +0x60, 0x1404b8900\njz      short loc_1404B8954                                            ; +0x63, 0x1404b8903\nand     ebx, 0FFFFFFFDh                                                ; +0x65, 0x1404b8905\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x68, 0x1404b8908\ntest    rcx, rcx                                                       ; +0x6d, 0x1404b890d\njz      short loc_1404B8954                                            ; +0x70, 0x1404b8910\nmov     rax, [rsp+58h+var_28]                                          ; +0x72, 0x1404b8912\nsub     rax, rcx                                                       ; +0x77, 0x1404b8917\nsar     rax, 2                                                         ; +0x7a, 0x1404b891a\nlea     rdx, ds:0[rax*4]                                               ; +0x7e, 0x1404b891e\nmov     rax, rcx                                                       ; +0x86, 0x1404b8926\ncmp     rdx, 1000h                                                     ; +0x89, 0x1404b8929\njb      short loc_1404B894E                                            ; +0x90, 0x1404b8930\nadd     rdx, 27h ; '''                                                 ; +0x92, 0x1404b8932\nmov     rcx, [rcx-8]                                                   ; +0x96, 0x1404b8936\nsub     rax, rcx                                                       ; +0x9a, 0x1404b893a\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x9d, 0x1404b893d\ncmp     rax, 1Fh                                                       ; +0xa1, 0x1404b8941\njbe     short loc_1404B894E                                            ; +0xa5, 0x1404b8945\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xa7, 0x1404b8947\nalign 2                                                                ; +0xad, 0x1404b894d\ncall    j_j_free                                                       ; +0xae, 0x1404b894e\nnop                                                                    ; +0xb3, 0x1404b8953\ntest    bl, 1                                                          ; +0xb4, 0x1404b8954\njz      short loc_1404B8963                                            ; +0xb7, 0x1404b8957\nlea     rcx, [rsp+58h+var_20]                                          ; +0xb9, 0x1404b8959\ncall    sub_14005E430                                                  ; +0xbe, 0x1404b895e\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xc3, 0x1404b8963\nmov     rsi, [rsp+58h+arg_8]                                           ; +0xc8, 0x1404b8968\nadd     rsp, 50h                                                       ; +0xcd, 0x1404b896d\npop     rdi                                                            ; +0xd1, 0x1404b8971\nretn                                                                   ; +0xd2, 0x1404b8972", "xrefs": ["<???> @ 0x14061f3d0", "<???> @ 0x1406dcc5c"], "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"}