{"type": "func", "start": 675884, "end": 676140, "name": "sub_A502C", "pseudocode": "// \n// sub_A502C from 0xa502c to 0xa512c (256 bytes)\n// \n// 1 xrefs:\n// > sub_A597E @ 0xa5984\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:41:34 +0000\n// \n\nint __fastcall sub_A502C(int a1)\n{\n  int v2; // r6\n  float v3; // s16\n  float v4; // s18\n  float v5; // s20\n  int v6; // r0\n  float v7; // s0\n  float v8; // s26\n  float v9; // s2\n  float v10; // s0\n  float v11; // s2\n  float v12; // r0\n  __int64 v13; // r0\n\n  v2 = a1 + 9472;\n  *(float *)(a1 + 9540) = (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184);\n  *(_DWORD *)(a1 + 9488) = 0;\n  v3 = *(float *)(a1 + 9552);\n  v4 = *(float *)(a1 + 9556);\n  v5 = *(float *)(a1 + 9560);\n  *(float *)(a1 + 9472) = v3;\n  *(_DWORD *)(a1 + 9508) = 0;\n  *(float *)(a1 + 9492) = v4;\n  *(float *)(a1 + 9512) = v5;\n  v6 = *(_DWORD *)(a1 + 9564);\n  *(_DWORD *)(v2 + 56) = 0;\n  *(_DWORD *)(v2 + 60) = v6;\n  v7 = powf(10.0, v3 * 0.05);\n  v8 = 0.0;\n  v9 = 0.0;\n  if ( v3 > -80.0 )\n    v9 = v7;\n  *(float *)(v2 + 4) = v9;\n  v10 = powf(10.0, v4 * 0.05);\n  v11 = 0.0;\n  if ( v4 > -80.0 )\n    v11 = v10;\n  *(float *)(v2 + 24) = v11;\n  v12 = powf(10.0, v5 * 0.05);\n  if ( v5 > -80.0 )\n    v8 = v12;\n  *(float *)(v2 + 44) = v8;\n  v13 = *(_QWORD *)(v2 + 96);\n  *(_DWORD *)(v2 + 64) = v13;\n  *(_DWORD *)(v2 + 76) = HIDWORD(v13);\n  sub_A513C(a1);\n  sub_A4E20(a1, 0);\n  sub_A4F28(a1, 0);\n  *(_DWORD *)(v2 + 72) = 0;\n  return 0;\n}", "assembly": "; \n; sub_A502C from 0xa502c to 0xa512c (256 bytes)\n; \n; 1 xrefs:\n; > sub_A597E @ 0xa5984\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:41:34 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xa502c\nADD             R7, SP, #0xC                                           ; +0x2, 0xa502e\nPUSH.W          {R8}                                                   ; +0x4, 0xa5030\nVPUSH           {D8-D13}                                               ; +0x8, 0xa5034\nMOV             R4, R0                                                 ; +0xc, 0xa5038\nADD.W           R6, R0, #0x2500                                        ; +0xe, 0xa503a\nLDR.W           R0, [R0,#0x80]                                         ; +0x12, 0xa503e\nMOV.W           R8, #0                                                 ; +0x16, 0xa5042\nVLDR            S22, =0.05                                             ; +0x1a, 0xa5046\nADD.W           R0, R0, #0x4A0                                         ; +0x1e, 0xa504a\nLDR             R5, flt_A5130                                          ; +0x22, 0xa504e\nVLDR            S0, [R0]                                               ; +0x24, 0xa5050\nVCVT.F32.S32    S0, S0                                                 ; +0x28, 0xa5054\nVSTR            S0, [R6,#0x44]                                         ; +0x2c, 0xa5058\nSTR.W           R8, [R6,#0x10]                                         ; +0x30, 0xa505c\nVLDR            S16, [R6,#0x50]                                        ; +0x34, 0xa5060\nVLDR            S18, [R6,#0x54]                                        ; +0x38, 0xa5064\nVMUL.F32        S0, S16, S22                                           ; +0x3c, 0xa5068\nVLDR            S20, [R6,#0x58]                                        ; +0x40, 0xa506c\nVSTR            S16, [R6]                                              ; +0x44, 0xa5070\nSTR.W           R8, [R6,#0x24]                                         ; +0x48, 0xa5074\nVSTR            S18, [R6,#0x14]                                        ; +0x4c, 0xa5078\nVSTR            S20, [R6,#0x28]                                        ; +0x50, 0xa507c\nLDR             R0, [R6,#0x5C]                                         ; +0x54, 0xa5080\nVMOV            R1, S0; y                                              ; +0x56, 0xa5082\nSTRD.W          R8, R0, [R6,#0x38]                                     ; +0x5a, 0xa5086\nMOV             R0, R5; x                                              ; +0x5e, 0xa508a\nBLX             powf                                                   ; +0x60, 0xa508c\nVLDR            S24, =-80.0                                            ; +0x64, 0xa5090\nVMOV            S0, R0                                                 ; +0x68, 0xa5094\nVLDR            S26, =0.0                                              ; +0x6c, 0xa5098\nMOV             R0, R5; x                                              ; +0x70, 0xa509c\nVCMPE.F32       S16, S24                                               ; +0x72, 0xa509e\nVMOV.F32        S2, S26                                                ; +0x76, 0xa50a2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7a, 0xa50a6\nIT GT                                                                  ; +0x7e, 0xa50aa\nVMOVGT.F32      S2, S0                                                 ; +0x80, 0xa50ac\nVMUL.F32        S0, S18, S22                                           ; +0x84, 0xa50b0\nVSTR            S2, [R6,#4]                                            ; +0x88, 0xa50b4\nVMOV            R1, S0; y                                              ; +0x8c, 0xa50b8\nBLX             powf                                                   ; +0x90, 0xa50bc\nVMOV            S0, R0                                                 ; +0x94, 0xa50c0\nMOV             R0, R5; x                                              ; +0x98, 0xa50c4\nVCMPE.F32       S18, S24                                               ; +0x9a, 0xa50c6\nVMOV.F32        S2, S26                                                ; +0x9e, 0xa50ca\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa2, 0xa50ce\nIT GT                                                                  ; +0xa6, 0xa50d2\nVMOVGT.F32      S2, S0                                                 ; +0xa8, 0xa50d4\nVMUL.F32        S0, S20, S22                                           ; +0xac, 0xa50d8\nVSTR            S2, [R6,#0x18]                                         ; +0xb0, 0xa50dc\nVMOV            R1, S0; y                                              ; +0xb4, 0xa50e0\nBLX             powf                                                   ; +0xb8, 0xa50e4\nVCMPE.F32       S20, S24                                               ; +0xbc, 0xa50e8\nVMOV            S0, R0                                                 ; +0xc0, 0xa50ec\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc4, 0xa50f0\nIT GT                                                                  ; +0xc8, 0xa50f4\nVMOVGT.F32      S26, S0                                                ; +0xca, 0xa50f6\nVSTR            S26, [R6,#0x2C]                                        ; +0xce, 0xa50fa\nLDRD.W          R0, R1, [R6,#0x60]                                     ; +0xd2, 0xa50fe\nSTR             R0, [R6,#0x40]                                         ; +0xd6, 0xa5102\nMOV             R0, R4                                                 ; +0xd8, 0xa5104\nSTR             R1, [R6,#0x4C]                                         ; +0xda, 0xa5106\nBL              sub_A513C                                              ; +0xdc, 0xa5108\nMOV             R0, R4                                                 ; +0xe0, 0xa510c\nMOVS            R1, #0                                                 ; +0xe2, 0xa510e\nBL              sub_A4E20                                              ; +0xe4, 0xa5110\nMOV             R0, R4                                                 ; +0xe8, 0xa5114\nMOVS            R1, #0                                                 ; +0xea, 0xa5116\nBL              sub_A4F28                                              ; +0xec, 0xa5118\nSTR.W           R8, [R6,#0x48]                                         ; +0xf0, 0xa511c\nMOVS            R0, #0                                                 ; +0xf4, 0xa5120\nVPOP            {D8-D13}                                               ; +0xf6, 0xa5122\nPOP.W           {R8}                                                   ; +0xfa, 0xa5126\nPOP             {R4-R7,PC}                                             ; +0xfe, 0xa512a", "xrefs": ["sub_A597E @ 0xa5984"], "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"}