{"type": "func", "start": 6296238, "end": 6296376, "name": "ColorSelectLiveOverlay::determineStartValues", "pseudocode": "// \n// ColorSelectLiveOverlay::determineStartValues from 0x6012ae to 0x601338 (138 bytes)\n// \n// 1 xrefs:\n// > sub_601AE0 @ 0x601b66\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:54:40 +0000\n// \n\nint __fastcall ColorSelectLiveOverlay::determineStartValues(int this)\n{\n  int v1; // r3\n  _WORD *v2; // r2\n  char v3; // r4\n  _DWORD *v4; // r3\n  char v5; // r6\n  char v6; // r5\n  int v7; // r3\n  char v8; // r6\n  char v9; // r5\n  __int16 v10; // r4\n  char v11; // r2\n  _BYTE *v12; // r3\n  char v13; // r1\n  char v14; // r2\n  char v15; // r3\n\n  v1 = *(_DWORD *)(this + 520);\n  v2 = (_WORD *)(this + 546);\n  if ( v1 )\n  {\n    v3 = *(_BYTE *)(v1 + 1270);\n    v4 = (_DWORD *)(v1 + 1276);\n    v5 = *((_BYTE *)v4 - 8);\n    v6 = *((_BYTE *)v4 - 7);\n    *(_BYTE *)(this + 548) = v3;\n    *(_BYTE *)(this + 546) = v5;\n    *(_BYTE *)(this + 547) = v6;\n    *(_DWORD *)(this + 564) = *v4;\n    LOBYTE(v4) = *(_BYTE *)(this + 548);\n    *(_WORD *)(this + 540) = *v2;\n    *(_BYTE *)(this + 542) = (_BYTE)v4;\n  }\n  else\n  {\n    v7 = *(_DWORD *)(this + 532);\n    v8 = *(_BYTE *)(v7 + 68);\n    v9 = *(_BYTE *)(v7 + 69);\n    *(_BYTE *)(this + 548) = *(_BYTE *)(v7 + 70);\n    *(_BYTE *)(this + 546) = v8;\n    *(_BYTE *)(this + 547) = v9;\n    v10 = *v2;\n    v11 = *(_BYTE *)(this + 548);\n    *(_WORD *)(this + 540) = v10;\n    *(_BYTE *)(this + 542) = v11;\n    *(_DWORD *)(this + 564) = *(_DWORD *)(v7 + 92);\n    v12 = *(_BYTE **)(this + 536);\n    if ( v12 )\n    {\n      v13 = v12[68];\n      v14 = v12[69];\n      v15 = v12[70];\n      *(_BYTE *)(this + 543) = v13;\n      *(_BYTE *)(this + 544) = v14;\n      *(_BYTE *)(this + 545) = v15;\n    }\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectLiveOverlay::determineStartValues from 0x6012ae to 0x601338 (138 bytes)\n; \n; 1 xrefs:\n; > sub_601AE0 @ 0x601b66\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:54:40 +0000\n; \nLDR.W           R3, [R0,#0x208]                                        ; +0x0, 0x6012ae\nADD.W           R1, R0, #0x21C                                         ; +0x4, 0x6012b2\nPUSH            {R4-R6,LR}                                             ; +0x8, 0x6012b6\nADDW            R2, R0, #0x222                                         ; +0xa, 0x6012b8\nCBZ             R3, loc_6012EC                                         ; +0xe, 0x6012bc\nLDRB.W          R4, [R3,#0x4F6]                                        ; +0x10, 0x6012be\nADDW            R3, R3, #0x4FC                                         ; +0x14, 0x6012c2\nLDRB.W          R6, [R3,#-8]                                           ; +0x18, 0x6012c6\nLDRB.W          R5, [R3,#-7]                                           ; +0x1c, 0x6012ca\nSTRB.W          R4, [R0,#0x224]                                        ; +0x20, 0x6012ce\nSTRB.W          R6, [R0,#0x222]                                        ; +0x24, 0x6012d2\nSTRB.W          R5, [R0,#0x223]                                        ; +0x28, 0x6012d6\nLDR             R3, [R3]                                               ; +0x2c, 0x6012da\nSTR.W           R3, [R0,#0x234]                                        ; +0x2e, 0x6012dc\nLDRH            R4, [R2]                                               ; +0x32, 0x6012e0\nLDRB            R3, [R2,#2]                                            ; +0x34, 0x6012e2\nSTRH.W          R4, [R0,#0x21C]                                        ; +0x36, 0x6012e4\nSTRB            R3, [R1,#2]                                            ; +0x3a, 0x6012e8\nPOP             {R4-R6,PC}                                             ; +0x3c, 0x6012ea\nLDR.W           R3, [R0,#0x214]                                        ; +0x3e, 0x6012ec\nLDRB.W          R4, [R3,#0x46]                                         ; +0x42, 0x6012f0\nLDRB.W          R6, [R3,#0x44]                                         ; +0x46, 0x6012f4\nLDRB.W          R5, [R3,#0x45]                                         ; +0x4a, 0x6012f8\nSTRB.W          R4, [R0,#0x224]                                        ; +0x4e, 0x6012fc\nSTRB.W          R6, [R0,#0x222]                                        ; +0x52, 0x601300\nSTRB.W          R5, [R0,#0x223]                                        ; +0x56, 0x601304\nLDRH            R4, [R2]                                               ; +0x5a, 0x601308\nLDRB            R2, [R2,#2]                                            ; +0x5c, 0x60130a\nSTRH.W          R4, [R0,#0x21C]                                        ; +0x5e, 0x60130c\nSTRB            R2, [R1,#2]                                            ; +0x62, 0x601310\nLDR             R3, [R3,#0x5C]                                         ; +0x64, 0x601312\nSTR.W           R3, [R0,#0x234]                                        ; +0x66, 0x601314\nLDR.W           R3, [R0,#0x218]                                        ; +0x6a, 0x601318\nCBZ             R3, locret_601336                                      ; +0x6e, 0x60131c\nLDRB.W          R1, [R3,#0x44]                                         ; +0x70, 0x60131e\nLDRB.W          R2, [R3,#0x45]                                         ; +0x74, 0x601322\nLDRB.W          R3, [R3,#0x46]                                         ; +0x78, 0x601326\nSTRB.W          R1, [R0,#0x21F]                                        ; +0x7c, 0x60132a\nSTRB.W          R2, [R0,#0x220]                                        ; +0x80, 0x60132e\nSTRB.W          R3, [R0,#0x221]                                        ; +0x84, 0x601332\nPOP             {R4-R6,PC}                                             ; +0x88, 0x601336", "xrefs": ["sub_601AE0 @ 0x601b66"], "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"}