{"type": "func", "start": 4298110400, "end": 4298110520, "name": "GameObject::opacityModForMode", "pseudocode": "// \n// GameObject::opacityModForMode from 0x1002ff5c0 to 0x1002ff638 (120 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::updateVisibility @ 0x100145790\n// > PlayLayer::updateVisibility @ 0x100145860\n// > GameObject::updateMainColor @ 0x1002ff4a0\n// > GameObject::updateSecondaryColor @ 0x1002ff698\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:04 +0000\n// \n\nfloat __fastcall GameObject::opacityModForMode(__int64 a1, int a2, int 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 *)(*(_QWORD *)(a1 + v3) + 316LL);\n    if ( v4 >= 0xFA )\n      v5 = 1.0;\n    else\n      v5 = (float)v4 * 0.004;\n  }\n  if ( *(__int16 *)(a1 + 1200) >= 1 )\n    return v5 * GameObject::groupOpacityMod(a1);\n  return v5;\n}", "assembly": "; \n; GameObject::opacityModForMode from 0x1002ff5c0 to 0x1002ff638 (120 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::updateVisibility @ 0x100145790\n; > PlayLayer::updateVisibility @ 0x100145860\n; > GameObject::updateMainColor @ 0x1002ff4a0\n; > GameObject::updateSecondaryColor @ 0x1002ff698\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:04 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_10]!                            ; +0x0, 0x1002ff5c0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002ff5c4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002ff5c8\nCMP             W1, #1                                                 ; +0xc, 0x1002ff5cc\nB.LT            loc_1002FF610                                          ; +0x10, 0x1002ff5d0\nCMP             W2, #0                                                 ; +0x14, 0x1002ff5d4\nMOV             W8, #0x4F8                                             ; +0x18, 0x1002ff5d8\nMOV             W9, #0x4F0                                             ; +0x1c, 0x1002ff5dc\nCSEL            X8, X9, X8, NE                                         ; +0x20, 0x1002ff5e0\nLDR             X8, [X0,X8]                                            ; +0x24, 0x1002ff5e4\nLDR             S0, [X8,#0x13C]                                        ; +0x28, 0x1002ff5e8\nFCVTZS          W8, S0                                                 ; +0x2c, 0x1002ff5ec\nUCVTF           S0, W8                                                 ; +0x30, 0x1002ff5f0\nADRP            X9, #dword_10075CE38@PAGE                              ; +0x34, 0x1002ff5f4\nLDR             S1, [X9,#dword_10075CE38@PAGEOFF]                      ; +0x38, 0x1002ff5f8\nFMUL            S0, S0, S1                                             ; +0x3c, 0x1002ff5fc\nCMP             W8, #0xFA                                              ; +0x40, 0x1002ff600\nFMOV            S1, #1.0                                               ; +0x44, 0x1002ff604\nFCSEL           S8, S0, S1, CC                                         ; +0x48, 0x1002ff608\nB               loc_1002FF614                                          ; +0x4c, 0x1002ff60c\nFMOV            S8, #1.0                                               ; +0x50, 0x1002ff610\nLDRSH           W8, [X0,#0x4B0]                                        ; +0x54, 0x1002ff614\nCMP             W8, #1                                                 ; +0x58, 0x1002ff618\nB.LT            loc_1002FF628                                          ; +0x5c, 0x1002ff61c\nBL              GameObject__groupOpacityMod                            ; +0x60, 0x1002ff620\nFMUL            S8, S8, S0                                             ; +0x64, 0x1002ff624\nFMOV            S0, S8                                                 ; +0x68, 0x1002ff628\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x1002ff62c\nLDP             D9, D8, [SP+0x10+var_10],#0x20                         ; +0x70, 0x1002ff630\nRET                                                                    ; +0x74, 0x1002ff634", "xrefs": ["PlayLayer::updateVisibility @ 0x100145790", "PlayLayer::updateVisibility @ 0x100145860", "GameObject::updateMainColor @ 0x1002ff4a0", "GameObject::updateSecondaryColor @ 0x1002ff698"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}