//
// SFXTriggerGameObject::customObjectSetup from 0x1001cfa40 to 0x1001d0750 (3344 bytes)
//
// 2 xrefs:
// > SongTriggerGameObject::customObjectSetup @ 0x1001d1384
// > ??> @ 0x1008c65e0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SFXTriggerGameObject::customObjectSetup(
SFXTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // r12
int v6; // r15d
int v7; // eax
std::__vector_base::pointer v8; // rdi
const char *longStorage; // rdi
std::__vector_base::pointer v10; // rdi
const char *elems; // rdi
std::__vector_base::pointer v12; // rdi
const char *v13; // rdi
int v14; // r15d
std::__vector_base::pointer v15; // rdi
const char *v16; // rdi
std::__vector_base::pointer v17; // rdi
const char *v18; // rdi
float v19; // xmm0_4
std::__vector_base::pointer v20; // rdi
const char *v21; // rdi
std::__vector_base::pointer v22; // rdi
const char *v23; // rdi
std::__vector_base::pointer v24; // rdi
const char *v25; // rdi
std::__vector_base::pointer v26; // rdi
const char *v27; // rdi
std::__vector_base::pointer v28; // rdi
const char *v29; // rdi
std::__vector_base::pointer v30; // rdi
const char *v31; // rdi
std::__vector_base::pointer v32; // rdi
const char *v33; // rdi
int v34; // r15d
int v35; // eax
std::__vector_base::pointer v36; // rdi
const char *v37; // rdi
std::__vector_base::pointer v38; // rdi
const char *v39; // rdi
std::__vector_base::pointer v40; // rdi
const char *v41; // rdi
int v42; // r15d
bool v43; // al
std::__vector_base::pointer v44; // rdi
const char *v45; // rdi
std::__vector_base::pointer v46; // rdi
const char *v47; // rdi
std::__vector_base::pointer v48; // rdi
const char *v49; // rdi
_QWORD *v50; // rbx
std::__vector_base::pointer v51; // rdi
const char *v52; // rdi
int v53; // r12d
int v54; // r14d
int v55; // eax
std::__vector_base::pointer v56; // rdi
const char *v57; // rdi
float v58; // xmm1_4
float v59; // xmm0_4
std::__vector_base::pointer v60; // rdi
const char *v61; // rdi
std::__vector_base::pointer v62; // rdi
const char *v63; // rdi
std::__vector_base::pointer v64; // rdi
const char *v65; // rdi
float v66; // xmm0_4
int v67; // r15d
int v68; // eax
std::__vector_base::pointer v69; // r12
const char *v70; // r12
int v71; // ecx
std::__vector_base::pointer v72; // r12
const char *v73; // r12
int v74; // r15d
int v75; // eax
std::__vector_base::pointer v76; // r12
const char *v77; // r12
int v78; // ecx
std::__vector_base::pointer v79; // rdi
const char *v80; // rdi
std::__vector_base::pointer v81; // rdi
const char *v82; // rdi
float v83; // xmm0_4
std::__vector_base::pointer v84; // rdi
const char *v85; // rdi
std::__vector_base::pointer v86; // rdi
const char *v87; // rdi
std::__vector_base::pointer v88; // rdi
const char *v89; // rdi
std::__vector_base::pointer v90; // rdi
const char *v91; // rdi
float v92; // xmm0_4
std::__vector_base::pointer v93; // rdi
const char *v94; // rdi
std::__vector_base::pointer v95; // rdi
const char *v96; // rdi
int v97; // r15d
int v98; // eax
std::__vector_base::pointer v99; // rdi
const char *v100; // rdi
std::__vector_base::pointer v101; // rdi
const char *v102; // rdi
std::__vector_base::pointer v103; // rdi
const char *v104; // rdi
std::__vector_base::pointer v105; // rdi
const char *v106; // rdi
float v107; // xmm0_4
std::__vector_base::pointer v108; // rdi
const char *v109; // rdi
std::__vector_base::pointer v110; // rdi
const char *v111; // rdi
std::__vector_base::pointer v112; // rdi
const char *v113; // rdi
float v114; // xmm0_4
std::__vector_base::pointer v115; // rdi
const char *v116; // rdi
std::__vector_base::pointer v117; // rdi
const char *v118; // rdi
bool v119; // al
std::__vector_base::pointer v120; // rdi
const char *v121; // rdi
SFXTriggerGameObject *v122; // [rsp+0h] [rbp-30h]
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v6 = 0;
v7 = 0;
if ( begin[392] )
{
v8 = a2->__begin_;
if ( (a2->__begin_[392].m_data.m_short.sizex2 & 1) != 0 )
longStorage = v8[392].m_data.m_long.longStorage;
else
longStorage = v8[392].m_data.m_short.shortStorage.__elems_;
v7 = atoi(longStorage);
}
a1->m_soundID = v7;
if ( begin[404] )
{
v10 = a2->__begin_;
if ( (a2->__begin_[404].m_data.m_short.sizex2 & 1) != 0 )
elems = v10[404].m_data.m_long.longStorage;
else
elems = v10[404].m_data.m_short.shortStorage.__elems_;
v6 = atoi(elems);
}
a1->m_speed = v6;
if ( !begin[405] )
{
a1->m_pitchIndex = 0;
if ( begin[406] )
goto LABEL_26;
LABEL_15:
a1->m_volume = 0.0;
if ( begin[407] )
goto LABEL_33;
LABEL_16:
a1->m_reverb = 0;
if ( begin[412] )
goto LABEL_37;
LABEL_17:
a1->m_fastFourierTransform = 0;
if ( begin[413] )
goto LABEL_41;
LABEL_18:
a1->m_loop = 0;
if ( begin[414] )
goto LABEL_45;
LABEL_19:
a1->m_stopLoop = 0;
if ( begin[415] )
goto LABEL_49;
LABEL_20:
a1->m_unique = 0;
if ( begin[416] )
goto LABEL_53;
LABEL_21:
a1->m_sfxUniqueID = 0;
v14 = 0;
if ( !begin[420] )
goto LABEL_57;
goto LABEL_22;
}
v12 = a2->__begin_;
if ( (a2->__begin_[405].m_data.m_short.sizex2 & 1) != 0 )
v13 = v12[405].m_data.m_long.longStorage;
else
v13 = v12[405].m_data.m_short.shortStorage.__elems_;
a1->m_pitchIndex = atoi(v13);
if ( !begin[406] )
goto LABEL_15;
LABEL_26:
v17 = a2->__begin_;
if ( (a2->__begin_[406].m_data.m_short.sizex2 & 1) != 0 )
v18 = v17[406].m_data.m_long.longStorage;
else
v18 = v17[406].m_data.m_short.shortStorage.__elems_;
v19 = atof(v18);
a1->m_volume = v19;
if ( !begin[407] )
goto LABEL_16;
LABEL_33:
v20 = a2->__begin_;
if ( (a2->__begin_[407].m_data.m_short.sizex2 & 1) != 0 )
v21 = v20[407].m_data.m_long.longStorage;
else
v21 = v20[407].m_data.m_short.shortStorage.__elems_;
a1->m_reverb = atoi(v21) != 0;
if ( !begin[412] )
goto LABEL_17;
LABEL_37:
v22 = a2->__begin_;
if ( (a2->__begin_[412].m_data.m_short.sizex2 & 1) != 0 )
v23 = v22[412].m_data.m_long.longStorage;
else
v23 = v22[412].m_data.m_short.shortStorage.__elems_;
a1->m_fastFourierTransform = atoi(v23) != 0;
if ( !begin[413] )
goto LABEL_18;
LABEL_41:
v24 = a2->__begin_;
if ( (a2->__begin_[413].m_data.m_short.sizex2 & 1) != 0 )
v25 = v24[413].m_data.m_long.longStorage;
else
v25 = v24[413].m_data.m_short.shortStorage.__elems_;
a1->m_loop = atoi(v25) != 0;
if ( !begin[414] )
goto LABEL_19;
LABEL_45:
v26 = a2->__begin_;
if ( (a2->__begin_[414].m_data.m_short.sizex2 & 1) != 0 )
v27 = v26[414].m_data.m_long.longStorage;
else
v27 = v26[414].m_data.m_short.shortStorage.__elems_;
a1->m_stopLoop = atoi(v27) != 0;
if ( !begin[415] )
goto LABEL_20;
LABEL_49:
v28 = a2->__begin_;
if ( (a2->__begin_[415].m_data.m_short.sizex2 & 1) != 0 )
v29 = v28[415].m_data.m_long.longStorage;
else
v29 = v28[415].m_data.m_short.shortStorage.__elems_;
a1->m_unique = atoi(v29) != 0;
if ( !begin[416] )
goto LABEL_21;
LABEL_53:
v30 = a2->__begin_;
if ( (a2->__begin_[416].m_data.m_short.sizex2 & 1) != 0 )
v31 = v30[416].m_data.m_long.longStorage;
else
v31 = v30[416].m_data.m_short.shortStorage.__elems_;
a1->m_sfxUniqueID = atoi(v31);
v14 = 0;
if ( !begin[420] )
{
LABEL_57:
a1->m_override = 0;
if ( !begin[408] )
goto LABEL_62;
goto LABEL_58;
}
LABEL_22:
v15 = a2->__begin_;
if ( (a2->__begin_[420].m_data.m_short.sizex2 & 1) != 0 )
v16 = v15[420].m_data.m_long.longStorage;
else
v16 = v15[420].m_data.m_short.shortStorage.__elems_;
a1->m_override = atoi(v16) != 0;
if ( begin[408] )
{
LABEL_58:
v32 = a2->__begin_;
if ( (a2->__begin_[408].m_data.m_short.sizex2 & 1) != 0 )
v33 = v32[408].m_data.m_long.longStorage;
else
v33 = v32[408].m_data.m_short.shortStorage.__elems_;
v14 = atoi(v33);
}
LABEL_62:
a1->m_start = v14;
v34 = 0;
v35 = 0;
if ( begin[409] )
{
v36 = a2->__begin_;
if ( (a2->__begin_[409].m_data.m_short.sizex2 & 1) != 0 )
v37 = v36[409].m_data.m_long.longStorage;
else
v37 = v36[409].m_data.m_short.shortStorage.__elems_;
v35 = atoi(v37);
}
a1->m_fadeIn = v35;
if ( begin[410] )
{
v38 = a2->__begin_;
if ( (a2->__begin_[410].m_data.m_short.sizex2 & 1) != 0 )
v39 = v38[410].m_data.m_long.longStorage;
else
v39 = v38[410].m_data.m_short.shortStorage.__elems_;
v34 = atoi(v39);
}
a1->m_end = v34;
if ( !begin[411] )
{
a1->m_fadeOut = 0;
if ( begin[417] )
goto LABEL_81;
LABEL_76:
a1->m_stop = 0;
if ( begin[418] )
goto LABEL_85;
goto LABEL_77;
}
v40 = a2->__begin_;
if ( (a2->__begin_[411].m_data.m_short.sizex2 & 1) != 0 )
v41 = v40[411].m_data.m_long.longStorage;
else
v41 = v40[411].m_data.m_short.shortStorage.__elems_;
a1->m_fadeOut = atoi(v41);
if ( !begin[417] )
goto LABEL_76;
LABEL_81:
v44 = a2->__begin_;
if ( (a2->__begin_[417].m_data.m_short.sizex2 & 1) != 0 )
v45 = v44[417].m_data.m_long.longStorage;
else
v45 = v44[417].m_data.m_short.shortStorage.__elems_;
a1->m_stop = atoi(v45) != 0;
if ( begin[418] )
{
LABEL_85:
v46 = a2->__begin_;
if ( (a2->__begin_[418].m_data.m_short.sizex2 & 1) != 0 )
v47 = v46[418].m_data.m_long.longStorage;
else
v47 = v46[418].m_data.m_short.shortStorage.__elems_;
a1->m_changeSpeed = atoi(v47) != 0;
v42 = 0;
if ( begin[419] )
goto LABEL_89;
LABEL_78:
v43 = 0;
goto LABEL_93;
}
LABEL_77:
a1->m_changeSpeed = 0;
v42 = 0;
if ( !begin[419] )
goto LABEL_78;
LABEL_89:
v48 = a2->__begin_;
if ( (a2->__begin_[419].m_data.m_short.sizex2 & 1) != 0 )
v49 = v48[419].m_data.m_long.longStorage;
else
v49 = v48[419].m_data.m_short.shortStorage.__elems_;
v43 = atoi(v49) != 0;
LABEL_93:
v122 = a1;
a1->m_changeVolume = v43;
v50 = begin;
if ( begin[51] )
{
v51 = a2->__begin_;
if ( (a2->__begin_[51].m_data.m_short.sizex2 & 1) != 0 )
v52 = v51[51].m_data.m_long.longStorage;
else
v52 = v51[51].m_data.m_short.shortStorage.__elems_;
v42 = atoi(v52);
}
v53 = 0;
if ( v42 <= 0 )
v42 = 0;
v54 = 9999;
if ( v42 >= 9999 )
v42 = 9999;
v122->m_targetGroupID = v42;
v55 = 0;
if ( v50[71] )
{
v56 = a2->__begin_;
if ( (a2->__begin_[71].m_data.m_short.sizex2 & 1) != 0 )
v57 = v56[71].m_data.m_long.longStorage;
else
v57 = v56[71].m_data.m_short.shortStorage.__elems_;
v55 = atoi(v57);
}
if ( v55 > 0 )
v53 = v55;
if ( v53 < 9999 )
v54 = v53;
v122->m_centerGroupID = v54;
v58 = 0.0;
v59 = 0.0;
if ( v50[421] )
{
v60 = a2->__begin_;
if ( (a2->__begin_[421].m_data.m_short.sizex2 & 1) != 0 )
v61 = v60[421].m_data.m_long.longStorage;
else
v61 = v60[421].m_data.m_short.shortStorage.__elems_;
v59 = atof(v61);
v58 = 0.0;
}
v122->m_volumeNear = v59;
if ( v50[422] )
{
v62 = a2->__begin_;
if ( (a2->__begin_[422].m_data.m_short.sizex2 & 1) != 0 )
v63 = v62[422].m_data.m_long.longStorage;
else
v63 = v62[422].m_data.m_short.shortStorage.__elems_;
v58 = atof(v63);
}
v122->m_volumeMedium = v58;
if ( v50[423] )
{
v64 = a2->__begin_;
if ( (a2->__begin_[423].m_data.m_short.sizex2 & 1) != 0 )
v65 = v64[423].m_data.m_long.longStorage;
else
v65 = v64[423].m_data.m_short.shortStorage.__elems_;
v66 = atof(v65);
}
else
{
v66 = 0.0;
}
v122->m_volumeFar = v66;
v67 = 0;
v68 = 0;
if ( v50[424] )
{
v69 = a2->__begin_;
v70 = (a2->__begin_[424].m_data.m_short.sizex2 & 1) != 0
? v69[424].m_data.m_long.longStorage
: (const char *)&v69[424].m_data.m_short.shortStorage;
v71 = atoi(v70);
v68 = 0;
if ( v71 > 0 )
v68 = atoi(v70);
}
v122->m_minDistNear = v68;
if ( v50[425] )
{
v72 = a2->__begin_;
if ( (a2->__begin_[425].m_data.m_short.sizex2 & 1) == 0 )
{
v73 = v72[425].m_data.m_short.shortStorage.__elems_;
if ( atoi(v73) <= 0 )
goto LABEL_139;
goto LABEL_138;
}
v73 = v72[425].m_data.m_long.longStorage;
if ( atoi(v73) > 0 )
LABEL_138:
v67 = atoi(v73);
}
LABEL_139:
v122->m_minDistMedium = v67;
v74 = 0;
v75 = 0;
if ( v50[426] )
{
v76 = a2->__begin_;
v77 = (a2->__begin_[426].m_data.m_short.sizex2 & 1) != 0
? v76[426].m_data.m_long.longStorage
: (const char *)&v76[426].m_data.m_short.shortStorage;
v78 = atoi(v77);
v75 = 0;
if ( v78 > 0 )
v75 = atoi(v77);
}
v122->m_minDistFar = v75;
if ( v50[458] )
{
v79 = a2->__begin_;
if ( (a2->__begin_[458].m_data.m_short.sizex2 & 1) != 0 )
v80 = v79[458].m_data.m_long.longStorage;
else
v80 = v79[458].m_data.m_short.shortStorage.__elems_;
v74 = atoi(v80);
}
v122->m_proximityMode = v74;
if ( !v50[138] )
{
v122->m_targetPlayer1 = 0;
if ( v50[200] )
goto LABEL_162;
LABEL_154:
v122->m_targetPlayer2 = 0;
if ( v50[428] )
goto LABEL_166;
LABEL_155:
v122->m_cameraDistance = 0;
if ( v50[489] )
goto LABEL_170;
LABEL_156:
v122->m_ignoreVolumeTest = 0;
if ( v50[10] )
goto LABEL_174;
LABEL_157:
v122->m_duration = 0.0;
if ( v50[433] )
goto LABEL_178;
goto LABEL_158;
}
v81 = a2->__begin_;
if ( (a2->__begin_[138].m_data.m_short.sizex2 & 1) != 0 )
v82 = v81[138].m_data.m_long.longStorage;
else
v82 = v81[138].m_data.m_short.shortStorage.__elems_;
v122->m_targetPlayer1 = atoi(v82) != 0;
if ( !v50[200] )
goto LABEL_154;
LABEL_162:
v84 = a2->__begin_;
if ( (a2->__begin_[200].m_data.m_short.sizex2 & 1) != 0 )
v85 = v84[200].m_data.m_long.longStorage;
else
v85 = v84[200].m_data.m_short.shortStorage.__elems_;
v122->m_targetPlayer2 = atoi(v85) != 0;
if ( !v50[428] )
goto LABEL_155;
LABEL_166:
v86 = a2->__begin_;
if ( (a2->__begin_[428].m_data.m_short.sizex2 & 1) != 0 )
v87 = v86[428].m_data.m_long.longStorage;
else
v87 = v86[428].m_data.m_short.shortStorage.__elems_;
v122->m_cameraDistance = atoi(v87) != 0;
if ( !v50[489] )
goto LABEL_156;
LABEL_170:
v88 = a2->__begin_;
if ( (a2->__begin_[489].m_data.m_short.sizex2 & 1) != 0 )
v89 = v88[489].m_data.m_long.longStorage;
else
v89 = v88[489].m_data.m_short.shortStorage.__elems_;
v122->m_ignoreVolumeTest = atoi(v89) != 0;
if ( !v50[10] )
goto LABEL_157;
LABEL_174:
v90 = a2->__begin_;
if ( (a2->__begin_[10].m_data.m_short.sizex2 & 1) != 0 )
v91 = v90[10].m_data.m_long.longStorage;
else
v91 = v90[10].m_data.m_short.shortStorage.__elems_;
v92 = atof(v91);
v122->m_duration = v92;
if ( v50[433] )
{
LABEL_178:
v93 = a2->__begin_;
if ( (a2->__begin_[433].m_data.m_short.sizex2 & 1) != 0 )
v94 = v93[433].m_data.m_long.longStorage;
else
v94 = v93[433].m_data.m_short.shortStorage.__elems_;
v122->m_preload = atoi(v94) != 0;
if ( v50[434] )
goto LABEL_182;
LABEL_159:
v83 = 0.0;
goto LABEL_186;
}
LABEL_158:
v122->m_preload = 0;
if ( !v50[434] )
goto LABEL_159;
LABEL_182:
v95 = a2->__begin_;
if ( (a2->__begin_[434].m_data.m_short.sizex2 & 1) != 0 )
v96 = v95[434].m_data.m_long.longStorage;
else
v96 = v95[434].m_data.m_short.shortStorage.__elems_;
v83 = atof(v96);
LABEL_186:
v122->m_minInterval = v83;
v97 = 0;
v98 = 0;
if ( v50[455] )
{
v99 = a2->__begin_;
if ( (a2->__begin_[455].m_data.m_short.sizex2 & 1) != 0 )
v100 = v99[455].m_data.m_long.longStorage;
else
v100 = v99[455].m_data.m_short.shortStorage.__elems_;
v98 = atoi(v100);
}
v122->m_sfxGroup = v98;
if ( v50[457] )
{
v101 = a2->__begin_;
if ( (a2->__begin_[457].m_data.m_short.sizex2 & 1) != 0 )
v102 = v101[457].m_data.m_long.longStorage;
else
v102 = v101[457].m_data.m_short.shortStorage.__elems_;
v97 = atoi(v102);
}
v122->m_groupID = v97;
if ( !v50[490] )
{
v122->m_soundDuration = 0.0;
if ( v50[502] )
goto LABEL_208;
LABEL_200:
v122->m_reverbPreset = Generic;
if ( v50[503] )
goto LABEL_216;
LABEL_201:
v122->m_reverbEnabled = 0;
if ( v50[595] )
goto LABEL_224;
LABEL_202:
v122->m_dontReset = 0;
if ( v50[596] )
goto LABEL_230;
LABEL_203:
v122->m_speedVariance = 0;
if ( !v50[597] )
goto LABEL_234;
goto LABEL_204;
}
v103 = a2->__begin_;
if ( (a2->__begin_[490].m_data.m_short.sizex2 & 1) != 0 )
v104 = v103[490].m_data.m_long.longStorage;
else
v104 = v103[490].m_data.m_short.shortStorage.__elems_;
v107 = atof(v104);
v122->m_soundDuration = v107;
if ( !v50[502] )
goto LABEL_200;
LABEL_208:
v108 = a2->__begin_;
if ( (a2->__begin_[502].m_data.m_short.sizex2 & 1) != 0 )
v109 = v108[502].m_data.m_long.longStorage;
else
v109 = v108[502].m_data.m_short.shortStorage.__elems_;
v122->m_reverbPreset = atoi(v109);
if ( !v50[503] )
goto LABEL_201;
LABEL_216:
v112 = a2->__begin_;
if ( (a2->__begin_[503].m_data.m_short.sizex2 & 1) != 0 )
v113 = v112[503].m_data.m_long.longStorage;
else
v113 = v112[503].m_data.m_short.shortStorage.__elems_;
v122->m_reverbEnabled = atoi(v113) != 0;
if ( !v50[595] )
goto LABEL_202;
LABEL_224:
v117 = a2->__begin_;
if ( (a2->__begin_[595].m_data.m_short.sizex2 & 1) != 0 )
v118 = v117[595].m_data.m_long.longStorage;
else
v118 = v117[595].m_data.m_short.shortStorage.__elems_;
v122->m_dontReset = atoi(v118) != 0;
if ( !v50[596] )
goto LABEL_203;
LABEL_230:
v120 = a2->__begin_;
if ( (a2->__begin_[596].m_data.m_short.sizex2 & 1) != 0 )
v121 = v120[596].m_data.m_long.longStorage;
else
v121 = v120[596].m_data.m_short.shortStorage.__elems_;
v122->m_speedVariance = atoi(v121);
if ( !v50[597] )
{
LABEL_234:
v122->m_pitchVariance = 0;
if ( !v50[598] )
goto LABEL_235;
LABEL_212:
v110 = a2->__begin_;
if ( (a2->__begin_[598].m_data.m_short.sizex2 & 1) != 0 )
v111 = v110[598].m_data.m_long.longStorage;
else
v111 = v110[598].m_data.m_short.shortStorage.__elems_;
v114 = atof(v111);
v122->m_volumeVariance = v114;
if ( !v50[599] )
goto LABEL_236;
goto LABEL_220;
}
LABEL_204:
v105 = a2->__begin_;
if ( (a2->__begin_[597].m_data.m_short.sizex2 & 1) != 0 )
v106 = v105[597].m_data.m_long.longStorage;
else
v106 = v105[597].m_data.m_short.shortStorage.__elems_;
v122->m_pitchVariance = atoi(v106);
if ( v50[598] )
goto LABEL_212;
LABEL_235:
v122->m_volumeVariance = 0.0;
if ( !v50[599] )
{
LABEL_236:
v119 = 0;
goto LABEL_237;
}
LABEL_220:
v115 = a2->__begin_;
if ( (a2->__begin_[599].m_data.m_short.sizex2 & 1) != 0 )
v116 = v115[599].m_data.m_long.longStorage;
else
v116 = v115[599].m_data.m_short.shortStorage.__elems_;
v119 = atoi(v116) != 0;
LABEL_237:
v122->m_pitchSteps = v119;
}