{"type": "func", "start": 4297696556, "end": 4297696684, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x10029a52c to 0x10029a5ac (128 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x100918f50\n// > <???> @ 0x10094c478\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:02:08 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::opacityForObject(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x21\n  float v5; // s8\n  __int64 v6; // x22\n  int v7; // w0\n\n  if ( *(__int16 *)(a2 + 1168) < 1 )\n    return 1.0;\n  v4 = 0;\n  v5 = 1.0;\n  do\n  {\n    v6 = *(_QWORD *)(a1 + 2152);\n    v7 = sub_1002FA6C4(a2, v4);\n    v5 = v5 * sub_1000146B0(v6, v7);\n    v4 = (unsigned int)(v4 + 1);\n  }\n  while ( (int)v4 < *(__int16 *)(a2 + 1168) );\n  return v5;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x10029a52c to 0x10029a5ac (128 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x100918f50\n; > <???> @ 0x10094c478\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:02:08 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x10029a52c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10029a530\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10029a534\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10029a538\nADD             X29, SP, #0x30                                         ; +0x10, 0x10029a53c\nLDRSH           W8, [X1,#0x490]                                        ; +0x14, 0x10029a540\nCMP             W8, #1                                                 ; +0x18, 0x10029a544\nB.LT            loc_10029A590                                          ; +0x1c, 0x10029a548\nMOV             X19, X1                                                ; +0x20, 0x10029a54c\nMOV             X20, X0                                                ; +0x24, 0x10029a550\nMOV             W21, #0                                                ; +0x28, 0x10029a554\nFMOV            S8, #1.0                                               ; +0x2c, 0x10029a558\nLDR             X22, [X20,#0x868]                                      ; +0x30, 0x10029a55c\nMOV             X0, X19                                                ; +0x34, 0x10029a560\nMOV             X1, X21                                                ; +0x38, 0x10029a564\nBL              sub_1002FA6C4                                          ; +0x3c, 0x10029a568\nMOV             X1, X0                                                 ; +0x40, 0x10029a56c\nMOV             X0, X22                                                ; +0x44, 0x10029a570\nBL              sub_1000146B0                                          ; +0x48, 0x10029a574\nFMUL            S8, S8, S0                                             ; +0x4c, 0x10029a578\nADD             W21, W21, #1                                           ; +0x50, 0x10029a57c\nLDRSH           W8, [X19,#0x490]                                       ; +0x54, 0x10029a580\nCMP             W21, W8                                                ; +0x58, 0x10029a584\nB.LT            loc_10029A55C                                          ; +0x5c, 0x10029a588\nB               loc_10029A594                                          ; +0x60, 0x10029a58c\nFMOV            S8, #1.0                                               ; +0x64, 0x10029a590\nFMOV            S0, S8                                                 ; +0x68, 0x10029a594\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x6c, 0x10029a598\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x70, 0x10029a59c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x74, 0x10029a5a0\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x78, 0x10029a5a4\nRET                                                                    ; +0x7c, 0x10029a5a8", "xrefs": ["<???> @ 0x100918f50", "<???> @ 0x10094c478"], "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"}