{"type": "func", "start": 4297057268, "end": 4297057396, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x1001fe3f4 to 0x1001fe474 (128 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1007c0b48\n// > <???> @ 0x1007f42a8\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 GJBaseGameLayer::opacityForObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int v4; // w21\n  float v5; // s8\n  GJEffectManager *m_effectManager; // x22\n  int GroupID; // w0\n\n  if ( a2->m_groupCount < 1 )\n    return 1.0;\n  v4 = 0;\n  v5 = 1.0;\n  do\n  {\n    m_effectManager = a1->m_effectManager;\n    GroupID = GameObject::getGroupID(a2, v4);\n    v5 = v5 * GJEffectManager::opacityModForGroup(m_effectManager, GroupID);\n    ++v4;\n  }\n  while ( v4 < a2->m_groupCount );\n  return v5;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x1001fe3f4 to 0x1001fe474 (128 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1007c0b48\n; > <???> @ 0x1007f42a8\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_30]!                            ; +0x0, 0x1001fe3f4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1001fe3f8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001fe3fc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001fe400\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001fe404\nLDRSH           W8, [X1,#0x490]                                        ; +0x14, 0x1001fe408\nCMP             W8, #1                                                 ; +0x18, 0x1001fe40c\nB.LT            loc_1001FE458                                          ; +0x1c, 0x1001fe410\nMOV             X19, X1                                                ; +0x20, 0x1001fe414\nMOV             X20, X0                                                ; +0x24, 0x1001fe418\nMOV             W21, #0                                                ; +0x28, 0x1001fe41c\nFMOV            S8, #1.0                                               ; +0x2c, 0x1001fe420\nLDR             X22, [X20,#0x878]                                      ; +0x30, 0x1001fe424\nMOV             X0, X19                                                ; +0x34, 0x1001fe428\nMOV             X1, X21                                                ; +0x38, 0x1001fe42c\nBL              GameObject__getGroupID                                 ; +0x3c, 0x1001fe430\nMOV             X1, X0                                                 ; +0x40, 0x1001fe434\nMOV             X0, X22                                                ; +0x44, 0x1001fe438\nBL              GJEffectManager__opacityModForGroup                    ; +0x48, 0x1001fe43c\nFMUL            S8, S8, S0                                             ; +0x4c, 0x1001fe440\nADD             W21, W21, #1                                           ; +0x50, 0x1001fe444\nLDRSH           W8, [X19,#0x490]                                       ; +0x54, 0x1001fe448\nCMP             W21, W8                                                ; +0x58, 0x1001fe44c\nB.LT            loc_1001FE424                                          ; +0x5c, 0x1001fe450\nB               loc_1001FE45C                                          ; +0x60, 0x1001fe454\nFMOV            S8, #1.0                                               ; +0x64, 0x1001fe458\nFMOV            S0, S8                                                 ; +0x68, 0x1001fe45c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x6c, 0x1001fe460\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x70, 0x1001fe464\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x74, 0x1001fe468\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x78, 0x1001fe46c\nRET                                                                    ; +0x7c, 0x1001fe470", "xrefs": ["<???> @ 0x1007c0b48", "<???> @ 0x1007f42a8"], "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"}