{"type": "func", "start": 8738580, "end": 8738708, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x855714 to 0x855794 (128 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xc1848\n// > <???> @ 0x1155238\n// > <???> @ 0x11906b8\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 GJBaseGameLayer::opacityForObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  float v4; // s8\n  int v5; // w19\n  int v6; // w1\n  GJEffectManager *m_effectManager; // x21\n  int GroupID; // w0\n\n  if ( a2->m_groupCount <= 0 )\n    return 1.0;\n  v4 = 1.0;\n  v5 = 0;\n  do\n  {\n    v6 = v5;\n    m_effectManager = a1->m_effectManager;\n    ++v5;\n    GroupID = GameObject::getGroupID(a2, v6);\n    v4 = v4 * GJEffectManager::opacityModForGroup(m_effectManager, GroupID);\n  }\n  while ( a2->m_groupCount > v5 );\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x855714 to 0x855794 (128 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xc1848\n; > <???> @ 0x1155238\n; > <???> @ 0x11906b8\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_40]!                                ; +0x0, 0x855714\nMOV             X29, SP                                                ; +0x4, 0x855718\nLDRSH           W2, [X1,#0x480]                                        ; +0x8, 0x85571c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x855720\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x10, 0x855724\nCMP             W2, WZR                                                ; +0x14, 0x855728\nSTR             D8, [SP,#0x40+var_10]                                  ; +0x18, 0x85572c\nB.LE            loc_85578C                                             ; +0x1c, 0x855730\nMOV             X22, X0                                                ; +0x20, 0x855734\nMOV             X20, X1                                                ; +0x24, 0x855738\nFMOV            S8, #1.0                                               ; +0x28, 0x85573c\nMOV             W19, #0                                                ; +0x2c, 0x855740\nMOV             W1, W19; int                                           ; +0x30, 0x855744\nMOV             X0, X20; this                                          ; +0x34, 0x855748\nLDR             X21, [X22,#0x9A8]                                      ; +0x38, 0x85574c\nADD             W19, W19, #1                                           ; +0x3c, 0x855750\nBL              _ZN10GameObject10getGroupIDEi; GameObject::getGroupID(int) ; +0x40, 0x855754\nMOV             W1, W0; int                                            ; +0x44, 0x855758\nMOV             X0, X21; this                                          ; +0x48, 0x85575c\nBL              _ZN15GJEffectManager18opacityModForGroupEi; GJEffectManager::opacityModForGroup(int) ; +0x4c, 0x855760\nLDRSH           W1, [X20,#0x480]                                       ; +0x50, 0x855764\nFMUL            S8, S8, S0                                             ; +0x54, 0x855768\nCMP             W1, W19                                                ; +0x58, 0x85576c\nB.GT            loc_855744                                             ; +0x5c, 0x855770\nFMOV            S0, S8                                                 ; +0x60, 0x855774\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x64, 0x855778\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x68, 0x85577c\nLDR             D8, [SP,#0x40+var_10]                                  ; +0x6c, 0x855780\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x70, 0x855784\nRET                                                                    ; +0x74, 0x855788\nFMOV            S8, #1.0                                               ; +0x78, 0x85578c\nB               loc_855774                                             ; +0x7c, 0x855790", "xrefs": ["<???> @ 0xc1848", "<???> @ 0x1155238", "<???> @ 0x11906b8"], "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"}