{"type": "func", "start": 5275180, "end": 5275444, "name": "EndPortalObject::updateColors", "pseudocode": "// \n// EndPortalObject::updateColors from 0x507e2c to 0x507f34 (264 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x4049dc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:25 +0000\n// \n\nint __fastcall EndPortalObject::updateColors(int a1, int a2)\n{\n  int v3; // r10\n  void (__fastcall *v4)(int, float *); // r4\n  int v5; // r10\n  void (__fastcall *v6)(int, float *); // r4\n  int v8; // [sp+4h] [bp-20h] BYREF\n  float v9; // [sp+Ch] [bp-18h] BYREF\n  float v10; // [sp+10h] [bp-14h]\n  float v11; // [sp+14h] [bp-10h]\n  int v12; // [sp+18h] [bp-Ch]\n\n  v8 = a2;\n  v3 = *(_DWORD *)(a1 + 660);\n  if ( v3 )\n  {\n    v4 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v3 + 680);\n    v12 = 1065353216;\n    v9 = (float)(unsigned __int8)v8 / 255.0;\n    v10 = (float)BYTE1(v8) / 255.0;\n    v11 = (float)BYTE2(v8) / 255.0;\n    v4(v3, &v9);\n    v5 = *(_DWORD *)(a1 + 660);\n    v6 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v5 + 696);\n    v12 = 1065353216;\n    v9 = (float)(unsigned __int8)v8 / 255.0;\n    v10 = (float)BYTE1(v8) / 255.0;\n    v11 = (float)BYTE2(v8) / 255.0;\n    v6(v5, &v9);\n  }\n  return (*(int (__fastcall **)(_DWORD, int *))(**(_DWORD **)(a1 + 1168) + 480))(*(_DWORD *)(a1 + 1168), &v8);\n}", "assembly": "; \n; EndPortalObject::updateColors from 0x507e2c to 0x507f34 (264 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x4049dc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:25 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x507e2c\nMOV             R9, R0                                                 ; +0x4, 0x507e30\nVPUSH           {D8}                                                   ; +0x6, 0x507e32\nLDR             R3, =(__stack_chk_guard_ptr - 0x507E3C)                ; +0xa, 0x507e36\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x507e38\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x507e3a\nSUB             SP, SP, #0x24                                          ; +0x10, 0x507e3c\nLDR             R2, [R3]                                               ; +0x12, 0x507e3e\nMOV             R7, R3                                                 ; +0x14, 0x507e40\nSTR             R1, [SP,#0x24+var_20]                                  ; +0x16, 0x507e42\nLDR.W           R10, [R0,#0x294]                                       ; +0x18, 0x507e44\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x1c, 0x507e48\nCMP.W           R10, #0                                                ; +0x1e, 0x507e4a\nBEQ             loc_507F10                                             ; +0x22, 0x507e4e\nLDR.W           R3, [R10]                                              ; +0x24, 0x507e50\nADD.W           R8, SP, #0x24+var_18                                   ; +0x28, 0x507e54\nLDRB.W          R6, [SP,#0x24+var_20]                                  ; +0x2c, 0x507e58\nMOVS            R2, #0x10; size_t                                      ; +0x30, 0x507e5c\nMOVS            R1, #0; int                                            ; +0x32, 0x507e5e\nMOV             R0, R8; void *                                         ; +0x34, 0x507e60\nLDR.W           R4, [R3,#0x2A8]                                        ; +0x36, 0x507e62\nMOV.W           R11, #0x3F800000                                       ; +0x3a, 0x507e66\nLDRB.W          R3, [SP,#0x24+var_20+2]                                ; +0x3e, 0x507e6a\nLDRB.W          R5, [SP,#0x24+var_20+1]                                ; +0x42, 0x507e6e\nVLDR            S16, =255.0                                            ; +0x46, 0x507e72\nVMOV            S17, R3                                                ; +0x4a, 0x507e76\nBLX             memset                                                 ; +0x4e, 0x507e7a\nVMOV            S15, R6                                                ; +0x52, 0x507e7e\nMOV             R0, R10                                                ; +0x56, 0x507e82\nMOV             R1, R8                                                 ; +0x58, 0x507e84\nSTR.W           R11, [SP,#0x24+var_C]                                  ; +0x5a, 0x507e86\nVCVT.F32.S32    S15, S15                                               ; +0x5e, 0x507e8a\nVDIV.F32        S15, S15, S16                                          ; +0x62, 0x507e8e\nVSTR            S15, [SP,#0x24+var_18]                                 ; +0x66, 0x507e92\nVMOV            S15, R5                                                ; +0x6a, 0x507e96\nVCVT.F32.S32    S15, S15                                               ; +0x6e, 0x507e9a\nVDIV.F32        S15, S15, S16                                          ; +0x72, 0x507e9e\nVSTR            S15, [SP,#0x24+var_14]                                 ; +0x76, 0x507ea2\nVCVT.F32.S32    S15, S17                                               ; +0x7a, 0x507ea6\nVDIV.F32        S15, S15, S16                                          ; +0x7e, 0x507eaa\nVSTR            S15, [SP,#0x24+var_10]                                 ; +0x82, 0x507eae\nBLX             R4                                                     ; +0x86, 0x507eb2\nLDR.W           R10, [R9,#0x294]                                       ; +0x88, 0x507eb4\nLDRB.W          R6, [SP,#0x24+var_20]                                  ; +0x8c, 0x507eb8\nMOVS            R1, #0; int                                            ; +0x90, 0x507ebc\nMOV             R0, R8; void *                                         ; +0x92, 0x507ebe\nMOVS            R2, #0x10; size_t                                      ; +0x94, 0x507ec0\nLDR.W           R3, [R10]                                              ; +0x96, 0x507ec2\nLDRB.W          R5, [SP,#0x24+var_20+1]                                ; +0x9a, 0x507ec6\nLDR.W           R4, [R3,#0x2B8]                                        ; +0x9e, 0x507eca\nLDRB.W          R3, [SP,#0x24+var_20+2]                                ; +0xa2, 0x507ece\nVMOV            S17, R3                                                ; +0xa6, 0x507ed2\nBLX             memset                                                 ; +0xaa, 0x507ed6\nVMOV            S15, R6                                                ; +0xae, 0x507eda\nSTR.W           R11, [SP,#0x24+var_C]                                  ; +0xb2, 0x507ede\nMOV             R0, R10                                                ; +0xb6, 0x507ee2\nMOV             R1, R8                                                 ; +0xb8, 0x507ee4\nVCVT.F32.S32    S15, S15                                               ; +0xba, 0x507ee6\nVDIV.F32        S15, S15, S16                                          ; +0xbe, 0x507eea\nVSTR            S15, [SP,#0x24+var_18]                                 ; +0xc2, 0x507eee\nVMOV            S15, R5                                                ; +0xc6, 0x507ef2\nVCVT.F32.S32    S15, S15                                               ; +0xca, 0x507ef6\nVDIV.F32        S15, S15, S16                                          ; +0xce, 0x507efa\nVSTR            S15, [SP,#0x24+var_14]                                 ; +0xd2, 0x507efe\nVCVT.F32.S32    S15, S17                                               ; +0xd6, 0x507f02\nVDIV.F32        S16, S15, S16                                          ; +0xda, 0x507f06\nVSTR            S16, [SP,#0x24+var_10]                                 ; +0xde, 0x507f0a\nBLX             R4                                                     ; +0xe2, 0x507f0e\nLDR.W           R0, [R9,#0x490]                                        ; +0xe4, 0x507f10\nADD             R1, SP, #0x24+var_20                                   ; +0xe8, 0x507f14\nLDR             R3, [R0]                                               ; +0xea, 0x507f16\nLDR.W           R3, [R3,#0x1E0]                                        ; +0xec, 0x507f18\nBLX             R3                                                     ; +0xf0, 0x507f1c\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xf2, 0x507f1e\nLDR             R3, [R7]                                               ; +0xf4, 0x507f20\nCMP             R2, R3                                                 ; +0xf6, 0x507f22\nBEQ             loc_507F2A                                             ; +0xf8, 0x507f24\nBLX             __stack_chk_fail                                       ; +0xfa, 0x507f26\nADD             SP, SP, #0x24 ; '$'                                    ; +0xfe, 0x507f2a\nVPOP            {D8}                                                   ; +0x100, 0x507f2c\nPOP.W           {R4-R11,PC}                                            ; +0x104, 0x507f30", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x4049dc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}