{"type": "func", "start": 6040360, "end": 6040484, "name": "ColorAction::loadFromState", "pseudocode": "// \n// ColorAction::loadFromState from 0x5c2b28 to 0x5c2ba4 (124 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::loadFromState @ 0x5d2154\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:53:51 +0000\n// \n\nint __fastcall ColorAction::loadFromState(int a1, int *a2)\n{\n  int v3; // r3\n  _DWORD *v5; // r6\n  int *v6; // r3\n  int result; // r0\n  int v8; // r1\n  int v9; // r2\n  int v10; // r3\n\n  v3 = *a2;\n  v5 = (_DWORD *)(a1 + 100);\n  *(_WORD *)(a1 + 68) = *a2;\n  *(_BYTE *)(a1 + 70) = BYTE2(v3);\n  *(_WORD *)(a1 + 71) = *(_WORD *)((char *)a2 + 3);\n  *(_BYTE *)(a1 + 73) = *((_BYTE *)a2 + 5);\n  *(_WORD *)(a1 + 54) = *((_WORD *)a2 + 3);\n  *(_BYTE *)(a1 + 56) = *((_BYTE *)a2 + 8);\n  *(_BYTE *)(a1 + 53) = *((_BYTE *)a2 + 9);\n  *(_DWORD *)(a1 + 84) = a2[4];\n  *(_DWORD *)(a1 + 76) = a2[8];\n  *(_DWORD *)(a1 + 88) = a2[5];\n  *(_BYTE *)(a1 + 80) = *((_BYTE *)a2 + 10);\n  *(_DWORD *)(a1 + 92) = a2[9];\n  *(_DWORD *)(a1 + 96) = a2[10];\n  *(_BYTE *)(a1 + 121) = *((_BYTE *)a2 + 11);\n  *(_DWORD *)(a1 + 116) = a2[6];\n  v6 = a2 + 13;\n  result = a2[13];\n  v8 = a2[14];\n  v9 = v6[2];\n  v10 = v6[3];\n  *v5 = result;\n  v5[1] = v8;\n  v5[2] = v9;\n  v5[3] = v10;\n  *(_DWORD *)(a1 + 64) = a2[11];\n  *(_DWORD *)(a1 + 124) = a2[7];\n  *(_BYTE *)(a1 + 132) = *((_BYTE *)a2 + 12);\n  *(_DWORD *)(a1 + 60) = a2[12];\n  return result;\n}", "assembly": "; \n; ColorAction::loadFromState from 0x5c2b28 to 0x5c2ba4 (124 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::loadFromState @ 0x5d2154\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:53:51 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x5c2b28\nMOV             R4, R0                                                 ; +0x2, 0x5c2b2a\nLDR             R3, [R1]                                               ; +0x4, 0x5c2b2c\nMOV             R5, R1                                                 ; +0x6, 0x5c2b2e\nADD.W           R6, R0, #0x64 ; 'd'                                    ; +0x8, 0x5c2b30\nSTRH.W          R3, [R0,#0x44]                                         ; +0xc, 0x5c2b34\nLSRS            R3, R3, #0x10                                          ; +0x10, 0x5c2b38\nSTRB.W          R3, [R0,#0x46]                                         ; +0x12, 0x5c2b3a\nMOV             R3, R1                                                 ; +0x16, 0x5c2b3e\nLDRH.W          R2, [R3,#3]!                                           ; +0x18, 0x5c2b40\nSTRH.W          R2, [R0,#0x47]                                         ; +0x1c, 0x5c2b44\nLDRB            R3, [R3,#2]                                            ; +0x20, 0x5c2b48\nSTRB.W          R3, [R0,#0x49]                                         ; +0x22, 0x5c2b4a\nMOV             R3, R1                                                 ; +0x26, 0x5c2b4e\nLDRH.W          R2, [R3,#6]!                                           ; +0x28, 0x5c2b50\nSTRH            R2, [R0,#0x36]                                         ; +0x2c, 0x5c2b54\nLDRB            R3, [R3,#2]                                            ; +0x2e, 0x5c2b56\nSTRB.W          R3, [R0,#0x38]                                         ; +0x30, 0x5c2b58\nLDRB            R3, [R1,#9]                                            ; +0x34, 0x5c2b5c\nSTRB.W          R3, [R0,#0x35]                                         ; +0x36, 0x5c2b5e\nLDR             R3, [R1,#0x10]                                         ; +0x3a, 0x5c2b62\nSTR             R3, [R0,#0x54]                                         ; +0x3c, 0x5c2b64\nLDR             R3, [R1,#0x20]                                         ; +0x3e, 0x5c2b66\nSTR             R3, [R0,#0x4C]                                         ; +0x40, 0x5c2b68\nLDR             R3, [R1,#0x14]                                         ; +0x42, 0x5c2b6a\nSTR             R3, [R0,#0x58]                                         ; +0x44, 0x5c2b6c\nLDRB            R3, [R1,#0xA]                                          ; +0x46, 0x5c2b6e\nSTRB.W          R3, [R0,#0x50]                                         ; +0x48, 0x5c2b70\nLDR             R3, [R1,#0x24]                                         ; +0x4c, 0x5c2b74\nSTR             R3, [R0,#0x5C]                                         ; +0x4e, 0x5c2b76\nLDR             R3, [R1,#0x28]                                         ; +0x50, 0x5c2b78\nSTR             R3, [R0,#0x60]                                         ; +0x52, 0x5c2b7a\nLDRB            R3, [R1,#0xB]                                          ; +0x54, 0x5c2b7c\nSTRB.W          R3, [R0,#0x79]                                         ; +0x56, 0x5c2b7e\nLDR             R3, [R1,#0x18]                                         ; +0x5a, 0x5c2b82\nSTR             R3, [R0,#0x74]                                         ; +0x5c, 0x5c2b84\nADD.W           R3, R1, #0x34 ; '4'                                    ; +0x5e, 0x5c2b86\nLDM             R3, {R0-R3}                                            ; +0x62, 0x5c2b8a\nSTM.W           R6, {R0-R3}                                            ; +0x64, 0x5c2b8c\nLDR             R3, [R5,#0x2C]                                         ; +0x68, 0x5c2b90\nSTR             R3, [R4,#0x40]                                         ; +0x6a, 0x5c2b92\nLDR             R3, [R5,#0x1C]                                         ; +0x6c, 0x5c2b94\nSTR             R3, [R4,#0x7C]                                         ; +0x6e, 0x5c2b96\nLDRB            R3, [R5,#0xC]                                          ; +0x70, 0x5c2b98\nSTRB.W          R3, [R4,#0x84]                                         ; +0x72, 0x5c2b9a\nLDR             R3, [R5,#0x30]                                         ; +0x76, 0x5c2b9e\nSTR             R3, [R4,#0x3C]                                         ; +0x78, 0x5c2ba0\nPOP             {R4-R6,PC}                                             ; +0x7a, 0x5c2ba2", "xrefs": ["GJEffectManager::loadFromState @ 0x5d2154"], "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"}