{"type": "func", "start": 346420, "end": 346542, "name": "sub_54934", "pseudocode": "// \n// sub_54934 from 0x54934 to 0x549ae (122 bytes)\n// \n// 1 xrefs:\n// > sub_469A4 @ 0x469c2\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_54934(int a1, _DWORD *a2, int a3)\n{\n  int v4; // r1\n  int v5; // r1\n  int result; // r0\n\n  v4 = *(_DWORD *)(a1 + 188);\n  __dmb(0xBu);\n  if ( v4 )\n  {\n    v5 = *(_DWORD *)(a1 + 188);\n    __dmb(0xBu);\n    if ( v5 != 7 )\n      return 46;\n  }\n  if ( !a2 )\n    return 31;\n  switch ( a3 )\n  {\n    case 1:\n      *a2 = (unsigned int)(float)((float)((float)*(unsigned int *)(a1 + 252) * 0.001) * *(float *)(a1 + 80));\n      break;\n    case 4:\n      sub_54322(a1, *(_DWORD *)(a1 + 252), a2);\n      break;\n    case 2:\n      *a2 = *(_DWORD *)(a1 + 252);\n      break;\n    default:\n      result = sub_B0AC0(*(_DWORD *)(a1 + 72), a2, a3);\n      if ( result )\n        return result;\n      break;\n  }\n  return 0;\n}", "assembly": "; \n; sub_54934 from 0x54934 to 0x549ae (122 bytes)\n; \n; 1 xrefs:\n; > sub_469A4 @ 0x469c2\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            {R7,LR}                                                ; +0x0, 0x54934\nMOV             R7, SP                                                 ; +0x2, 0x54936\nMOV             R3, R1                                                 ; +0x4, 0x54938\nLDR.W           R1, [R0,#0xBC]                                         ; +0x6, 0x5493a\nDMB.W           ISH                                                    ; +0xa, 0x5493e\nCBZ             R1, loc_54954                                          ; +0xe, 0x54942\nLDR.W           R1, [R0,#0xBC]                                         ; +0x10, 0x54944\nDMB.W           ISH                                                    ; +0x14, 0x54948\nCMP             R1, #7                                                 ; +0x18, 0x5494c\nITT NE                                                                 ; +0x1a, 0x5494e\nMOVNE           R0, #0x2E ; '.'                                        ; +0x1c, 0x54950\nPOPNE           {R7,PC}                                                ; +0x1e, 0x54952\nCBZ             R3, loc_5496A                                          ; +0x20, 0x54954\nCMP             R2, #1                                                 ; +0x22, 0x54956\nBEQ             loc_5496E                                              ; +0x24, 0x54958\nCMP             R2, #4                                                 ; +0x26, 0x5495a\nBEQ             loc_54990                                              ; +0x28, 0x5495c\nCMP             R2, #2                                                 ; +0x2a, 0x5495e\nBNE             loc_5499E                                              ; +0x2c, 0x54960\nLDR.W           R0, [R0,#0xFC]                                         ; +0x2e, 0x54962\nSTR             R0, [R3]                                               ; +0x32, 0x54966\nB               loc_549AA                                              ; +0x34, 0x54968\nMOVS            R0, #0x1F                                              ; +0x36, 0x5496a\nPOP             {R7,PC}                                                ; +0x38, 0x5496c\nVLDR            S2, [R0,#0xFC]                                         ; +0x3a, 0x5496e\nVLDR            S0, [R0,#0x50]                                         ; +0x3e, 0x54972\nVCVT.F32.U32    S2, S2                                                 ; +0x42, 0x54976\nVLDR            S4, =0.001                                             ; +0x46, 0x5497a\nVMUL.F32        S2, S2, S4                                             ; +0x4a, 0x5497e\nVMUL.F32        S0, S2, S0                                             ; +0x4e, 0x54982\nVCVT.U32.F32    S0, S0                                                 ; +0x52, 0x54986\nVSTR            S0, [R3]                                               ; +0x56, 0x5498a\nB               loc_549AA                                              ; +0x5a, 0x5498e\nLDR.W           R1, [R0,#0xFC]                                         ; +0x5c, 0x54990\nMOV             R2, R3                                                 ; +0x60, 0x54994\nMOVS            R3, #1                                                 ; +0x62, 0x54996\nBL              sub_54322                                              ; +0x64, 0x54998\nB               loc_549AA                                              ; +0x68, 0x5499c\nLDR             R0, [R0,#0x48]                                         ; +0x6a, 0x5499e\nMOV             R1, R3                                                 ; +0x6c, 0x549a0\nBL              sub_B0AC0                                              ; +0x6e, 0x549a2\nCBZ             R0, loc_549AA                                          ; +0x72, 0x549a6\nPOP             {R7,PC}                                                ; +0x74, 0x549a8\nMOVS            R0, #0                                                 ; +0x76, 0x549aa\nPOP             {R7,PC}                                                ; +0x78, 0x549ac", "xrefs": ["sub_469A4 @ 0x469c2"], "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"}