{"type": "func", "start": 5373669008, "end": 5373669305, "name": "CheckpointGameObject::customObjectSetup", "pseudocode": "// \n// CheckpointGameObject::customObjectSetup from 0x1404bae90 to 0x1404bafb9 (297 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140611c78\n// > <???> @ 0x1406dcd58\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 CheckpointGameObject::customObjectSetup(\n        CheckpointGameObject *a1,\n        std::vector<std::string> *a2,\n        std::vector<void *> *a3)\n{\n  int v6; // esi\n  int v7; // ebx\n  int v8; // eax\n  std::_Vector_val<std::_Simple_types<std::string>>::pointer m_bigStorage; // rcx\n  int v10; // eax\n  std::_Vector_val<std::_Simple_types<std::string>>::pointer v11; // rcx\n  int v12; // eax\n  std::_Vector_val<std::_Simple_types<std::string>>::pointer v13; // rcx\n  std::_Vector_val<std::_Simple_types<std::string>>::pointer v14; // rcx\n\n  EffectGameObject::customObjectSetup(a1, a2, a3);\n  v6 = 9999;\n  if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )\n  {\n    m_bigStorage = a2->_Mypair._Myval2._Myfirst + 51;\n    if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF )\n      m_bigStorage = (std::_Vector_val<std::_Simple_types<std::string>>::pointer)m_bigStorage->m_data.m_bigStorage;\n    v8 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);\n    v7 = 0;\n    if ( v8 < 0 )\n      v8 = 0;\n    if ( v8 > 9999 )\n      v8 = 9999;\n  }\n  else\n  {\n    v7 = 0;\n    v8 = 0;\n  }\n  a1->m_targetGroupID = v8;\n  if ( !*((_QWORD *)a3->_Mypair._Myval2._Myfirst + 71) )\n  {\n    v10 = 0;\nLABEL_16:\n    v6 = v10;\n    goto LABEL_17;\n  }\n  v11 = a2->_Mypair._Myval2._Myfirst + 71;\n  if ( a2->_Mypair._Myval2._Myfirst[71].m_data.m_capacity > 0xF )\n    v11 = (std::_Vector_val<std::_Simple_types<std::string>>::pointer)v11->m_data.m_bigStorage;\n  v10 = atoi(v11->m_data.m_smallStorage._Elems);\n  if ( v10 < 0 )\n    v10 = 0;\n  if ( v10 <= 9999 )\n    goto LABEL_16;\nLABEL_17:\n  a1->m_centerGroupID = v6;\n  if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 448) )\n  {\n    v13 = a2->_Mypair._Myval2._Myfirst + 448;\n    if ( a2->_Mypair._Myval2._Myfirst[448].m_data.m_capacity > 0xF )\n      v13 = (std::_Vector_val<std::_Simple_types<std::string>>::pointer)v13->m_data.m_bigStorage;\n    v12 = atoi(v13->m_data.m_smallStorage._Elems);\n  }\n  else\n  {\n    v12 = 0;\n  }\n  a1->m_respawnID = v12;\n  if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 138) )\n  {\n    v14 = a2->_Mypair._Myval2._Myfirst + 138;\n    if ( a2->_Mypair._Myval2._Myfirst[138].m_data.m_capacity > 0xF )\n      v14 = (std::_Vector_val<std::_Simple_types<std::string>>::pointer)v14->m_data.m_bigStorage;\n    v7 = atoi(v14->m_data.m_smallStorage._Elems);\n  }\n  a1->m_targetPlayer1 = v7 != 0;\n}", "assembly": "; \n; CheckpointGameObject::customObjectSetup from 0x1404bae90 to 0x1404bafb9 (297 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140611c78\n; > <???> @ 0x1406dcd58\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, 0x1404bae90\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404bae95\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1404bae9a\nmov     [rsp+arg_18], r14                                              ; +0xf, 0x1404bae9f\npush    r15                                                            ; +0x14, 0x1404baea4\nsub     rsp, 20h                                                       ; +0x16, 0x1404baea6\nmov     r15, r8                                                        ; +0x1a, 0x1404baeaa\nmov     r14, rdx                                                       ; +0x1d, 0x1404baead\nmov     rdi, rcx                                                       ; +0x20, 0x1404baeb0\ncall    EffectGameObject__customObjectSetup                            ; +0x23, 0x1404baeb3\nmov     rax, [r15]                                                     ; +0x28, 0x1404baeb8\nmov     esi, 270Fh                                                     ; +0x2b, 0x1404baebb\ncmp     qword ptr [rax+198h], 0                                        ; +0x30, 0x1404baec0\njnz     short loc_1404BAED0                                            ; +0x38, 0x1404baec8\nxor     ebx, ebx                                                       ; +0x3a, 0x1404baeca\nmov     eax, ebx                                                       ; +0x3c, 0x1404baecc\njmp     short loc_1404BAEF7                                            ; +0x3e, 0x1404baece\nmov     rcx, [r14]                                                     ; +0x40, 0x1404baed0\nadd     rcx, 660h                                                      ; +0x43, 0x1404baed3\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x4a, 0x1404baeda\njbe     short loc_1404BAEE4                                            ; +0x4f, 0x1404baedf\nmov     rcx, [rcx]; String                                             ; +0x51, 0x1404baee1\ncall    cs:atoi                                                        ; +0x54, 0x1404baee4\nxor     ebx, ebx                                                       ; +0x5a, 0x1404baeea\ntest    eax, eax                                                       ; +0x5c, 0x1404baeec\ncmovs   eax, ebx                                                       ; +0x5e, 0x1404baeee\ncmp     eax, esi                                                       ; +0x61, 0x1404baef1\njle     short loc_1404BAEF7                                            ; +0x63, 0x1404baef3\nmov     eax, esi                                                       ; +0x65, 0x1404baef5\nmov     [rdi+5C8h], eax                                                ; +0x67, 0x1404baef7\nmov     rax, [r15]                                                     ; +0x6d, 0x1404baefd\ncmp     qword ptr [rax+238h], 0                                        ; +0x70, 0x1404baf00\njnz     short loc_1404BAF0E                                            ; +0x78, 0x1404baf08\nmov     eax, ebx                                                       ; +0x7a, 0x1404baf0a\njmp     short loc_1404BAF31                                            ; +0x7c, 0x1404baf0c\nmov     rcx, [r14]                                                     ; +0x7e, 0x1404baf0e\nadd     rcx, 8E0h                                                      ; +0x81, 0x1404baf11\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x88, 0x1404baf18\njbe     short loc_1404BAF22                                            ; +0x8d, 0x1404baf1d\nmov     rcx, [rcx]; String                                             ; +0x8f, 0x1404baf1f\ncall    cs:atoi                                                        ; +0x92, 0x1404baf22\ntest    eax, eax                                                       ; +0x98, 0x1404baf28\ncmovs   eax, ebx                                                       ; +0x9a, 0x1404baf2a\ncmp     eax, esi                                                       ; +0x9d, 0x1404baf2d\njg      short loc_1404BAF33                                            ; +0x9f, 0x1404baf2f\nmov     esi, eax                                                       ; +0xa1, 0x1404baf31\nmov     [rdi+5CCh], esi                                                ; +0xa3, 0x1404baf33\nmov     rax, [r15]                                                     ; +0xa9, 0x1404baf39\ncmp     qword ptr [rax+0E00h], 0                                       ; +0xac, 0x1404baf3c\njnz     short loc_1404BAF4A                                            ; +0xb4, 0x1404baf44\nmov     eax, ebx                                                       ; +0xb6, 0x1404baf46\njmp     short loc_1404BAF64                                            ; +0xb8, 0x1404baf48\nmov     rcx, [r14]                                                     ; +0xba, 0x1404baf4a\nadd     rcx, 3800h                                                     ; +0xbd, 0x1404baf4d\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xc4, 0x1404baf54\njbe     short loc_1404BAF5E                                            ; +0xc9, 0x1404baf59\nmov     rcx, [rcx]; String                                             ; +0xcb, 0x1404baf5b\ncall    cs:atoi                                                        ; +0xce, 0x1404baf5e\nmov     [rdi+744h], eax                                                ; +0xd4, 0x1404baf64\nmov     rax, [r15]                                                     ; +0xda, 0x1404baf6a\ncmp     qword ptr [rax+450h], 0                                        ; +0xdd, 0x1404baf6d\njz      short loc_1404BAF93                                            ; +0xe5, 0x1404baf75\nmov     rcx, [r14]                                                     ; +0xe7, 0x1404baf77\nadd     rcx, 1140h                                                     ; +0xea, 0x1404baf7a\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xf1, 0x1404baf81\njbe     short loc_1404BAF8B                                            ; +0xf6, 0x1404baf86\nmov     rcx, [rcx]; String                                             ; +0xf8, 0x1404baf88\ncall    cs:atoi                                                        ; +0xfb, 0x1404baf8b\nmov     ebx, eax                                                       ; +0x101, 0x1404baf91\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x103, 0x1404baf93\ntest    ebx, ebx                                                       ; +0x108, 0x1404baf98\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10a, 0x1404baf9a\nmov     r14, [rsp+28h+arg_18]                                          ; +0x10f, 0x1404baf9f\nsetnz   al                                                             ; +0x114, 0x1404bafa4\nmov     [rdi+6A4h], al                                                 ; +0x117, 0x1404bafa7\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x11d, 0x1404bafad\nadd     rsp, 20h                                                       ; +0x122, 0x1404bafb2\npop     r15                                                            ; +0x126, 0x1404bafb6\nretn                                                                   ; +0x128, 0x1404bafb8", "xrefs": ["<???> @ 0x140611c78", "<???> @ 0x1406dcd58"], "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"}