{"type": "func", "start": 309520, "end": 309614, "name": "sub_4B910", "pseudocode": "// \n// sub_4B910 from 0x4b910 to 0x4b96e (94 bytes)\n// \n// 2 xrefs:\n// > sub_57338 @ 0x57438\n// > sub_79B94 @ 0x79c8e\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:41 +0000\n// \n\nint __fastcall sub_4B910(_DWORD *a1)\n{\n  int v2; // r0\n  unsigned int *v3; // r0\n  unsigned int v4; // r1\n  int v5; // r0\n  unsigned int *v6; // r0\n  unsigned int v7; // r1\n  int result; // r0\n\n  sub_4A9A4(a1, 83);\n  v2 = a1[16];\n  if ( !v2 )\n    goto LABEL_8;\n  v3 = (unsigned int *)(v2 + 92);\n  __dmb(0xBu);\n  do\n    v4 = __ldrex(v3);\n  while ( __strex(v4 & 0xFFFFFFDF, v3) );\n  __dmb(0xBu);\n  v5 = a1[16];\n  __dmb(0xBu);\n  v6 = (unsigned int *)(v5 + 92);\n  do\n    v7 = __ldrex(v6);\n  while ( __strex(v7 & 0xFFFFFFBF, v6) );\n  __dmb(0xBu);\n  result = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)a1[16] + 8))(a1[16]);\n  if ( !result )\n  {\n    a1[16] = 0;\nLABEL_8:\n    a1[14] = 0;\n    a1[15] = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_4B910 from 0x4b910 to 0x4b96e (94 bytes)\n; \n; 2 xrefs:\n; > sub_57338 @ 0x57438\n; > sub_79B94 @ 0x79c8e\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:41 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x4b910\nADD             R7, SP, #8                                             ; +0x2, 0x4b912\nMOVS            R1, #0x53 ; 'S'                                        ; +0x4, 0x4b914\nMOV             R4, R0                                                 ; +0x6, 0x4b916\nBL              sub_4A9A4                                              ; +0x8, 0x4b918\nLDR             R0, [R4,#0x40]                                         ; +0xc, 0x4b91c\nCBZ             R0, loc_4B966                                          ; +0xe, 0x4b91e\nADDS            R0, #0x5C ; '\\'                                        ; +0x10, 0x4b920\nDMB.W           ISH                                                    ; +0x12, 0x4b922\nLDREX.W         R1, [R0]                                               ; +0x16, 0x4b926\nBIC.W           R1, R1, #0x20 ; ' '                                    ; +0x1a, 0x4b92a\nSTREX.W         R2, R1, [R0]                                           ; +0x1e, 0x4b92e\nCMP             R2, #0                                                 ; +0x22, 0x4b932\nBNE             loc_4B926                                              ; +0x24, 0x4b934\nDMB.W           ISH                                                    ; +0x26, 0x4b936\nLDR             R0, [R4,#0x40]                                         ; +0x2a, 0x4b93a\nDMB.W           ISH                                                    ; +0x2c, 0x4b93c\nADDS            R0, #0x5C ; '\\'                                        ; +0x30, 0x4b940\nLDREX.W         R1, [R0]                                               ; +0x32, 0x4b942\nBIC.W           R1, R1, #0x40 ; '@'                                    ; +0x36, 0x4b946\nSTREX.W         R2, R1, [R0]                                           ; +0x3a, 0x4b94a\nCMP             R2, #0                                                 ; +0x3e, 0x4b94e\nBNE             loc_4B942                                              ; +0x40, 0x4b950\nDMB.W           ISH                                                    ; +0x42, 0x4b952\nLDR             R0, [R4,#0x40]                                         ; +0x46, 0x4b956\nLDR             R1, [R0]                                               ; +0x48, 0x4b958\nLDR             R1, [R1,#8]                                            ; +0x4a, 0x4b95a\nBLX             R1                                                     ; +0x4c, 0x4b95c\nCBZ             R0, loc_4B962                                          ; +0x4e, 0x4b95e\nPOP             {R4,R6,R7,PC}                                          ; +0x50, 0x4b960\nMOVS            R0, #0                                                 ; +0x52, 0x4b962\nSTR             R0, [R4,#0x40]                                         ; +0x54, 0x4b964\nMOVS            R0, #0                                                 ; +0x56, 0x4b966\nSTRD.W          R0, R0, [R4,#0x38]                                     ; +0x58, 0x4b968\nPOP             {R4,R6,R7,PC}                                          ; +0x5c, 0x4b96c", "xrefs": ["sub_57338 @ 0x57438", "sub_79B94 @ 0x79c8e"], "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"}