{"type": "func", "start": 4299155916, "end": 4299156120, "name": "EndPortalObject::updateColors", "pseudocode": "// \n// EndPortalObject::updateColors from 0x1003fe9cc to 0x1003fea98 (204 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x10011c1e0\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 __fastcall EndPortalObject::updateColors(EndPortalObject *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCParticleSystemQuad *m_particle; // x0\n  float v4; // s8\n  float32x2_t v5; // d9\n  cocos2d::CCParticleSystemQuad *v6; // x0\n  float v7; // [xsp+Ch] [xbp-34h] BYREF\n  float32x2_t v8; // [xsp+10h] [xbp-30h]\n  int v9; // [xsp+18h] [xbp-28h]\n  cocos2d::ccColor3B v10; // [xsp+1Ch] [xbp-24h] BYREF\n\n  v10 = a2;\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    v4 = (float)a2.r / 255.0;\n    v7 = v4;\n    v5 = vdiv_f32(\n           vcvt_f32_u32((uint32x2_t)vand_s8(\n                                      (int8x8_t)vshl_u32(\n                                                  (uint32x2_t)vdup_n_s32(*(unsigned int *)&a2.r),\n                                                  (uint32x2_t)0xFFFFFFF0FFFFFFF8LL),\n                                      (int8x8_t)0xFF000000FFLL)),\n           (float32x2_t)vdup_n_s32(0x437F0000u));\n    v8 = v5;\n    v9 = 1065353216;\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float *))m_particle->setStartColor)(m_particle, &v7);\n    v6 = a1->m_particle;\n    v7 = v4;\n    v8 = v5;\n    v9 = 1065353216;\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float *))v6->setEndColor)(v6, &v7);\n  }\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_gradientBar->setColor)(a1->m_gradientBar, &v10);\n}", "assembly": "; \n; EndPortalObject::updateColors from 0x1003fe9cc to 0x1003fea98 (204 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x10011c1e0\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1003fe9cc\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x4, 0x1003fe9d0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1003fe9d4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1003fe9d8\nADD             X29, SP, #0x40                                         ; +0x10, 0x1003fe9dc\nMOV             X19, X0                                                ; +0x14, 0x1003fe9e0\nSTRH            W1, [SP,#0x40+var_24]                                  ; +0x18, 0x1003fe9e4\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x1c, 0x1003fe9e8\nSTRB            W8, [SP,#0x40+var_22]                                  ; +0x20, 0x1003fe9ec\nLDR             X0, [X0,#0x308]                                        ; +0x24, 0x1003fe9f0\nCBZ             X0, loc_1003FEA70                                      ; +0x28, 0x1003fe9f4\nAND             W8, W1, #0xFF                                          ; +0x2c, 0x1003fe9f8\nUCVTF           S0, W8                                                 ; +0x30, 0x1003fe9fc\nMOV             W8, #0x437F0000                                        ; +0x34, 0x1003fea00\nDUP             V1.2S, W8                                              ; +0x38, 0x1003fea04\nFMOV            S2, W8                                                 ; +0x3c, 0x1003fea08\nFDIV            S8, S0, S2                                             ; +0x40, 0x1003fea0c\nDUP             V0.2S, W1                                              ; +0x44, 0x1003fea10\nADRP            X8, #qword_100647478@PAGE                              ; +0x48, 0x1003fea14\nLDR             D2, [X8,#qword_100647478@PAGEOFF]                      ; +0x4c, 0x1003fea18\nUSHL            V0.2S, V0.2S, V2.2S                                    ; +0x50, 0x1003fea1c\nMOVI            D2, #0xFF000000FF                                      ; +0x54, 0x1003fea20\nAND             V0.8B, V0.8B, V2.8B                                    ; +0x58, 0x1003fea24\nSTR             S8, [SP,#0x40+var_34]                                  ; +0x5c, 0x1003fea28\nUCVTF           V0.2S, V0.2S                                           ; +0x60, 0x1003fea2c\nFDIV            V9.2S, V0.2S, V1.2S                                    ; +0x64, 0x1003fea30\nSTUR            D9, [SP,#0x40+var_30]                                  ; +0x68, 0x1003fea34\nMOV             W20, #0x3F800000                                       ; +0x6c, 0x1003fea38\nSTR             W20, [SP,#0x40+var_28]                                 ; +0x70, 0x1003fea3c\nLDR             X8, [X0]                                               ; +0x74, 0x1003fea40\nLDR             X8, [X8,#0x540]                                        ; +0x78, 0x1003fea44\nADD             X1, SP, #0x40+var_34                                   ; +0x7c, 0x1003fea48\nBLR             X8                                                     ; +0x80, 0x1003fea4c\nLDR             X0, [X19,#0x308]                                       ; +0x84, 0x1003fea50\nSTR             S8, [SP,#0x40+var_34]                                  ; +0x88, 0x1003fea54\nSTUR            D9, [SP,#0x40+var_30]                                  ; +0x8c, 0x1003fea58\nSTR             W20, [SP,#0x40+var_28]                                 ; +0x90, 0x1003fea5c\nLDR             X8, [X0]                                               ; +0x94, 0x1003fea60\nLDR             X8, [X8,#0x560]                                        ; +0x98, 0x1003fea64\nADD             X1, SP, #0x40+var_34                                   ; +0x9c, 0x1003fea68\nBLR             X8                                                     ; +0xa0, 0x1003fea6c\nLDR             X0, [X19,#0x548]                                       ; +0xa4, 0x1003fea70\nLDR             X8, [X0]                                               ; +0xa8, 0x1003fea74\nLDR             X8, [X8,#0x3B0]                                        ; +0xac, 0x1003fea78\nADD             X1, SP, #0x40+var_24                                   ; +0xb0, 0x1003fea7c\nBLR             X8                                                     ; +0xb4, 0x1003fea80\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xb8, 0x1003fea84\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xbc, 0x1003fea88\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0xc0, 0x1003fea8c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xc4, 0x1003fea90\nRET                                                                    ; +0xc8, 0x1003fea94", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x10011c1e0"], "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"}