{"type": "func", "start": 3509726, "end": 3509810, "name": "EnhancedGameObject::saveActiveColors", "pseudocode": "// \n// EnhancedGameObject::saveActiveColors from 0x358dde to 0x358e32 (84 bytes)\n// \n// 0 xrefs:\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::saveActiveColors(EnhancedGameObject *a1)\n{\n  int *p_m_animationRandomizedStartValue; // r5\n\n  GameObject::saveActiveColors(a1);\n  p_m_animationRandomizedStartValue = &a1->m_animationRandomizedStartValue;\n  if ( a1->m_animationRandomizedStart )\n  {\n    if ( *(float *)p_m_animationRandomizedStartValue <= 0.0 && !a1->m_unk548 )\n      *(float *)p_m_animationRandomizedStartValue = vcvts_n_f32_s32(rand(), 0x1Fu);\n  }\n  else\n  {\n    *p_m_animationRandomizedStartValue = 0;\n    a1->m_animationStart = 0.0;\n  }\n  if ( a1->m_hasCustomAnimation )\n    EnhancedGameObject::setupAnimationVariables(a1);\n}", "assembly": "; \n; EnhancedGameObject::saveActiveColors from 0x358dde to 0x358e32 (84 bytes)\n; \n; 0 xrefs:\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            {R3-R5,LR}                                             ; +0x0, 0x358dde\nMOV             R4, R0                                                 ; +0x2, 0x358de0\nBL              _ZN10GameObject16saveActiveColorsEv; GameObject::saveActiveColors(void) ; +0x4, 0x358de2\nLDRB.W          R3, [R4,#0x4C4]                                        ; +0x8, 0x358de6\nADDW            R5, R4, #0x48C                                         ; +0xc, 0x358dea\nCBZ             R3, loc_358E16                                         ; +0x10, 0x358dee\nVLDR            S15, [R5]                                              ; +0x12, 0x358df0\nVCMPE.F32       S15, #0.0                                              ; +0x16, 0x358df4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1a, 0x358df8\nBHI             loc_358E20                                             ; +0x1e, 0x358dfc\nLDRB.W          R3, [R4,#0x49C]                                        ; +0x20, 0x358dfe\nCBNZ            R3, loc_358E20                                         ; +0x24, 0x358e02\nBLX             rand                                                   ; +0x26, 0x358e04\nVMOV            S15, R0                                                ; +0x2a, 0x358e08\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x2e, 0x358e0c\nVSTR            S15, [R5]                                              ; +0x32, 0x358e10\nB               loc_358E20                                             ; +0x36, 0x358e14\nADD.W           R2, R4, #0x490                                         ; +0x38, 0x358e16\nMOVS            R3, #0                                                 ; +0x3c, 0x358e1a\nSTR             R3, [R5]                                               ; +0x3e, 0x358e1c\nSTR             R3, [R2]                                               ; +0x40, 0x358e1e\nLDRB.W          R3, [R4,#0x4AE]                                        ; +0x42, 0x358e20\nCBZ             R3, locret_358E30                                      ; +0x46, 0x358e24\nMOV             R0, R4; this                                           ; +0x48, 0x358e26\nPOP.W           {R3-R5,LR}                                             ; +0x4a, 0x358e28\nB.W             _ZN18EnhancedGameObject23setupAnimationVariablesEv; EnhancedGameObject::setupAnimationVariables(void) ; +0x4e, 0x358e2c\nPOP             {R3-R5,PC}                                             ; +0x52, 0x358e30", "xrefs": [], "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"}