{"type": "func", "start": 7906556, "end": 7906836, "name": "EndPortalObject::updateColors", "pseudocode": "// \n// EndPortalObject::updateColors from 0x78a4fc to 0x78a614 (280 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x5d801c\n// > <???> @ 0x7cbf0\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\n// local variable allocation has failed, the output may be wrong!\nvoid EndPortalObject::updateColors(EndPortalObject *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCParticleSystemQuad *m_particle; // x5\n  void (__fastcall *setStartColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // x2\n  cocos2d::CCParticleSystemQuad *v5; // x0\n  void (__fastcall *setEndColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // x2\n  __int64 v7; // [xsp+48h] [xbp+48h] BYREF\n  float v8; // [xsp+58h] [xbp+58h] BYREF\n  float v9; // [xsp+5Ch] [xbp+5Ch]\n  float v10; // [xsp+60h] [xbp+60h]\n  float v11; // [xsp+64h] [xbp+64h]\n\n  v7 = *(_QWORD *)&a2.r;\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    setStartColor = m_particle->setStartColor;\n    v11 = 1.0;\n    v9 = (float)BYTE1(v7) / 255.0;\n    v10 = (float)BYTE2(v7) / 255.0;\n    v8 = (float)(unsigned __int8)v7 / 255.0;\n    setStartColor(m_particle, (const cocos2d::ccColor4F *)&v8);\n    v5 = a1->m_particle;\n    setEndColor = v5->setEndColor;\n    v11 = 1.0;\n    v9 = (float)BYTE1(v7) / 255.0;\n    v10 = (float)BYTE2(v7) / 255.0;\n    v8 = (float)(unsigned __int8)v7 / 255.0;\n    setEndColor(v5, (const cocos2d::ccColor4F *)&v8);\n  }\n  a1->m_gradientBar->setColor(a1->m_gradientBar, (const cocos2d::ccColor3B *)&v7);\n}", "assembly": "; \n; EndPortalObject::updateColors from 0x78a4fc to 0x78a614 (280 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x5d801c\n; > <???> @ 0x7cbf0\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             X29, X30, [SP,#var_70]!                                ; +0x0, 0x78a4fc\nMOV             X29, SP                                                ; +0x4, 0x78a500\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x78a504\nSTP             D8, D9, [SP,#0x70+var_48]                              ; +0xc, 0x78a508\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x78a50c\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x14, 0x78a510\nMOV             X21, X0                                                ; +0x18, 0x78a514\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x1c, 0x78a518\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x78a51c\nLDR             X5, [X21,#0x308]                                       ; +0x24, 0x78a520\nLDR             X0, [X0]                                               ; +0x28, 0x78a524\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x2c, 0x78a528\nCBZ             X5, loc_78A5D0                                         ; +0x30, 0x78a52c\nLDRB            W4, [X29,#0x70+var_28+1]                               ; +0x34, 0x78a530\nADD             X20, X29, #0x70+var_18                                 ; +0x38, 0x78a534\nLDRB            W2, [X29,#0x70+var_28+2]                               ; +0x3c, 0x78a538\nMOV             X0, X5                                                 ; +0x40, 0x78a53c\nLDRB            W3, [X29,#0x70+var_28]                                 ; +0x44, 0x78a540\nMOV             X1, X20                                                ; +0x48, 0x78a544\nSCVTF           S2, W4                                                 ; +0x4c, 0x78a548\nLDR             X4, [X5]                                               ; +0x50, 0x78a54c\nSCVTF           S1, W2                                                 ; +0x54, 0x78a550\nSCVTF           S0, W3                                                 ; +0x58, 0x78a554\nLDR             S8, =0x437F0000                                        ; +0x5c, 0x78a558\nLDR             X2, [X4,#0x540]                                        ; +0x60, 0x78a55c\nFMOV            S9, #1.0                                               ; +0x64, 0x78a560\nFDIV            S2, S2, S8                                             ; +0x68, 0x78a564\nSTR             S9, [X29,#0x70+var_C]                                  ; +0x6c, 0x78a568\nFDIV            S1, S1, S8                                             ; +0x70, 0x78a56c\nFDIV            S0, S0, S8                                             ; +0x74, 0x78a570\nSTR             S2, [X29,#0x70+var_14]                                 ; +0x78, 0x78a574\nSTR             S1, [X29,#0x70+var_10]                                 ; +0x7c, 0x78a578\nSTR             S0, [X29,#0x70+var_18]                                 ; +0x80, 0x78a57c\nBLR             X2                                                     ; +0x84, 0x78a580\nLDRB            W3, [X29,#0x70+var_28+1]                               ; +0x88, 0x78a584\nMOV             X1, X20                                                ; +0x8c, 0x78a588\nLDRB            W2, [X29,#0x70+var_28+2]                               ; +0x90, 0x78a58c\nLDRB            W0, [X29,#0x70+var_28]                                 ; +0x94, 0x78a590\nSCVTF           S2, W3                                                 ; +0x98, 0x78a594\nLDR             X3, [X21,#0x308]                                       ; +0x9c, 0x78a598\nSCVTF           S1, W2                                                 ; +0xa0, 0x78a59c\nSCVTF           S0, W0                                                 ; +0xa4, 0x78a5a0\nMOV             X0, X3                                                 ; +0xa8, 0x78a5a4\nLDR             X2, [X3]                                               ; +0xac, 0x78a5a8\nFDIV            S2, S2, S8                                             ; +0xb0, 0x78a5ac\nLDR             X2, [X2,#0x560]                                        ; +0xb4, 0x78a5b0\nSTR             S9, [X29,#0x70+var_C]                                  ; +0xb8, 0x78a5b4\nFDIV            S1, S1, S8                                             ; +0xbc, 0x78a5b8\nFDIV            S8, S0, S8                                             ; +0xc0, 0x78a5bc\nSTR             S2, [X29,#0x70+var_14]                                 ; +0xc4, 0x78a5c0\nSTR             S1, [X29,#0x70+var_10]                                 ; +0xc8, 0x78a5c4\nSTR             S8, [X29,#0x70+var_18]                                 ; +0xcc, 0x78a5c8\nBLR             X2                                                     ; +0xd0, 0x78a5cc\nLDR             X2, [X21,#0x538]                                       ; +0xd4, 0x78a5d0\nADD             X1, X29, #0x70+var_28                                  ; +0xd8, 0x78a5d4\nMOV             X0, X2                                                 ; +0xdc, 0x78a5d8\nLDR             X2, [X2]                                               ; +0xe0, 0x78a5dc\nLDR             X2, [X2,#0x3B0]                                        ; +0xe4, 0x78a5e0\nBLR             X2                                                     ; +0xe8, 0x78a5e4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xec, 0x78a5e8\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xf0, 0x78a5ec\nLDR             X0, [X19]                                              ; +0xf4, 0x78a5f0\nCMP             X1, X0                                                 ; +0xf8, 0x78a5f4\nB.NE            loc_78A610                                             ; +0xfc, 0x78a5f8\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x100, 0x78a5fc\nLDP             D8, D9, [SP,#0x70+var_48]                              ; +0x104, 0x78a600\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x108, 0x78a604\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x10c, 0x78a608\nRET                                                                    ; +0x110, 0x78a60c\nBL              .__stack_chk_fail                                      ; +0x114, 0x78a610", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x5d801c", "<???> @ 0x7cbf0"], "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"}