{"type": "func", "start": 4296919584, "end": 4296919971, "name": "EndTriggerGameObject::customObjectSetup", "pseudocode": "// \n// EndTriggerGameObject::customObjectSetup from 0x1001dca20 to 0x1001dcba3 (387 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008d2818\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\nvoid __fastcall EndTriggerGameObject::customObjectSetup(\n        EndTriggerGameObject *a1,\n        std::vector<std::string> *a2,\n        std::vector<void *> *a3)\n{\n  std::__vector_base<void *>::pointer begin; // r12\n  int v6; // r15d\n  int v7; // eax\n  std::__vector_base<std::string>::pointer v8; // rdi\n  const char *longStorage; // rdi\n  int v10; // r13d\n  std::__vector_base<std::string>::pointer v11; // rdi\n  const char *elems; // rdi\n  bool v13; // al\n  std::__vector_base<std::string>::pointer v14; // rdi\n  const char *v15; // rdi\n  std::__vector_base<std::string>::pointer v16; // rdi\n  const char *v17; // rdi\n  bool v18; // al\n  std::__vector_base<std::string>::pointer v19; // rdi\n  const char *v20; // rdi\n\n  EffectGameObject::customObjectSetup(a1, a2, a3);\n  begin = a3->__begin_;\n  v6 = 0;\n  v7 = 0;\n  if ( begin[51] )\n  {\n    v8 = a2->__begin_;\n    if ( (a2->__begin_[51].m_data.m_short.sizex2 & 1) != 0 )\n      longStorage = v8[51].m_data.m_long.longStorage;\n    else\n      longStorage = v8[51].m_data.m_short.shortStorage.__elems_;\n    v7 = atoi(longStorage);\n  }\n  if ( v7 <= 0 )\n    v7 = 0;\n  v10 = 9999;\n  if ( v7 >= 9999 )\n    v7 = 9999;\n  a1->m_targetGroupID = v7;\n  if ( begin[71] )\n  {\n    v11 = a2->__begin_;\n    if ( (a2->__begin_[71].m_data.m_short.sizex2 & 1) != 0 )\n      elems = v11[71].m_data.m_long.longStorage;\n    else\n      elems = v11[71].m_data.m_short.shortStorage.__elems_;\n    v6 = atoi(elems);\n  }\n  v13 = 0;\n  if ( v6 <= 0 )\n    v6 = 0;\n  if ( v6 < 9999 )\n    v10 = v6;\n  a1->m_centerGroupID = v10;\n  if ( begin[460] )\n  {\n    v14 = a2->__begin_;\n    if ( (a2->__begin_[460].m_data.m_short.sizex2 & 1) != 0 )\n      v15 = v14[460].m_data.m_long.longStorage;\n    else\n      v15 = v14[460].m_data.m_short.shortStorage.__elems_;\n    v13 = atoi(v15) != 0;\n  }\n  a1->m_noEffects = v13;\n  if ( begin[461] )\n  {\n    v16 = a2->__begin_;\n    if ( (a2->__begin_[461].m_data.m_short.sizex2 & 1) != 0 )\n      v17 = v16[461].m_data.m_long.longStorage;\n    else\n      v17 = v16[461].m_data.m_short.shortStorage.__elems_;\n    a1->m_noSFX = atoi(v17) != 0;\n    if ( begin[487] )\n      goto LABEL_31;\nLABEL_28:\n    v18 = 0;\n    goto LABEL_35;\n  }\n  a1->m_noSFX = 0;\n  if ( !begin[487] )\n    goto LABEL_28;\nLABEL_31:\n  v19 = a2->__begin_;\n  if ( (a2->__begin_[487].m_data.m_short.sizex2 & 1) != 0 )\n    v20 = v19[487].m_data.m_long.longStorage;\n  else\n    v20 = v19[487].m_data.m_short.shortStorage.__elems_;\n  v18 = atoi(v20) != 0;\nLABEL_35:\n  a1->m_instant = v18;\n}", "assembly": "; \n; EndTriggerGameObject::customObjectSetup from 0x1001dca20 to 0x1001dcba3 (387 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008d2818\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\npush    rbp                                                            ; +0x0, 0x1001dca20\nmov     rbp, rsp                                                       ; +0x1, 0x1001dca21\npush    r15                                                            ; +0x4, 0x1001dca24\npush    r14                                                            ; +0x6, 0x1001dca26\npush    r13                                                            ; +0x8, 0x1001dca28\npush    r12                                                            ; +0xa, 0x1001dca2a\npush    rbx                                                            ; +0xc, 0x1001dca2c\npush    rax                                                            ; +0xd, 0x1001dca2d\nmov     r15, rdx                                                       ; +0xe, 0x1001dca2e\nmov     r14, rsi                                                       ; +0x11, 0x1001dca31\nmov     rbx, rdi                                                       ; +0x14, 0x1001dca34\ncall    EffectGameObject__customObjectSetup                            ; +0x17, 0x1001dca37\nmov     r12, [r15]                                                     ; +0x1c, 0x1001dca3c\nxor     r15d, r15d                                                     ; +0x1f, 0x1001dca3f\ncmp     qword ptr [r12+198h], 0                                        ; +0x22, 0x1001dca42\nmov     eax, 0                                                         ; +0x2b, 0x1001dca4b\njz      short loc_1001DCA73                                            ; +0x30, 0x1001dca50\nmov     rdi, [r14]                                                     ; +0x32, 0x1001dca52\ntest    byte ptr [rdi+4C8h], 1                                         ; +0x35, 0x1001dca55\njnz     short loc_1001DCA67                                            ; +0x3c, 0x1001dca5c\nadd     rdi, 4C9h                                                      ; +0x3e, 0x1001dca5e\njmp     short loc_1001DCA6E                                            ; +0x45, 0x1001dca65\nmov     rdi, [rdi+4D8h]; char *                                        ; +0x47, 0x1001dca67\ncall    _atoi                                                          ; +0x4e, 0x1001dca6e\ntest    eax, eax                                                       ; +0x53, 0x1001dca73\ncmovle  eax, r15d                                                      ; +0x55, 0x1001dca75\ncmp     eax, 270Fh                                                     ; +0x59, 0x1001dca79\nmov     r13d, 270Fh                                                    ; +0x5e, 0x1001dca7e\ncmovge  eax, r13d                                                      ; +0x64, 0x1001dca84\nmov     [rbx+5B8h], eax                                                ; +0x68, 0x1001dca88\ncmp     qword ptr [r12+238h], 0                                        ; +0x6e, 0x1001dca8e\njz      short loc_1001DCABD                                            ; +0x77, 0x1001dca97\nmov     rdi, [r14]                                                     ; +0x79, 0x1001dca99\ntest    byte ptr [rdi+6A8h], 1                                         ; +0x7c, 0x1001dca9c\njnz     short loc_1001DCAAE                                            ; +0x83, 0x1001dcaa3\nadd     rdi, 6A9h                                                      ; +0x85, 0x1001dcaa5\njmp     short loc_1001DCAB5                                            ; +0x8c, 0x1001dcaac\nmov     rdi, [rdi+6B8h]; char *                                        ; +0x8e, 0x1001dcaae\ncall    _atoi                                                          ; +0x95, 0x1001dcab5\nmov     r15d, eax                                                      ; +0x9a, 0x1001dcaba\nxor     eax, eax                                                       ; +0x9d, 0x1001dcabd\ntest    r15d, r15d                                                     ; +0x9f, 0x1001dcabf\ncmovle  r15d, eax                                                      ; +0xa2, 0x1001dcac2\ncmp     r15d, 270Fh                                                    ; +0xa6, 0x1001dcac6\ncmovl   r13d, r15d                                                     ; +0xad, 0x1001dcacd\nmov     [rbx+5BCh], r13d                                               ; +0xb1, 0x1001dcad1\ncmp     qword ptr [r12+0E60h], 0                                       ; +0xb8, 0x1001dcad8\njz      short loc_1001DCB09                                            ; +0xc1, 0x1001dcae1\nmov     rdi, [r14]                                                     ; +0xc3, 0x1001dcae3\ntest    byte ptr [rdi+2B20h], 1                                        ; +0xc6, 0x1001dcae6\njnz     short loc_1001DCAF8                                            ; +0xcd, 0x1001dcaed\nadd     rdi, 2B21h                                                     ; +0xcf, 0x1001dcaef\njmp     short loc_1001DCAFF                                            ; +0xd6, 0x1001dcaf6\nmov     rdi, [rdi+2B30h]; char *                                       ; +0xd8, 0x1001dcaf8\ncall    _atoi                                                          ; +0xdf, 0x1001dcaff\ntest    eax, eax                                                       ; +0xe4, 0x1001dcb04\nsetnz   al                                                             ; +0xe6, 0x1001dcb06\nmov     [rbx+72Ch], al                                                 ; +0xe9, 0x1001dcb09\ncmp     qword ptr [r12+0E68h], 0                                       ; +0xef, 0x1001dcb0f\njz      short loc_1001DCB2F                                            ; +0xf8, 0x1001dcb18\nmov     rdi, [r14]                                                     ; +0xfa, 0x1001dcb1a\ntest    byte ptr [rdi+2B38h], 1                                        ; +0xfd, 0x1001dcb1d\njnz     short loc_1001DCB46                                            ; +0x104, 0x1001dcb24\nadd     rdi, 2B39h                                                     ; +0x106, 0x1001dcb26\njmp     short loc_1001DCB4D                                            ; +0x10d, 0x1001dcb2d\nxor     eax, eax                                                       ; +0x10f, 0x1001dcb2f\nmov     [rbx+72Dh], al                                                 ; +0x111, 0x1001dcb31\ncmp     qword ptr [r12+0F38h], 0                                       ; +0x117, 0x1001dcb37\njnz     short loc_1001DCB68                                            ; +0x120, 0x1001dcb40\nxor     eax, eax                                                       ; +0x122, 0x1001dcb42\njmp     short loc_1001DCB8E                                            ; +0x124, 0x1001dcb44\nmov     rdi, [rdi+2B48h]; char *                                       ; +0x126, 0x1001dcb46\ncall    _atoi                                                          ; +0x12d, 0x1001dcb4d\ntest    eax, eax                                                       ; +0x132, 0x1001dcb52\nsetnz   al                                                             ; +0x134, 0x1001dcb54\nmov     [rbx+72Dh], al                                                 ; +0x137, 0x1001dcb57\ncmp     qword ptr [r12+0F38h], 0                                       ; +0x13d, 0x1001dcb5d\njz      short loc_1001DCB42                                            ; +0x146, 0x1001dcb66\nmov     rdi, [r14]                                                     ; +0x148, 0x1001dcb68\ntest    byte ptr [rdi+2DA8h], 1                                        ; +0x14b, 0x1001dcb6b\njnz     short loc_1001DCB7D                                            ; +0x152, 0x1001dcb72\nadd     rdi, 2DA9h                                                     ; +0x154, 0x1001dcb74\njmp     short loc_1001DCB84                                            ; +0x15b, 0x1001dcb7b\nmov     rdi, [rdi+2DB8h]; char *                                       ; +0x15d, 0x1001dcb7d\ncall    _atoi                                                          ; +0x164, 0x1001dcb84\ntest    eax, eax                                                       ; +0x169, 0x1001dcb89\nsetnz   al                                                             ; +0x16b, 0x1001dcb8b\nmov     [rbx+72Eh], al                                                 ; +0x16e, 0x1001dcb8e\nadd     rsp, 8                                                         ; +0x174, 0x1001dcb94\npop     rbx                                                            ; +0x178, 0x1001dcb98\npop     r12                                                            ; +0x179, 0x1001dcb99\npop     r13                                                            ; +0x17b, 0x1001dcb9b\npop     r14                                                            ; +0x17d, 0x1001dcb9d\npop     r15                                                            ; +0x17f, 0x1001dcb9f\npop     rbp                                                            ; +0x181, 0x1001dcba1\nretn                                                                   ; +0x182, 0x1001dcba2", "xrefs": ["<???> @ 0x1008d2818"], "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"}