{"type": "func", "start": 438140, "end": 438190, "name": "sub_6AF7C", "pseudocode": "// \n// sub_6AF7C from 0x6af7c to 0x6afae (50 bytes)\n// \n// 1 xrefs:\n// > sub_6B782 @ 0x6b812\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:40:57 +0000\n// \n\nint __fastcall sub_6AF7C(int a1)\n{\n  __int64 v2; // kr00_8\n  int v3; // r4\n  int v5; // [sp+0h] [bp-18h] BYREF\n  char v6; // [sp+4h] [bp-14h]\n\n  v5 = *(_DWORD *)(a1 + 24);\n  j_FMOD_OS_CriticalSection_Enter(v5);\n  v6 = 1;\n  v2 = *(_QWORD *)(a1 + 4);\n  v3 = *(_DWORD *)(a1 + 12);\n  sub_44984((int)&v5);\n  return v2 - HIDWORD(v2) + v3;\n}", "assembly": "; \n; sub_6AF7C from 0x6af7c to 0x6afae (50 bytes)\n; \n; 1 xrefs:\n; > sub_6B782 @ 0x6b812\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:40:57 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x6af7c\nADD             R7, SP, #0xC                                           ; +0x2, 0x6af7e\nPUSH.W          {R11}                                                  ; +0x4, 0x6af80\nSUB             SP, SP, #8                                             ; +0x8, 0x6af84\nMOV             R4, R0                                                 ; +0xa, 0x6af86\nLDR             R0, [R0,#0x18]                                         ; +0xc, 0x6af88\nSTR             R0, [SP,#8+var_8]                                      ; +0xe, 0x6af8a\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x10, 0x6af8c\nMOVS            R0, #1                                                 ; +0x14, 0x6af90\nSTRB.W          R0, [SP,#8+var_4]                                      ; +0x16, 0x6af92\nMOV             R0, SP                                                 ; +0x1a, 0x6af96\nLDRD.W          R5, R6, [R4,#4]                                        ; +0x1c, 0x6af98\nLDR             R4, [R4,#0xC]                                          ; +0x20, 0x6af9c\nBL              sub_44984                                              ; +0x22, 0x6af9e\nSUBS            R0, R5, R6                                             ; +0x26, 0x6afa2\nADD             R0, R4                                                 ; +0x28, 0x6afa4\nADD             SP, SP, #8                                             ; +0x2a, 0x6afa6\nPOP.W           {R11}                                                  ; +0x2c, 0x6afa8\nPOP             {R4-R7,PC}                                             ; +0x30, 0x6afac", "xrefs": ["sub_6B782 @ 0x6b812"], "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"}