{"type": "func", "start": 336448, "end": 336518, "name": "sub_52240", "pseudocode": "// \n// sub_52240 from 0x52240 to 0x52286 (70 bytes)\n// \n// 0 xrefs:\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:44 +0000\n// \n\nint __fastcall sub_52240(int a1)\n{\n  _DWORD *v2; // r5\n  int v3; // r0\n  int v4; // r4\n  int v6; // [sp+0h] [bp-18h] BYREF\n  char v7; // [sp+4h] [bp-14h]\n\n  v6 = *(_DWORD *)(a1 + 32);\n  j_FMOD_OS_CriticalSection_Enter(v6);\n  v7 = 1;\n  v2 = (_DWORD *)(a1 + 8);\n  while ( 1 )\n  {\n    v2 = (_DWORD *)*v2;\n    if ( v2 == (_DWORD *)(a1 + 8) )\n      break;\n    v3 = sub_6B24C(v2);\n    if ( v3 )\n    {\n      v4 = v3;\n      goto LABEL_6;\n    }\n  }\n  v4 = 0;\nLABEL_6:\n  sub_44984((int)&v6);\n  return v4;\n}", "assembly": "; \n; sub_52240 from 0x52240 to 0x52286 (70 bytes)\n; \n; 0 xrefs:\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:44 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x52240\nADD             R7, SP, #0xC                                           ; +0x2, 0x52242\nPUSH.W          {R11}                                                  ; +0x4, 0x52244\nSUB             SP, SP, #8                                             ; +0x8, 0x52248\nMOV             R4, R0                                                 ; +0xa, 0x5224a\nLDR             R0, [R0,#0x20]                                         ; +0xc, 0x5224c\nSTR             R0, [SP,#8+var_8]                                      ; +0xe, 0x5224e\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x10, 0x52250\nADD.W           R6, R4, #8                                             ; +0x14, 0x52254\nMOVS            R0, #1                                                 ; +0x18, 0x52258\nSTRB.W          R0, [SP,#8+var_4]                                      ; +0x1a, 0x5225a\nMOV             R5, R6                                                 ; +0x1e, 0x5225e\nLDR             R5, [R5]                                               ; +0x20, 0x52260\nCMP             R5, R6                                                 ; +0x22, 0x52262\nBEQ             loc_52274                                              ; +0x24, 0x52264\nMOV             R0, R5                                                 ; +0x26, 0x52266\nBL              sub_6B24C                                              ; +0x28, 0x52268\nCMP             R0, #0                                                 ; +0x2c, 0x5226c\nBEQ             loc_52260                                              ; +0x2e, 0x5226e\nMOV             R4, R0                                                 ; +0x30, 0x52270\nB               loc_52276                                              ; +0x32, 0x52272\nMOVS            R4, #0                                                 ; +0x34, 0x52274\nMOV             R0, SP                                                 ; +0x36, 0x52276\nBL              sub_44984                                              ; +0x38, 0x52278\nMOV             R0, R4                                                 ; +0x3c, 0x5227c\nADD             SP, SP, #8                                             ; +0x3e, 0x5227e\nPOP.W           {R11}                                                  ; +0x40, 0x52280\nPOP             {R4-R7,PC}                                             ; +0x44, 0x52284", "xrefs": [], "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"}