{"type": "func", "start": 9129784, "end": 9130064, "name": "EndPortalObject::updateColors", "pseudocode": "// \n// EndPortalObject::updateColors from 0x8b4f38 to 0x8b5050 (280 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x6fde8c\n// > <???> @ 0xa6780\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 12:56:24 +0000\n// \n\n__int64 __fastcall EndPortalObject::updateColors(__int64 a1, __int64 a2)\n{\n  __int64 v3; // x5\n  void (__fastcall *v4)(__int64, float *); // x2\n  __int64 v5; // x0\n  void (__fastcall *v6)(__int64, float *); // x2\n  __int64 v8; // [xsp+48h] [xbp+48h] BYREF\n  float v9; // [xsp+58h] [xbp+58h] BYREF\n  float v10; // [xsp+5Ch] [xbp+5Ch]\n  float v11; // [xsp+60h] [xbp+60h]\n  float v12; // [xsp+64h] [xbp+64h]\n\n  v8 = a2;\n  v3 = *(_QWORD *)(a1 + 776);\n  if ( v3 )\n  {\n    v4 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 1360LL);\n    v12 = 1.0;\n    v10 = (float)BYTE1(v8) / 255.0;\n    v11 = (float)BYTE2(v8) / 255.0;\n    v9 = (float)(unsigned __int8)v8 / 255.0;\n    v4(v3, &v9);\n    v5 = *(_QWORD *)(a1 + 776);\n    v6 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 1392LL);\n    v12 = 1.0;\n    v10 = (float)BYTE1(v8) / 255.0;\n    v11 = (float)BYTE2(v8) / 255.0;\n    v9 = (float)(unsigned __int8)v8 / 255.0;\n    v6(v5, &v9);\n  }\n  (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 1352) + 960LL))(*(_QWORD *)(a1 + 1352), &v8);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EndPortalObject::updateColors from 0x8b4f38 to 0x8b5050 (280 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x6fde8c\n; > <???> @ 0xa6780\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 12:56:24 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x8b4f38\nMOV             X29, SP                                                ; +0x4, 0x8b4f3c\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x8b4f40\nSTP             D8, D9, [SP,#0x70+var_48]                              ; +0xc, 0x8b4f44\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8b4f48\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x14, 0x8b4f4c\nMOV             X21, X0                                                ; +0x18, 0x8b4f50\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x1c, 0x8b4f54\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x8b4f58\nLDR             X5, [X21,#0x308]                                       ; +0x24, 0x8b4f5c\nLDR             X0, [X0]                                               ; +0x28, 0x8b4f60\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x2c, 0x8b4f64\nCBZ             X5, loc_8B500C                                         ; +0x30, 0x8b4f68\nLDRB            W4, [X29,#0x70+var_28+1]                               ; +0x34, 0x8b4f6c\nADD             X20, X29, #0x70+var_18                                 ; +0x38, 0x8b4f70\nLDRB            W2, [X29,#0x70+var_28+2]                               ; +0x3c, 0x8b4f74\nMOV             X0, X5                                                 ; +0x40, 0x8b4f78\nLDRB            W3, [X29,#0x70+var_28]                                 ; +0x44, 0x8b4f7c\nMOV             X1, X20                                                ; +0x48, 0x8b4f80\nSCVTF           S2, W4                                                 ; +0x4c, 0x8b4f84\nLDR             X4, [X5]                                               ; +0x50, 0x8b4f88\nSCVTF           S1, W2                                                 ; +0x54, 0x8b4f8c\nSCVTF           S0, W3                                                 ; +0x58, 0x8b4f90\nLDR             S8, =0x437F0000                                        ; +0x5c, 0x8b4f94\nLDR             X2, [X4,#0x550]                                        ; +0x60, 0x8b4f98\nFMOV            S9, #1.0                                               ; +0x64, 0x8b4f9c\nFDIV            S2, S2, S8                                             ; +0x68, 0x8b4fa0\nSTR             S9, [X29,#0x70+var_C]                                  ; +0x6c, 0x8b4fa4\nFDIV            S1, S1, S8                                             ; +0x70, 0x8b4fa8\nFDIV            S0, S0, S8                                             ; +0x74, 0x8b4fac\nSTR             S2, [X29,#0x70+var_14]                                 ; +0x78, 0x8b4fb0\nSTR             S1, [X29,#0x70+var_10]                                 ; +0x7c, 0x8b4fb4\nSTR             S0, [X29,#0x70+var_18]                                 ; +0x80, 0x8b4fb8\nBLR             X2                                                     ; +0x84, 0x8b4fbc\nLDRB            W3, [X29,#0x70+var_28+1]                               ; +0x88, 0x8b4fc0\nMOV             X1, X20                                                ; +0x8c, 0x8b4fc4\nLDRB            W2, [X29,#0x70+var_28+2]                               ; +0x90, 0x8b4fc8\nLDRB            W0, [X29,#0x70+var_28]                                 ; +0x94, 0x8b4fcc\nSCVTF           S2, W3                                                 ; +0x98, 0x8b4fd0\nLDR             X3, [X21,#0x308]                                       ; +0x9c, 0x8b4fd4\nSCVTF           S1, W2                                                 ; +0xa0, 0x8b4fd8\nSCVTF           S0, W0                                                 ; +0xa4, 0x8b4fdc\nMOV             X0, X3                                                 ; +0xa8, 0x8b4fe0\nLDR             X2, [X3]                                               ; +0xac, 0x8b4fe4\nFDIV            S2, S2, S8                                             ; +0xb0, 0x8b4fe8\nLDR             X2, [X2,#0x570]                                        ; +0xb4, 0x8b4fec\nSTR             S9, [X29,#0x70+var_C]                                  ; +0xb8, 0x8b4ff0\nFDIV            S1, S1, S8                                             ; +0xbc, 0x8b4ff4\nFDIV            S8, S0, S8                                             ; +0xc0, 0x8b4ff8\nSTR             S2, [X29,#0x70+var_14]                                 ; +0xc4, 0x8b4ffc\nSTR             S1, [X29,#0x70+var_10]                                 ; +0xc8, 0x8b5000\nSTR             S8, [X29,#0x70+var_18]                                 ; +0xcc, 0x8b5004\nBLR             X2                                                     ; +0xd0, 0x8b5008\nLDR             X2, [X21,#0x548]                                       ; +0xd4, 0x8b500c\nADD             X1, X29, #0x70+var_28                                  ; +0xd8, 0x8b5010\nMOV             X0, X2                                                 ; +0xdc, 0x8b5014\nLDR             X2, [X2]                                               ; +0xe0, 0x8b5018\nLDR             X2, [X2,#0x3C0]                                        ; +0xe4, 0x8b501c\nBLR             X2                                                     ; +0xe8, 0x8b5020\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xec, 0x8b5024\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xf0, 0x8b5028\nLDR             X0, [X19]                                              ; +0xf4, 0x8b502c\nCMP             X1, X0                                                 ; +0xf8, 0x8b5030\nB.NE            loc_8B504C                                             ; +0xfc, 0x8b5034\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x100, 0x8b5038\nLDP             D8, D9, [SP,#0x70+var_48]                              ; +0x104, 0x8b503c\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x108, 0x8b5040\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x10c, 0x8b5044\nRET                                                                    ; +0x110, 0x8b5048\nBL              .__stack_chk_fail                                      ; +0x114, 0x8b504c", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x6fde8c", "<???> @ 0xa6780"], "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"}