{"type": "func", "start": 4637068, "end": 4637142, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x46c18c to 0x46c1d6 (74 bytes)\n// \n// 0 xrefs:\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; // s16\n  int i; // r4\n  GJEffectManager *m_effectManager; // r7\n  int GroupID; // r0\n\n  v4 = 1.0;\n  if ( a2->m_groupCount > 0 )\n  {\n    for ( i = 0; i < a2->m_groupCount; ++i )\n    {\n      m_effectManager = a1->m_effectManager;\n      GroupID = GameObject::getGroupID(a2, i);\n      v4 = v4 * GJEffectManager::opacityModForGroup(m_effectManager, GroupID);\n    }\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x46c18c to 0x46c1d6 (74 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x46c18c\nMOV             R6, R0                                                 ; +0x2, 0x46c18e\nLDRSH.W         R3, [R1,#0x3F4]                                        ; +0x4, 0x46c190\nMOV             R5, R1                                                 ; +0x8, 0x46c194\nVPUSH           {D8}                                                   ; +0xa, 0x46c196\nCMP             R3, #0                                                 ; +0xe, 0x46c19a\nVMOV.F32        S16, #1.0                                              ; +0x10, 0x46c19c\nBLE             loc_46C1CC                                             ; +0x14, 0x46c1a0\nMOVS            R4, #0                                                 ; +0x16, 0x46c1a2\nLDRSH.W         R3, [R5,#0x3F4]                                        ; +0x18, 0x46c1a4\nCMP             R4, R3                                                 ; +0x1c, 0x46c1a8\nBGE             loc_46C1CC                                             ; +0x1e, 0x46c1aa\nMOV             R1, R4; int                                            ; +0x20, 0x46c1ac\nMOV             R0, R5; this                                           ; +0x22, 0x46c1ae\nLDR.W           R7, [R6,#0x690]                                        ; +0x24, 0x46c1b0\nBL              _ZN10GameObject10getGroupIDEi; GameObject::getGroupID(int) ; +0x28, 0x46c1b4\nADDS            R4, #1                                                 ; +0x2c, 0x46c1b8\nMOV             R1, R0; int                                            ; +0x2e, 0x46c1ba\nMOV             R0, R7; this                                           ; +0x30, 0x46c1bc\nBL              _ZN15GJEffectManager18opacityModForGroupEi; GJEffectManager::opacityModForGroup(int) ; +0x32, 0x46c1be\nVMOV            S15, R0                                                ; +0x36, 0x46c1c2\nVMUL.F32        S16, S16, S15                                          ; +0x3a, 0x46c1c6\nB               loc_46C1A4                                             ; +0x3e, 0x46c1ca\nVMOV            R0, S16                                                ; +0x40, 0x46c1cc\nVPOP            {D8}                                                   ; +0x44, 0x46c1d0\nPOP             {R3-R7,PC}                                             ; +0x48, 0x46c1d4", "xrefs": [], "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"}