{"type": "func", "start": 4297466628, "end": 4297466748, "name": "GameObject::opacityModForMode", "pseudocode": "// \n// GameObject::opacityModForMode from 0x100262304 to 0x10026237c (120 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::updateVisibility @ 0x10011c73c\n// > PlayLayer::updateVisibility @ 0x10011c80c\n// > GameObject::updateMainColor @ 0x1002621e4\n// > GameObject::updateSecondaryColor @ 0x1002623dc\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\nfloat __fastcall GameObject::opacityModForMode(GameObject *a1, int a2, bool a3)\n{\n  __int64 v3; // x8\n  unsigned int v4; // w8\n  float v5; // s8\n\n  if ( a2 < 1 )\n  {\n    v5 = 1.0;\n  }\n  else\n  {\n    v3 = 1272;\n    if ( a3 )\n      v3 = 1264;\n    v4 = (int)*((float *)&(*(GameObject_vtbl **)((char *)&a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                               + v3))->getContentSize\n              + 1);\n    if ( v4 >= 0xFA )\n      v5 = 1.0;\n    else\n      v5 = (float)v4 * 0.004;\n  }\n  if ( a1->m_opacityGroupCount >= 1 )\n    return v5 * GameObject::groupOpacityMod(a1);\n  return v5;\n}", "assembly": "; \n; GameObject::opacityModForMode from 0x100262304 to 0x10026237c (120 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::updateVisibility @ 0x10011c73c\n; > PlayLayer::updateVisibility @ 0x10011c80c\n; > GameObject::updateMainColor @ 0x1002621e4\n; > GameObject::updateSecondaryColor @ 0x1002623dc\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             D9, D8, [SP,#-0x10+var_10]!                            ; +0x0, 0x100262304\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100262308\nADD             X29, SP, #0x10                                         ; +0x8, 0x10026230c\nCMP             W1, #1                                                 ; +0xc, 0x100262310\nB.LT            loc_100262354                                          ; +0x10, 0x100262314\nCMP             W2, #0                                                 ; +0x14, 0x100262318\nMOV             W8, #0x4F8                                             ; +0x18, 0x10026231c\nMOV             W9, #0x4F0                                             ; +0x1c, 0x100262320\nCSEL            X8, X9, X8, NE                                         ; +0x20, 0x100262324\nLDR             X8, [X0,X8]                                            ; +0x24, 0x100262328\nLDR             S0, [X8,#0x13C]                                        ; +0x28, 0x10026232c\nFCVTZS          W8, S0                                                 ; +0x2c, 0x100262330\nUCVTF           S0, W8                                                 ; +0x30, 0x100262334\nADRP            X9, #dword_100635D30@PAGE                              ; +0x34, 0x100262338\nLDR             S1, [X9,#dword_100635D30@PAGEOFF]                      ; +0x38, 0x10026233c\nFMUL            S0, S0, S1                                             ; +0x3c, 0x100262340\nCMP             W8, #0xFA                                              ; +0x40, 0x100262344\nFMOV            S1, #1.0                                               ; +0x44, 0x100262348\nFCSEL           S8, S0, S1, CC                                         ; +0x48, 0x10026234c\nB               loc_100262358                                          ; +0x4c, 0x100262350\nFMOV            S8, #1.0                                               ; +0x50, 0x100262354\nLDRSH           W8, [X0,#0x4B0]                                        ; +0x54, 0x100262358\nCMP             W8, #1                                                 ; +0x58, 0x10026235c\nB.LT            loc_10026236C                                          ; +0x5c, 0x100262360\nBL              GameObject__groupOpacityMod                            ; +0x60, 0x100262364\nFMUL            S8, S8, S0                                             ; +0x64, 0x100262368\nFMOV            S0, S8                                                 ; +0x68, 0x10026236c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x100262370\nLDP             D9, D8, [SP+0x10+var_10],#0x20                         ; +0x70, 0x100262374\nRET                                                                    ; +0x74, 0x100262378", "xrefs": ["PlayLayer::updateVisibility @ 0x10011c73c", "PlayLayer::updateVisibility @ 0x10011c80c", "GameObject::updateMainColor @ 0x1002621e4", "GameObject::updateSecondaryColor @ 0x1002623dc"], "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"}