{"type": "func", "start": 4296894576, "end": 4296894884, "name": "CheckpointGameObject::customObjectSetup", "pseudocode": "// \n// CheckpointGameObject::customObjectSetup from 0x1001d6870 to 0x1001d69a4 (308 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008d0fe8\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 CheckpointGameObject::customObjectSetup(\n        CheckpointGameObject *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  int v13; // eax\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\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[448] )\n  {\n    v14 = a2->__begin_;\n    if ( (a2->__begin_[448].m_data.m_short.sizex2 & 1) != 0 )\n      v15 = v14[448].m_data.m_long.longStorage;\n    else\n      v15 = v14[448].m_data.m_short.shortStorage.__elems_;\n    v13 = atoi(v15);\n  }\n  a1->m_respawnID = v13;\n  if ( begin[138] )\n  {\n    v16 = a2->__begin_;\n    if ( (a2->__begin_[138].m_data.m_short.sizex2 & 1) != 0 )\n      v17 = v16[138].m_data.m_long.longStorage;\n    else\n      v17 = v16[138].m_data.m_short.shortStorage.__elems_;\n    v18 = atoi(v17) != 0;\n  }\n  else\n  {\n    v18 = 0;\n  }\n  a1->m_targetPlayer1 = v18;\n}", "assembly": "; \n; CheckpointGameObject::customObjectSetup from 0x1001d6870 to 0x1001d69a4 (308 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008d0fe8\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, 0x1001d6870\nmov     rbp, rsp                                                       ; +0x1, 0x1001d6871\npush    r15                                                            ; +0x4, 0x1001d6874\npush    r14                                                            ; +0x6, 0x1001d6876\npush    r13                                                            ; +0x8, 0x1001d6878\npush    r12                                                            ; +0xa, 0x1001d687a\npush    rbx                                                            ; +0xc, 0x1001d687c\npush    rax                                                            ; +0xd, 0x1001d687d\nmov     r15, rdx                                                       ; +0xe, 0x1001d687e\nmov     r14, rsi                                                       ; +0x11, 0x1001d6881\nmov     rbx, rdi                                                       ; +0x14, 0x1001d6884\ncall    EffectGameObject__customObjectSetup                            ; +0x17, 0x1001d6887\nmov     r12, [r15]                                                     ; +0x1c, 0x1001d688c\nxor     r15d, r15d                                                     ; +0x1f, 0x1001d688f\ncmp     qword ptr [r12+198h], 0                                        ; +0x22, 0x1001d6892\nmov     eax, 0                                                         ; +0x2b, 0x1001d689b\njz      short loc_1001D68C3                                            ; +0x30, 0x1001d68a0\nmov     rdi, [r14]                                                     ; +0x32, 0x1001d68a2\ntest    byte ptr [rdi+4C8h], 1                                         ; +0x35, 0x1001d68a5\njnz     short loc_1001D68B7                                            ; +0x3c, 0x1001d68ac\nadd     rdi, 4C9h                                                      ; +0x3e, 0x1001d68ae\njmp     short loc_1001D68BE                                            ; +0x45, 0x1001d68b5\nmov     rdi, [rdi+4D8h]; char *                                        ; +0x47, 0x1001d68b7\ncall    _atoi                                                          ; +0x4e, 0x1001d68be\ntest    eax, eax                                                       ; +0x53, 0x1001d68c3\ncmovle  eax, r15d                                                      ; +0x55, 0x1001d68c5\ncmp     eax, 270Fh                                                     ; +0x59, 0x1001d68c9\nmov     r13d, 270Fh                                                    ; +0x5e, 0x1001d68ce\ncmovge  eax, r13d                                                      ; +0x64, 0x1001d68d4\nmov     [rbx+5B8h], eax                                                ; +0x68, 0x1001d68d8\ncmp     qword ptr [r12+238h], 0                                        ; +0x6e, 0x1001d68de\njz      short loc_1001D690D                                            ; +0x77, 0x1001d68e7\nmov     rdi, [r14]                                                     ; +0x79, 0x1001d68e9\ntest    byte ptr [rdi+6A8h], 1                                         ; +0x7c, 0x1001d68ec\njnz     short loc_1001D68FE                                            ; +0x83, 0x1001d68f3\nadd     rdi, 6A9h                                                      ; +0x85, 0x1001d68f5\njmp     short loc_1001D6905                                            ; +0x8c, 0x1001d68fc\nmov     rdi, [rdi+6B8h]; char *                                        ; +0x8e, 0x1001d68fe\ncall    _atoi                                                          ; +0x95, 0x1001d6905\nmov     r15d, eax                                                      ; +0x9a, 0x1001d690a\nxor     eax, eax                                                       ; +0x9d, 0x1001d690d\ntest    r15d, r15d                                                     ; +0x9f, 0x1001d690f\ncmovle  r15d, eax                                                      ; +0xa2, 0x1001d6912\ncmp     r15d, 270Fh                                                    ; +0xa6, 0x1001d6916\ncmovl   r13d, r15d                                                     ; +0xad, 0x1001d691d\nmov     [rbx+5BCh], r13d                                               ; +0xb1, 0x1001d6921\ncmp     qword ptr [r12+0E00h], 0                                       ; +0xb8, 0x1001d6928\njz      short loc_1001D6954                                            ; +0xc1, 0x1001d6931\nmov     rdi, [r14]                                                     ; +0xc3, 0x1001d6933\ntest    byte ptr [rdi+2A00h], 1                                        ; +0xc6, 0x1001d6936\njnz     short loc_1001D6948                                            ; +0xcd, 0x1001d693d\nadd     rdi, 2A01h                                                     ; +0xcf, 0x1001d693f\njmp     short loc_1001D694F                                            ; +0xd6, 0x1001d6946\nmov     rdi, [rdi+2A10h]; char *                                       ; +0xd8, 0x1001d6948\ncall    _atoi                                                          ; +0xdf, 0x1001d694f\nmov     [rbx+730h], eax                                                ; +0xe4, 0x1001d6954\ncmp     qword ptr [r12+450h], 0                                        ; +0xea, 0x1001d695a\njz      short loc_1001D697A                                            ; +0xf3, 0x1001d6963\nmov     rdi, [r14]                                                     ; +0xf5, 0x1001d6965\ntest    byte ptr [rdi+0CF0h], 1                                        ; +0xf8, 0x1001d6968\njnz     short loc_1001D697E                                            ; +0xff, 0x1001d696f\nadd     rdi, 0CF1h                                                     ; +0x101, 0x1001d6971\njmp     short loc_1001D6985                                            ; +0x108, 0x1001d6978\nxor     eax, eax                                                       ; +0x10a, 0x1001d697a\njmp     short loc_1001D698F                                            ; +0x10c, 0x1001d697c\nmov     rdi, [rdi+0D00h]; char *                                       ; +0x10e, 0x1001d697e\ncall    _atoi                                                          ; +0x115, 0x1001d6985\ntest    eax, eax                                                       ; +0x11a, 0x1001d698a\nsetnz   al                                                             ; +0x11c, 0x1001d698c\nmov     [rbx+694h], al                                                 ; +0x11f, 0x1001d698f\nadd     rsp, 8                                                         ; +0x125, 0x1001d6995\npop     rbx                                                            ; +0x129, 0x1001d6999\npop     r12                                                            ; +0x12a, 0x1001d699a\npop     r13                                                            ; +0x12c, 0x1001d699c\npop     r14                                                            ; +0x12e, 0x1001d699e\npop     r15                                                            ; +0x130, 0x1001d69a0\npop     rbp                                                            ; +0x132, 0x1001d69a2\nretn                                                                   ; +0x133, 0x1001d69a3", "xrefs": ["<???> @ 0x1008d0fe8"], "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"}