{"type": "func", "start": 3541596, "end": 3541992, "name": "EnhancedGameObject::customObjectSetup", "pseudocode": "// \n// EnhancedGameObject::customObjectSetup from 0x360a5c to 0x360be8 (396 bytes)\n// \n// 3 xrefs:\n// > SpecialAnimGameObject::customObjectSetup @ 0x3e11de\n// > EffectGameObject::customObjectSetup @ 0x3e12d0\n// > ParticleGameObject::customObjectSetup @ 0x3e707c\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 EnhancedGameObject::customObjectSetup(\n        EnhancedGameObject *a1,\n        std::vector<std::string> *a2,\n        std::vector<void *> *a3)\n{\n  void **m_start; // r6\n  int v7; // r0\n  void *v8; // r0\n  _BOOL4 m_hasCustomRotation; // r3\n  void *v10; // r0\n  void *v11; // r3\n  float v12; // s15\n  void **v13; // r6\n  int v14; // r0\n  void *v15; // r3\n  float v16; // s15\n  void **v17; // r8\n  void *v18; // r6\n  _BOOL4 m_animationShouldUseSpeed; // r3\n  void *v20; // r0\n  void **v21; // r6\n  int v22; // r0\n  void *v23; // r0\n  int v24; // r0\n  void *v25; // r0\n\n  m_start = a3->m_start;\n  v7 = *((_DWORD *)a3->m_start + 99);\n  if ( v7 )\n    LOBYTE(v7) = atoi((const char *)a2->m_start[99].m_data.m_data) != 0;\n  a1->m_isMultiActivate = v7;\n  v8 = m_start[444];\n  if ( v8 )\n    LOBYTE(v8) = atoi((const char *)a2->m_start[444].m_data.m_data) != 0;\n  m_hasCustomRotation = a1->m_hasCustomRotation;\n  a1->m_isNoMultiActivate = (char)v8;\n  if ( m_hasCustomRotation )\n  {\n    v10 = m_start[98];\n    if ( v10 )\n      LOBYTE(v10) = atoi((const char *)a2->m_start[98].m_data.m_data) != 0;\n    v11 = m_start[97];\n    a1->m_disableRotation = (char)v10;\n    if ( v11 )\n      v12 = atof((const char *)a2->m_start[97].m_data.m_data);\n    else\n      v12 = 0.0;\n    a1->m_rotationSpeed = v12;\n    EnhancedGameObject::createRotateAction(a1, a1->m_rotationAngle, 0);\n  }\n  if ( a1->m_hasCustomAnimation )\n  {\n    v13 = a3->m_start;\n    v14 = *((_DWORD *)a3->m_start + 106);\n    if ( v14 )\n      LOBYTE(v14) = atoi((const char *)a2->m_start[106].m_data.m_data) != 0;\n    v15 = v13[107];\n    a1->m_animationRandomizedStart = v14;\n    if ( v15 )\n      v16 = atof((const char *)a2->m_start[107].m_data.m_data);\n    else\n      v16 = 0.0;\n    v17 = a3->m_start;\n    a1->m_animationSpeed = v16;\n    v18 = v17[123];\n    if ( v18 )\n      v18 = (void *)(atoi((const char *)a2->m_start[123].m_data.m_data) != 0);\n    m_animationShouldUseSpeed = a1->m_animationShouldUseSpeed;\n    a1->m_animateOnTrigger = (char)v18;\n    if ( !m_animationShouldUseSpeed )\n    {\n      v20 = v17[122];\n      if ( v20 )\n        LOBYTE(v20) = atoi((const char *)a2->m_start[122].m_data.m_data) != 0;\n      a1->m_animationShouldUseSpeed = (char)v20;\n    }\n    if ( v18 )\n      EnhancedGameObject::waitForAnimationTrigger(a1);\n    v21 = a3->m_start;\n    v22 = *((_DWORD *)a3->m_start + 126);\n    if ( v22 )\n      LOBYTE(v22) = atoi((const char *)a2->m_start[126].m_data.m_data) != 0;\n    a1->m_disableDelayedLoop = v22;\n    v23 = v21[214];\n    if ( v23 )\n      LOBYTE(v23) = atoi((const char *)a2->m_start[214].m_data.m_data) != 0;\n    a1->m_animateOnlyWhenActive = (char)v23;\n    v24 = (int)v21[462];\n    if ( v24 )\n      v24 = atoi((const char *)a2->m_start[462].m_data.m_data);\n    a1->m_singleFrame = v24;\n    v25 = v21[592];\n    if ( v25 )\n      LOBYTE(v25) = atoi((const char *)a2->m_start[592].m_data.m_data) != 0;\n    a1->m_animationOffset = (char)v25;\n  }\n}", "assembly": "; \n; EnhancedGameObject::customObjectSetup from 0x360a5c to 0x360be8 (396 bytes)\n; \n; 3 xrefs:\n; > SpecialAnimGameObject::customObjectSetup @ 0x3e11de\n; > EffectGameObject::customObjectSetup @ 0x3e12d0\n; > ParticleGameObject::customObjectSetup @ 0x3e707c\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.W          {R4-R8,LR}                                             ; +0x0, 0x360a5c\nMOV             R4, R0                                                 ; +0x4, 0x360a60\nLDR             R6, [R2]                                               ; +0x6, 0x360a62\nMOV             R5, R1                                                 ; +0x8, 0x360a64\nMOV             R7, R2                                                 ; +0xa, 0x360a66\nLDR.W           R0, [R6,#0x18C]                                        ; +0xc, 0x360a68\nCBZ             R0, loc_360A7E                                         ; +0x10, 0x360a6c\nLDR             R3, [R1]                                               ; +0x12, 0x360a6e\nLDR.W           R0, [R3,#0x18C]; char *                                ; +0x14, 0x360a70\nBLX             atoi                                                   ; +0x18, 0x360a74\nADDS            R0, #0                                                 ; +0x1c, 0x360a78\nIT NE                                                                  ; +0x1e, 0x360a7a\nMOVNE           R0, #1                                                 ; +0x20, 0x360a7c\nSTRB.W          R0, [R4,#0x4E6]                                        ; +0x22, 0x360a7e\nLDR.W           R0, [R6,#0x6F0]                                        ; +0x26, 0x360a82\nCBZ             R0, loc_360A98                                         ; +0x2a, 0x360a86\nLDR             R3, [R5]                                               ; +0x2c, 0x360a88\nLDR.W           R0, [R3,#0x6F0]; char *                                ; +0x2e, 0x360a8a\nBLX             atoi                                                   ; +0x32, 0x360a8e\nADDS            R0, #0                                                 ; +0x36, 0x360a92\nIT NE                                                                  ; +0x38, 0x360a94\nMOVNE           R0, #1                                                 ; +0x3a, 0x360a96\nLDRB.W          R3, [R4,#0x4AF]                                        ; +0x3c, 0x360a98\nSTRB.W          R0, [R4,#0x4E5]                                        ; +0x40, 0x360a9c\nCBZ             R3, loc_360AF0                                         ; +0x44, 0x360aa0\nLDR.W           R0, [R6,#0x188]                                        ; +0x46, 0x360aa2\nCBZ             R0, loc_360AB8                                         ; +0x4a, 0x360aa6\nLDR             R3, [R5]                                               ; +0x4c, 0x360aa8\nLDR.W           R0, [R3,#0x188]; char *                                ; +0x4e, 0x360aaa\nBLX             atoi                                                   ; +0x52, 0x360aae\nADDS            R0, #0                                                 ; +0x56, 0x360ab2\nIT NE                                                                  ; +0x58, 0x360ab4\nMOVNE           R0, #1                                                 ; +0x5a, 0x360ab6\nLDR.W           R3, [R6,#0x184]                                        ; +0x5c, 0x360ab8\nSTRB.W          R0, [R4,#0x4B0]                                        ; +0x60, 0x360abc\nCBZ             R3, loc_360AD6                                         ; +0x64, 0x360ac0\nLDR             R3, [R5]                                               ; +0x66, 0x360ac2\nLDR.W           R0, [R3,#0x184]; char *                                ; +0x68, 0x360ac4\nBLX             atof                                                   ; +0x6c, 0x360ac8\nVMOV            D7, R0, R1                                             ; +0x70, 0x360acc\nVCVT.F32.F64    S15, D7                                                ; +0x74, 0x360ad0\nB               loc_360ADA                                             ; +0x78, 0x360ad4\nVLDR            S15, =0.0                                              ; +0x7a, 0x360ad6\nADDW            R3, R4, #0x4B4                                         ; +0x7e, 0x360ada\nMOV             R0, R4; this                                           ; +0x82, 0x360ade\nMOVS            R2, #0; int                                            ; +0x84, 0x360ae0\nVSTR            S15, [R3]                                              ; +0x86, 0x360ae2\nADD.W           R3, R4, #0x4B8                                         ; +0x8a, 0x360ae6\nLDR             R1, [R3]; float                                        ; +0x8e, 0x360aea\nBL              _ZN18EnhancedGameObject18createRotateActionEfi; EnhancedGameObject::createRotateAction(float,int) ; +0x90, 0x360aec\nLDRB.W          R3, [R4,#0x4AE]                                        ; +0x94, 0x360af0\nCMP             R3, #0                                                 ; +0x98, 0x360af4\nBEQ             locret_360BE4                                          ; +0x9a, 0x360af6\nLDR             R6, [R7]                                               ; +0x9c, 0x360af8\nLDR.W           R0, [R6,#0x1A8]                                        ; +0x9e, 0x360afa\nCBZ             R0, loc_360B10                                         ; +0xa2, 0x360afe\nLDR             R3, [R5]                                               ; +0xa4, 0x360b00\nLDR.W           R0, [R3,#0x1A8]; char *                                ; +0xa6, 0x360b02\nBLX             atoi                                                   ; +0xaa, 0x360b06\nADDS            R0, #0                                                 ; +0xae, 0x360b0a\nIT NE                                                                  ; +0xb0, 0x360b0c\nMOVNE           R0, #1                                                 ; +0xb2, 0x360b0e\nLDR.W           R3, [R6,#0x1AC]                                        ; +0xb4, 0x360b10\nSTRB.W          R0, [R4,#0x4C4]                                        ; +0xb8, 0x360b14\nCBZ             R3, loc_360B2E                                         ; +0xbc, 0x360b18\nLDR             R3, [R5]                                               ; +0xbe, 0x360b1a\nLDR.W           R0, [R3,#0x1AC]; char *                                ; +0xc0, 0x360b1c\nBLX             atof                                                   ; +0xc4, 0x360b20\nVMOV            D7, R0, R1                                             ; +0xc8, 0x360b24\nVCVT.F32.F64    S15, D7                                                ; +0xcc, 0x360b28\nB               loc_360B32                                             ; +0xd0, 0x360b2c\nVLDR            S15, =0.0                                              ; +0xd2, 0x360b2e\nLDR.W           R8, [R7]                                               ; +0xd6, 0x360b32\nADD.W           R3, R4, #0x4C8                                         ; +0xda, 0x360b36\nVSTR            S15, [R3]                                              ; +0xde, 0x360b3a\nLDR.W           R6, [R8,#0x1EC]                                        ; +0xe2, 0x360b3e\nCBZ             R6, loc_360B54                                         ; +0xe6, 0x360b42\nLDR             R3, [R5]                                               ; +0xe8, 0x360b44\nLDR.W           R0, [R3,#0x1EC]; char *                                ; +0xea, 0x360b46\nBLX             atoi                                                   ; +0xee, 0x360b4a\nMOVS            R6, R0                                                 ; +0xf2, 0x360b4e\nIT NE                                                                  ; +0xf4, 0x360b50\nMOVNE           R6, #1                                                 ; +0xf6, 0x360b52\nLDRB.W          R3, [R4,#0x4CC]                                        ; +0xf8, 0x360b54\nSTRB.W          R6, [R4,#0x4CD]                                        ; +0xfc, 0x360b58\nCBNZ            R3, loc_360B78                                         ; +0x100, 0x360b5c\nLDR.W           R0, [R8,#0x1E8]                                        ; +0x102, 0x360b5e\nCBZ             R0, loc_360B74                                         ; +0x106, 0x360b62\nLDR             R3, [R5]                                               ; +0x108, 0x360b64\nLDR.W           R0, [R3,#0x1E8]; char *                                ; +0x10a, 0x360b66\nBLX             atoi                                                   ; +0x10e, 0x360b6a\nADDS            R0, #0                                                 ; +0x112, 0x360b6e\nIT NE                                                                  ; +0x114, 0x360b70\nMOVNE           R0, #1                                                 ; +0x116, 0x360b72\nSTRB.W          R0, [R4,#0x4CC]                                        ; +0x118, 0x360b74\nCBZ             R6, loc_360B80                                         ; +0x11c, 0x360b78\nMOV             R0, R4; this                                           ; +0x11e, 0x360b7a\nBL              _ZN18EnhancedGameObject23waitForAnimationTriggerEv; EnhancedGameObject::waitForAnimationTrigger(void) ; +0x120, 0x360b7c\nLDR             R6, [R7]                                               ; +0x124, 0x360b80\nLDR.W           R0, [R6,#0x1F8]                                        ; +0x126, 0x360b82\nCBZ             R0, loc_360B98                                         ; +0x12a, 0x360b86\nLDR             R3, [R5]                                               ; +0x12c, 0x360b88\nLDR.W           R0, [R3,#0x1F8]; char *                                ; +0x12e, 0x360b8a\nBLX             atoi                                                   ; +0x132, 0x360b8e\nADDS            R0, #0                                                 ; +0x136, 0x360b92\nIT NE                                                                  ; +0x138, 0x360b94\nMOVNE           R0, #1                                                 ; +0x13a, 0x360b96\nSTRB.W          R0, [R4,#0x4CE]                                        ; +0x13c, 0x360b98\nLDR.W           R0, [R6,#0x358]                                        ; +0x140, 0x360b9c\nCBZ             R0, loc_360BB2                                         ; +0x144, 0x360ba0\nLDR             R3, [R5]                                               ; +0x146, 0x360ba2\nLDR.W           R0, [R3,#0x358]; char *                                ; +0x148, 0x360ba4\nBLX             atoi                                                   ; +0x14c, 0x360ba8\nADDS            R0, #0                                                 ; +0x150, 0x360bac\nIT NE                                                                  ; +0x152, 0x360bae\nMOVNE           R0, #1                                                 ; +0x154, 0x360bb0\nSTRB.W          R0, [R4,#0x4E4]                                        ; +0x156, 0x360bb2\nLDR.W           R0, [R6,#0x738]                                        ; +0x15a, 0x360bb6\nCBZ             R0, loc_360BC6                                         ; +0x15e, 0x360bba\nLDR             R3, [R5]                                               ; +0x160, 0x360bbc\nLDR.W           R0, [R3,#0x738]; char *                                ; +0x162, 0x360bbe\nBLX             atoi                                                   ; +0x166, 0x360bc2\nSTR.W           R0, [R4,#0x4D0]                                        ; +0x16a, 0x360bc6\nLDR.W           R0, [R6,#0x940]                                        ; +0x16e, 0x360bca\nCBZ             R0, loc_360BE0                                         ; +0x172, 0x360bce\nLDR             R3, [R5]                                               ; +0x174, 0x360bd0\nLDR.W           R0, [R3,#0x940]; char *                                ; +0x176, 0x360bd2\nBLX             atoi                                                   ; +0x17a, 0x360bd6\nADDS            R0, #0                                                 ; +0x17e, 0x360bda\nIT NE                                                                  ; +0x180, 0x360bdc\nMOVNE           R0, #1                                                 ; +0x182, 0x360bde\nSTRB.W          R0, [R4,#0x4D4]                                        ; +0x184, 0x360be0\nPOP.W           {R4-R8,PC}                                             ; +0x188, 0x360be4", "xrefs": ["SpecialAnimGameObject::customObjectSetup @ 0x3e11de", "EffectGameObject::customObjectSetup @ 0x3e12d0", "ParticleGameObject::customObjectSetup @ 0x3e707c"], "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"}