{"type": "func", "start": 620576, "end": 620638, "name": "sub_97820", "pseudocode": "// \n// sub_97820 from 0x97820 to 0x9785e (62 bytes)\n// \n// 1 xrefs:\n// > sub_978C2 @ 0x978c8\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:29 +0000\n// \n\nint __fastcall sub_97820(int a1, int a2, _DWORD *a3, int a4)\n{\n  float v4; // s0\n\n  if ( a2 == 1 )\n  {\n    *a3 = *(_DWORD *)(a1 + 996);\n    if ( a4 )\n    {\n      v4 = *(float *)(a1 + 996);\n      goto LABEL_7;\n    }\n  }\n  else if ( !a2 )\n  {\n    *a3 = *(_DWORD *)(a1 + 1000);\n    if ( a4 )\n    {\n      v4 = *(float *)(a1 + 1000);\nLABEL_7:\n      sub_BE420(a4, 32, \"%.02f\", v4);\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_97820 from 0x97820 to 0x9785e (62 bytes)\n; \n; 1 xrefs:\n; > sub_978C2 @ 0x978c8\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:29 +0000\n; \nPUSH            {R5-R7,LR}                                             ; +0x0, 0x97820\nADD             R7, SP, #8                                             ; +0x2, 0x97822\nCMP             R1, #1                                                 ; +0x4, 0x97824\nBEQ             loc_97838                                              ; +0x6, 0x97826\nCBNZ            R1, loc_97858                                          ; +0x8, 0x97828\nLDR.W           R1, [R0,#0x3E8]                                        ; +0xa, 0x9782a\nSTR             R1, [R2]                                               ; +0xe, 0x9782e\nCBZ             R3, loc_97858                                          ; +0x10, 0x97830\nVLDR            S0, [R0,#0x3E8]                                        ; +0x12, 0x97832\nB               loc_97844                                              ; +0x16, 0x97836\nLDR.W           R1, [R0,#0x3E4]                                        ; +0x18, 0x97838\nSTR             R1, [R2]                                               ; +0x1c, 0x9783c\nCBZ             R3, loc_97858                                          ; +0x1e, 0x9783e\nVLDR            S0, [R0,#0x3E4]                                        ; +0x20, 0x97840\nVCVT.F64.F32    D0, S0                                                 ; +0x24, 0x97844\nMOV             R0, R3                                                 ; +0x28, 0x97848\nMOVS            R1, #0x20 ; ' '                                        ; +0x2a, 0x9784a\nVSTR            D0, [SP,#var_s0]                                       ; +0x2c, 0x9784c\nLDR             R2, =(a02f - 0x97856); \"%.02f\" ...                     ; +0x30, 0x97850\nADD             R2, PC; \"%.02f\"                                        ; +0x32, 0x97852\nBL              sub_BE420                                              ; +0x34, 0x97854\nMOVS            R0, #0                                                 ; +0x38, 0x97858\nADD             SP, SP, #8                                             ; +0x3a, 0x9785a\nPOP             {R7,PC}                                                ; +0x3c, 0x9785c", "xrefs": ["sub_978C2 @ 0x978c8"], "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"}