{"type": "func", "start": 6040244, "end": 6040360, "name": "ColorAction::saveToState", "pseudocode": "// \n// ColorAction::saveToState from 0x5c2ab4 to 0x5c2b28 (116 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::saveToState @ 0x5d2410\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::saveToState(int a1, int a2)\n{\n  int v3; // r3\n  _DWORD *v5; // r6\n  _DWORD *v6; // r3\n  int result; // r0\n  int v8; // r1\n  int v9; // r2\n  int v10; // r3\n\n  v3 = *(_DWORD *)(a1 + 68);\n  v5 = (_DWORD *)(a2 + 52);\n  *(_WORD *)a2 = v3;\n  *(_BYTE *)(a2 + 2) = BYTE2(v3);\n  *(_WORD *)(a2 + 3) = *(_WORD *)(a1 + 71);\n  *(_BYTE *)(a2 + 5) = *(_BYTE *)(a1 + 73);\n  *(_WORD *)(a2 + 6) = *(_WORD *)(a1 + 54);\n  *(_BYTE *)(a2 + 8) = *(_BYTE *)(a1 + 56);\n  *(_BYTE *)(a2 + 9) = *(_BYTE *)(a1 + 53);\n  *(_DWORD *)(a2 + 16) = *(_DWORD *)(a1 + 84);\n  *(_DWORD *)(a2 + 32) = *(_DWORD *)(a1 + 76);\n  *(_DWORD *)(a2 + 20) = *(_DWORD *)(a1 + 88);\n  *(_BYTE *)(a2 + 10) = *(_BYTE *)(a1 + 80);\n  *(_DWORD *)(a2 + 36) = *(_DWORD *)(a1 + 92);\n  *(_DWORD *)(a2 + 40) = *(_DWORD *)(a1 + 96);\n  *(_BYTE *)(a2 + 11) = *(_BYTE *)(a1 + 121);\n  *(_DWORD *)(a2 + 24) = *(_DWORD *)(a1 + 116);\n  v6 = (_DWORD *)(a1 + 100);\n  result = *(_DWORD *)(a1 + 100);\n  v8 = v6[1];\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 *)(a2 + 44) = *(_DWORD *)(a1 + 64);\n  *(_DWORD *)(a2 + 28) = *(_DWORD *)(a1 + 124);\n  *(_BYTE *)(a2 + 12) = *(_BYTE *)(a1 + 132);\n  *(_DWORD *)(a2 + 48) = *(_DWORD *)(a1 + 60);\n  return result;\n}", "assembly": "; \n; ColorAction::saveToState from 0x5c2ab4 to 0x5c2b28 (116 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::saveToState @ 0x5d2410\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, 0x5c2ab4\nMOV             R5, R0                                                 ; +0x2, 0x5c2ab6\nLDR             R3, [R0,#0x44]                                         ; +0x4, 0x5c2ab8\nMOV             R4, R1                                                 ; +0x6, 0x5c2aba\nADD.W           R6, R1, #0x34 ; '4'                                    ; +0x8, 0x5c2abc\nSTRH            R3, [R1]                                               ; +0xc, 0x5c2ac0\nLSRS            R3, R3, #0x10                                          ; +0xe, 0x5c2ac2\nSTRB            R3, [R1,#2]                                            ; +0x10, 0x5c2ac4\nMOV             R3, R0                                                 ; +0x12, 0x5c2ac6\nLDRH.W          R2, [R3,#0x47]!                                        ; +0x14, 0x5c2ac8\nSTRH.W          R2, [R1,#3]                                            ; +0x18, 0x5c2acc\nLDRB            R3, [R3,#2]                                            ; +0x1c, 0x5c2ad0\nSTRB            R3, [R1,#5]                                            ; +0x1e, 0x5c2ad2\nMOV             R3, R0                                                 ; +0x20, 0x5c2ad4\nLDRH.W          R2, [R3,#0x36]!                                        ; +0x22, 0x5c2ad6\nSTRH            R2, [R1,#6]                                            ; +0x26, 0x5c2ada\nLDRB            R3, [R3,#2]                                            ; +0x28, 0x5c2adc\nSTRB            R3, [R1,#8]                                            ; +0x2a, 0x5c2ade\nLDRB.W          R3, [R0,#0x35]                                         ; +0x2c, 0x5c2ae0\nSTRB            R3, [R1,#9]                                            ; +0x30, 0x5c2ae4\nLDR             R3, [R0,#0x54]                                         ; +0x32, 0x5c2ae6\nSTR             R3, [R1,#0x10]                                         ; +0x34, 0x5c2ae8\nLDR             R3, [R0,#0x4C]                                         ; +0x36, 0x5c2aea\nSTR             R3, [R1,#0x20]                                         ; +0x38, 0x5c2aec\nLDR             R3, [R0,#0x58]                                         ; +0x3a, 0x5c2aee\nSTR             R3, [R1,#0x14]                                         ; +0x3c, 0x5c2af0\nLDRB.W          R3, [R0,#0x50]                                         ; +0x3e, 0x5c2af2\nSTRB            R3, [R1,#0xA]                                          ; +0x42, 0x5c2af6\nLDR             R3, [R0,#0x5C]                                         ; +0x44, 0x5c2af8\nSTR             R3, [R1,#0x24]                                         ; +0x46, 0x5c2afa\nLDR             R3, [R0,#0x60]                                         ; +0x48, 0x5c2afc\nSTR             R3, [R1,#0x28]                                         ; +0x4a, 0x5c2afe\nLDRB.W          R3, [R0,#0x79]                                         ; +0x4c, 0x5c2b00\nSTRB            R3, [R1,#0xB]                                          ; +0x50, 0x5c2b04\nLDR             R3, [R0,#0x74]                                         ; +0x52, 0x5c2b06\nSTR             R3, [R1,#0x18]                                         ; +0x54, 0x5c2b08\nADD.W           R3, R0, #0x64 ; 'd'                                    ; +0x56, 0x5c2b0a\nLDM             R3, {R0-R3}                                            ; +0x5a, 0x5c2b0e\nSTM.W           R6, {R0-R3}                                            ; +0x5c, 0x5c2b10\nLDR             R3, [R5,#0x40]                                         ; +0x60, 0x5c2b14\nSTR             R3, [R4,#0x2C]                                         ; +0x62, 0x5c2b16\nLDR             R3, [R5,#0x7C]                                         ; +0x64, 0x5c2b18\nSTR             R3, [R4,#0x1C]                                         ; +0x66, 0x5c2b1a\nLDRB.W          R3, [R5,#0x84]                                         ; +0x68, 0x5c2b1c\nSTRB            R3, [R4,#0xC]                                          ; +0x6c, 0x5c2b20\nLDR             R3, [R5,#0x3C]                                         ; +0x6e, 0x5c2b22\nSTR             R3, [R4,#0x30]                                         ; +0x70, 0x5c2b24\nPOP             {R4-R6,PC}                                             ; +0x72, 0x5c2b26", "xrefs": ["GJEffectManager::saveToState @ 0x5d2410"], "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"}