{"type": "func", "start": 678362, "end": 678578, "name": "sub_A59DA", "pseudocode": "// \n// sub_A59DA from 0xa59da to 0xa5ab2 (216 bytes)\n// \n// 8 xrefs:\n// > sub_A5378 @ 0xa5440\n// > sub_A5378 @ 0xa5446\n// > sub_A5378 @ 0xa544c\n// > sub_A5378 @ 0xa5452\n// > sub_A5378 @ 0xa5458\n// > sub_A5378 @ 0xa545e\n// > sub_A5378 @ 0xa5464\n// > sub_A5378 @ 0xa5470\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_A59DA(int result)\n{\n  int v1; // r1\n  int v2; // r1\n  float v3; // s0\n  float v4; // s4\n  float v5; // s2\n  float v6; // s6\n  float v7; // s4\n  float v8; // s6\n  float v9; // s8\n  float v10; // r1\n  float v11; // s10\n  float v12; // s12\n  float v13; // s8\n  float v14; // s0\n  float v15; // s2\n  float v16; // s0\n  float v17; // r2\n  __int64 v18; // kr00_8\n\n  v1 = *(_DWORD *)(result + 36);\n  if ( v1 )\n  {\n    v2 = v1 - 1;\n    *(_DWORD *)(result + 36) = v2;\n    if ( v2 )\n    {\n      v3 = *(float *)(result + 40);\n      v4 = *(float *)(result + 80) + *(float *)(result + 60);\n      v5 = *(float *)(result + 44);\n      v6 = *(float *)(result + 64);\n      *(float *)(result + 80) = v4;\n      v7 = v3 + v4;\n      v8 = *(float *)(result + 84) + v6;\n      *(float *)(result + 84) = v8;\n      v9 = *(float *)(result + 88) + *(float *)(result + 68);\n      v10 = v5 + v8;\n      *(float *)(result + 88) = v9;\n      v11 = *(float *)(result + 92) + *(float *)(result + 72);\n      *(float *)(result + 92) = v11;\n      v12 = *(float *)(result + 96) + *(float *)(result + 76);\n      *(float *)(result + 96) = v12;\n      v13 = *(float *)(result + 48) + v9;\n      v14 = *(float *)(result + 52);\n      v15 = *(float *)(result + 56) + v12;\n      *(float *)(result + 16) = v7;\n      v16 = v14 + v11;\n      *(float *)(result + 20) = v10;\n      v17 = v13;\n      *(float *)(result + 24) = v13;\n    }\n    else\n    {\n      v18 = *(_QWORD *)(result + 40);\n      v10 = *((float *)&v18 + 1);\n      v17 = *(float *)(result + 48);\n      v15 = *(float *)(result + 56);\n      v16 = *(float *)(result + 52);\n      *(_QWORD *)(result + 16) = v18;\n      *(float *)(result + 24) = v17;\n    }\n    *(float *)(result + 28) = v16;\n    *(float *)(result + 32) = v15;\n    *(float *)(result + 8) = v10;\n    *(float *)(result + 12) = v17;\n    *(float *)result = -v16;\n    *(float *)(result + 4) = -v15;\n  }\n  return result;\n}", "assembly": "; \n; sub_A59DA from 0xa59da to 0xa5ab2 (216 bytes)\n; \n; 8 xrefs:\n; > sub_A5378 @ 0xa5440\n; > sub_A5378 @ 0xa5446\n; > sub_A5378 @ 0xa544c\n; > sub_A5378 @ 0xa5452\n; > sub_A5378 @ 0xa5458\n; > sub_A5378 @ 0xa545e\n; > sub_A5378 @ 0xa5464\n; > sub_A5378 @ 0xa5470\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0xa59da\nADD             R7, SP, #8                                             ; +0x2, 0xa59dc\nLDR             R1, [R0,#0x24]                                         ; +0x4, 0xa59de\nCMP             R1, #0                                                 ; +0x6, 0xa59e0\nBEQ             locret_A5AB0                                           ; +0x8, 0xa59e2\nSUBS            R1, #1                                                 ; +0xa, 0xa59e4\nSTR             R1, [R0,#0x24]                                         ; +0xc, 0xa59e6\nBEQ             loc_A5A80                                              ; +0xe, 0xa59e8\nVLDR            S4, [R0,#0x3C]                                         ; +0x10, 0xa59ea\nVLDR            S8, [R0,#0x50]                                         ; +0x14, 0xa59ee\nVLDR            S0, [R0,#0x28]                                         ; +0x18, 0xa59f2\nVADD.F32        S4, S8, S4                                             ; +0x1c, 0xa59f6\nVLDR            S2, [R0,#0x2C]                                         ; +0x20, 0xa59fa\nVLDR            S6, [R0,#0x40]                                         ; +0x24, 0xa59fe\nVSTR            S4, [R0,#0x50]                                         ; +0x28, 0xa5a02\nVADD.F32        S4, S0, S4                                             ; +0x2c, 0xa5a06\nVLDR            S8, [R0,#0x54]                                         ; +0x30, 0xa5a0a\nVADD.F32        S6, S8, S6                                             ; +0x34, 0xa5a0e\nVSTR            S6, [R0,#0x54]                                         ; +0x38, 0xa5a12\nVADD.F32        S6, S2, S6                                             ; +0x3c, 0xa5a16\nVLDR            S8, [R0,#0x44]                                         ; +0x40, 0xa5a1a\nVLDR            S10, [R0,#0x58]                                        ; +0x44, 0xa5a1e\nVADD.F32        S8, S10, S8                                            ; +0x48, 0xa5a22\nVMOV            R1, S6                                                 ; +0x4c, 0xa5a26\nVSTR            S8, [R0,#0x58]                                         ; +0x50, 0xa5a2a\nVLDR            S10, [R0,#0x48]                                        ; +0x54, 0xa5a2e\nVLDR            S12, [R0,#0x5C]                                        ; +0x58, 0xa5a32\nVADD.F32        S10, S12, S10                                          ; +0x5c, 0xa5a36\nVSTR            S10, [R0,#0x5C]                                        ; +0x60, 0xa5a3a\nVLDR            S12, [R0,#0x4C]                                        ; +0x64, 0xa5a3e\nVLDR            S14, [R0,#0x60]                                        ; +0x68, 0xa5a42\nVADD.F32        S12, S14, S12                                          ; +0x6c, 0xa5a46\nVSTR            S12, [R0,#0x60]                                        ; +0x70, 0xa5a4a\nVLDR            S0, [R0,#0x30]                                         ; +0x74, 0xa5a4e\nVLDR            S2, [R0,#0x38]                                         ; +0x78, 0xa5a52\nVADD.F32        S8, S0, S8                                             ; +0x7c, 0xa5a56\nVLDR            S0, [R0,#0x34]                                         ; +0x80, 0xa5a5a\nVADD.F32        S2, S2, S12                                            ; +0x84, 0xa5a5e\nVSTR            S4, [R0,#0x10]                                         ; +0x88, 0xa5a62\nVADD.F32        S0, S0, S10                                            ; +0x8c, 0xa5a66\nVSTR            S6, [R0,#0x14]                                         ; +0x90, 0xa5a6a\nVMOV            R2, S8                                                 ; +0x94, 0xa5a6e\nVSTR            S8, [R0,#0x18]                                         ; +0x98, 0xa5a72\nVSTR            S0, [R0,#0x1C]                                         ; +0x9c, 0xa5a76\nVSTR            S2, [R0,#0x20]                                         ; +0xa0, 0xa5a7a\nB               loc_A5A9C                                              ; +0xa4, 0xa5a7e\nADD.W           R5, R0, #0x30 ; '0'                                    ; +0xa6, 0xa5a80\nLDRD.W          R3, R1, [R0,#0x28]                                     ; +0xaa, 0xa5a84\nLDM             R5, {R2,R4,R5}                                         ; +0xae, 0xa5a88\nVMOV            S2, R5                                                 ; +0xb0, 0xa5a8a\nVMOV            S0, R4                                                 ; +0xb4, 0xa5a8e\nSTRD.W          R3, R1, [R0,#0x10]                                     ; +0xb8, 0xa5a92\nADD.W           R3, R0, #0x18                                          ; +0xbc, 0xa5a96\nSTM             R3!, {R2,R4,R5}                                        ; +0xc0, 0xa5a9a\nVNEG.F32        S2, S2                                                 ; +0xc2, 0xa5a9c\nSTRD.W          R1, R2, [R0,#8]                                        ; +0xc6, 0xa5aa0\nVNEG.F32        S0, S0                                                 ; +0xca, 0xa5aa4\nVSTR            S0, [R0]                                               ; +0xce, 0xa5aa8\nVSTR            S2, [R0,#4]                                            ; +0xd2, 0xa5aac\nPOP             {R4,R5,R7,PC}                                          ; +0xd6, 0xa5ab0", "xrefs": ["sub_A5378 @ 0xa5440", "sub_A5378 @ 0xa5446", "sub_A5378 @ 0xa544c", "sub_A5378 @ 0xa5452", "sub_A5378 @ 0xa5458", "sub_A5378 @ 0xa545e", "sub_A5378 @ 0xa5464", "sub_A5378 @ 0xa5470"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}