{"type": "func", "start": 669548, "end": 669626, "name": "sub_A376C", "pseudocode": "// \n// sub_A376C from 0xa376c to 0xa37ba (78 bytes)\n// \n// 1 xrefs:\n// > sub_A3854 @ 0xa3856\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_A376C(int a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)\n{\n  int v5; // r4\n  float v6; // s0\n  int result; // r0\n\n  if ( a2 != 2 )\n    return 31;\n  if ( *(_DWORD *)(a1 + 388) == -1 )\n  {\n    v6 = 0.0;\n  }\n  else\n  {\n    v5 = *(_DWORD *)(a1 + 400);\n    if ( v5 )\n      v6 = *(float *)(v5 + 432);\n    else\n      v6 = 1.0;\n  }\n  *(float *)(a1 + 396) = *(float *)(a1 + 380) * v6;\n  *a3 = a1 + 392;\n  *a4 = 8;\n  result = 0;\n  if ( a5 )\n    *a5 = 0;\n  return result;\n}", "assembly": "; \n; sub_A376C from 0xa376c to 0xa37ba (78 bytes)\n; \n; 1 xrefs:\n; > sub_A3854 @ 0xa3856\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,R6,R7,LR}                                          ; +0x0, 0xa376c\nADD             R7, SP, #8                                             ; +0x2, 0xa376e\nCMP             R1, #2                                                 ; +0x4, 0xa3770\nBNE             loc_A3790                                              ; +0x6, 0xa3772\nLDR.W           R4, [R0,#0x184]                                        ; +0x8, 0xa3774\nLDR             R1, [R7,#-8+arg_0]                                     ; +0xc, 0xa3778\nADDS            R4, #1                                                 ; +0xe, 0xa377a\nBEQ             loc_A3794                                              ; +0x10, 0xa377c\nLDR.W           R4, [R0,#0x190]                                        ; +0x12, 0xa377e\nCMP             R4, #0                                                 ; +0x16, 0xa3782\nITE NE                                                                 ; +0x18, 0xa3784\nVLDRNE          S0, [R4,#0x1B0]                                        ; +0x1a, 0xa3786\nVMOVEQ.F32      S0, #1.0                                               ; +0x1e, 0xa378a\nB               loc_A3798                                              ; +0x22, 0xa378e\nMOVS            R0, #0x1F                                              ; +0x24, 0xa3790\nPOP             {R4,R6,R7,PC}                                          ; +0x26, 0xa3792\nVLDR            S0, =0.0                                               ; +0x28, 0xa3794\nVLDR            S2, [R0,#0x17C]                                        ; +0x2c, 0xa3798\nVMUL.F32        S0, S2, S0                                             ; +0x30, 0xa379c\nVSTR            S0, [R0,#0x18C]                                        ; +0x34, 0xa37a0\nADD.W           R0, R0, #0x188                                         ; +0x38, 0xa37a4\nSTR             R0, [R2]                                               ; +0x3c, 0xa37a8\nMOV.W           R0, #8                                                 ; +0x3e, 0xa37aa\nSTR             R0, [R3]                                               ; +0x42, 0xa37ae\nMOV.W           R0, #0                                                 ; +0x44, 0xa37b0\nCBZ             R1, locret_A37B8                                       ; +0x48, 0xa37b4\nSTRB            R0, [R1]                                               ; +0x4a, 0xa37b6\nPOP             {R4,R6,R7,PC}                                          ; +0x4c, 0xa37b8", "xrefs": ["sub_A3854 @ 0xa3856"], "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"}