{"type": "func", "start": 4297470376, "end": 4297470492, "name": "EnhancedGameObject::saveActiveColors", "pseudocode": "// \n// EnhancedGameObject::saveActiveColors from 0x1002631a8 to 0x10026321c (116 bytes)\n// \n// 42 xrefs:\n// > <???> @ 0x1007d06b0\n// > <???> @ 0x1007f5730\n// > <???> @ 0x1007f5f68\n// > <???> @ 0x1007f6760\n// > <???> @ 0x1007f6f58\n// > <???> @ 0x1007f7750\n// > <???> @ 0x1007f7f48\n// > <???> @ 0x1007f8740\n// > <???> @ 0x1007f9720\n// > <???> @ 0x1007f9f30\n// > <???> @ 0x1007fa798\n// > <???> @ 0x1007fafa8\n// > <???> @ 0x1007fb7b8\n// > <???> @ 0x1007fbfc8\n// > <???> @ 0x1007fc7d8\n// > <???> @ 0x1007fcfe8\n// > <???> @ 0x1007fd7f8\n// > <???> @ 0x1007fe008\n// > <???> @ 0x1007fe818\n// > <???> @ 0x1007ff028\n// > <???> @ 0x1007ff850\n// > <???> @ 0x1008000a8\n// > <???> @ 0x1008008d0\n// > <???> @ 0x1008010f8\n// > <???> @ 0x100801920\n// > <???> @ 0x100802148\n// > <???> @ 0x100802958\n// > <???> @ 0x100803168\n// > <???> @ 0x100803978\n// > <???> @ 0x100804188\n// > <???> @ 0x100804998\n// > <???> @ 0x1008051a8\n// > <???> @ 0x1008059b8\n// > <???> @ 0x1008061c8\n// > <???> @ 0x1008069d8\n// > <???> @ 0x1008071e8\n// > <???> @ 0x1008079f8\n// > <???> @ 0x100808208\n// > <???> @ 0x100808a18\n// > <???> @ 0x100809228\n// > <???> @ 0x100809a38\n// > <???> @ 0x10080a248\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 EnhancedGameObject::saveActiveColors(EnhancedGameObject *a1)\n{\n  GameObject::saveActiveColors(a1);\n  if ( a1->m_animationRandomizedStart )\n  {\n    if ( *(float *)&a1->m_animationRandomizedStartValue <= 0.0 && !a1->m_unk548 )\n      *(float *)&a1->m_animationRandomizedStartValue = vcvts_n_f32_s32(rand(), 0x1Fu);\n  }\n  else\n  {\n    *(_QWORD *)&a1->m_animationRandomizedStartValue = 0;\n  }\n  if ( a1->m_hasCustomAnimation )\n    EnhancedGameObject::setupAnimationVariables(a1);\n}", "assembly": "; \n; EnhancedGameObject::saveActiveColors from 0x1002631a8 to 0x10026321c (116 bytes)\n; \n; 42 xrefs:\n; > <???> @ 0x1007d06b0\n; > <???> @ 0x1007f5730\n; > <???> @ 0x1007f5f68\n; > <???> @ 0x1007f6760\n; > <???> @ 0x1007f6f58\n; > <???> @ 0x1007f7750\n; > <???> @ 0x1007f7f48\n; > <???> @ 0x1007f8740\n; > <???> @ 0x1007f9720\n; > <???> @ 0x1007f9f30\n; > <???> @ 0x1007fa798\n; > <???> @ 0x1007fafa8\n; > <???> @ 0x1007fb7b8\n; > <???> @ 0x1007fbfc8\n; > <???> @ 0x1007fc7d8\n; > <???> @ 0x1007fcfe8\n; > <???> @ 0x1007fd7f8\n; > <???> @ 0x1007fe008\n; > <???> @ 0x1007fe818\n; > <???> @ 0x1007ff028\n; > <???> @ 0x1007ff850\n; > <???> @ 0x1008000a8\n; > <???> @ 0x1008008d0\n; > <???> @ 0x1008010f8\n; > <???> @ 0x100801920\n; > <???> @ 0x100802148\n; > <???> @ 0x100802958\n; > <???> @ 0x100803168\n; > <???> @ 0x100803978\n; > <???> @ 0x100804188\n; > <???> @ 0x100804998\n; > <???> @ 0x1008051a8\n; > <???> @ 0x1008059b8\n; > <???> @ 0x1008061c8\n; > <???> @ 0x1008069d8\n; > <???> @ 0x1008071e8\n; > <???> @ 0x1008079f8\n; > <???> @ 0x100808208\n; > <???> @ 0x100808a18\n; > <???> @ 0x100809228\n; > <???> @ 0x100809a38\n; > <???> @ 0x10080a248\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002631a8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002631ac\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002631b0\nMOV             X19, X0                                                ; +0xc, 0x1002631b4\nBL              GameObject__saveActiveColors                           ; +0x10, 0x1002631b8\nLDRB            W8, [X19,#0x580]                                       ; +0x14, 0x1002631bc\nCMP             W8, #1                                                 ; +0x18, 0x1002631c0\nB.NE            loc_1002631EC                                          ; +0x1c, 0x1002631c4\nLDR             S0, [X19,#0x548]                                       ; +0x20, 0x1002631c8\nFCMP            S0, #0.0                                               ; +0x24, 0x1002631cc\nB.HI            loc_1002631F4                                          ; +0x28, 0x1002631d0\nLDRB            W8, [X19,#0x558]                                       ; +0x2c, 0x1002631d4\nTBNZ            W8, #0, loc_1002631F4                                  ; +0x30, 0x1002631d8\nBL              _rand                                                  ; +0x34, 0x1002631dc\nSCVTF           S0, W0, #0x1F                                          ; +0x38, 0x1002631e0\nSTR             S0, [X19,#0x548]                                       ; +0x3c, 0x1002631e4\nB               loc_1002631F4                                          ; +0x40, 0x1002631e8\nMOVI            D0, #0                                                 ; +0x44, 0x1002631ec\nSTR             D0, [X19,#0x548]                                       ; +0x48, 0x1002631f0\nLDRB            W8, [X19,#0x56A]                                       ; +0x4c, 0x1002631f4\nCMP             W8, #1                                                 ; +0x50, 0x1002631f8\nB.NE            loc_100263210                                          ; +0x54, 0x1002631fc\nMOV             X0, X19                                                ; +0x58, 0x100263200\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x100263204\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x100263208\nB               EnhancedGameObject__setupAnimationVariables            ; +0x64, 0x10026320c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x100263210\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x100263214\nRET                                                                    ; +0x70, 0x100263218", "xrefs": ["<???> @ 0x1007d06b0", "<???> @ 0x1007f5730", "<???> @ 0x1007f5f68", "<???> @ 0x1007f6760", "<???> @ 0x1007f6f58", "<???> @ 0x1007f7750", "<???> @ 0x1007f7f48", "<???> @ 0x1007f8740", "<???> @ 0x1007f9720", "<???> @ 0x1007f9f30", "<???> @ 0x1007fa798", "<???> @ 0x1007fafa8", "<???> @ 0x1007fb7b8", "<???> @ 0x1007fbfc8", "<???> @ 0x1007fc7d8", "<???> @ 0x1007fcfe8", "<???> @ 0x1007fd7f8", "<???> @ 0x1007fe008", "<???> @ 0x1007fe818", "<???> @ 0x1007ff028", "<???> @ 0x1007ff850", "<???> @ 0x1008000a8", "<???> @ 0x1008008d0", "<???> @ 0x1008010f8", "<???> @ 0x100801920", "<???> @ 0x100802148", "<???> @ 0x100802958", "<???> @ 0x100803168", "<???> @ 0x100803978", "<???> @ 0x100804188", "<???> @ 0x100804998", "<???> @ 0x1008051a8", "<???> @ 0x1008059b8", "<???> @ 0x1008061c8", "<???> @ 0x1008069d8", "<???> @ 0x1008071e8", "<???> @ 0x1008079f8", "<???> @ 0x100808208", "<???> @ 0x100808a18", "<???> @ 0x100809228", "<???> @ 0x100809a38", "<???> @ 0x10080a248"], "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"}