{"type": "func", "start": 311438, "end": 311588, "name": "sub_4C08E", "pseudocode": "// \n// sub_4C08E from 0x4c08e to 0x4c124 (150 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:41 +0000\n// \n\nint __fastcall sub_4C08E(_DWORD *a1, int a2, int a3, int a4, int a5, int a6)\n{\n  int result; // r0\n  int v11; // r0\n  int v12; // r0\n  int v13; // r9\n  int v14; // [sp+10h] [bp-20h] BYREF\n\n  result = sub_47DCC((int)a1, a2, a3, a4, a5, a6);\n  if ( !result )\n  {\n    v11 = a1[83];\n    if ( v11 && a1[4] )\n    {\n      if ( a6 && (*(_BYTE *)(v11 + 28) & 0x10) != 0 )\n      {\n        return 0;\n      }\n      else\n      {\n        result = (*(int (__fastcall **)(_DWORD *, int, int *))(*a1 + 144))(a1, -2, &v14);\n        if ( !result )\n        {\n          v12 = a1[10];\n          v13 = v14;\n          if ( (v12 & 0x10000) != 0 )\n          {\n            sub_921B4(v14, v12 << 15);\n            v12 = a1[10];\n          }\n          return sub_92198(\n                   v13,\n                   a2,\n                   a3,\n                   a4,\n                   a5,\n                   ((v12 & 0xC0000) == 0) << 6,\n                   ((*(_DWORD *)(a1[83] + 32) & 0x10000u) >> 16) ^ 1);\n        }\n      }\n    }\n    else\n    {\n      return 30;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4C08E from 0x4c08e to 0x4c124 (150 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:41 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4c08e\nADD             R7, SP, #0xC                                           ; +0x2, 0x4c090\nPUSH.W          {R3-R11}                                               ; +0x4, 0x4c092\nLDR             R5, [R7,#-0x1C+arg_4]                                  ; +0x8, 0x4c096\nMOV             R8, R3                                                 ; +0xa, 0x4c098\nLDR.W           R10, [R7,#-0x1C+arg_0]                                 ; +0xc, 0x4c09a\nMOV             R11, R2                                                ; +0x10, 0x4c09e\nMOV             R6, R1                                                 ; +0x12, 0x4c0a0\nMOV             R4, R0                                                 ; +0x14, 0x4c0a2\nSTR             R5, [SP,#0x14+var_10]                                  ; +0x16, 0x4c0a4\nSTR.W           R10, [SP,#0x14+var_14]                                 ; +0x18, 0x4c0a6\nBL              sub_47DCC                                              ; +0x1c, 0x4c0aa\nCBNZ            R0, loc_4C118                                          ; +0x20, 0x4c0ae\nLDR.W           R0, [R4,#0x14C]                                        ; +0x22, 0x4c0b0\nCBZ             R0, loc_4C116                                          ; +0x26, 0x4c0b4\nLDR             R1, [R4,#0x10]                                         ; +0x28, 0x4c0b6\nCBZ             R1, loc_4C116                                          ; +0x2a, 0x4c0b8\nCBZ             R5, loc_4C0C2                                          ; +0x2c, 0x4c0ba\nLDRB            R0, [R0,#0x1C]                                         ; +0x2e, 0x4c0bc\nLSLS            R0, R0, #0x1B                                          ; +0x30, 0x4c0be\nBMI             loc_4C120                                              ; +0x32, 0x4c0c0\nLDR             R0, [R4]                                               ; +0x34, 0x4c0c2\nADD             R2, SP, #0x14+var_4                                    ; +0x36, 0x4c0c4\nMOV             R1, #0xFFFFFFFE                                        ; +0x38, 0x4c0c6\nLDR.W           R3, [R0,#0x90]                                         ; +0x3c, 0x4c0ca\nMOV             R0, R4                                                 ; +0x40, 0x4c0ce\nBLX             R3                                                     ; +0x42, 0x4c0d0\nCBNZ            R0, loc_4C118                                          ; +0x44, 0x4c0d2\nLDR             R0, [R4,#0x28]                                         ; +0x46, 0x4c0d4\nLDR.W           R9, [SP,#0x14+var_4]                                   ; +0x48, 0x4c0d6\nLSLS            R1, R0, #0xF                                           ; +0x4c, 0x4c0da\nBPL             loc_4C0E6                                              ; +0x4e, 0x4c0dc\nMOV             R0, R9                                                 ; +0x50, 0x4c0de\nBL              sub_921B4                                              ; +0x52, 0x4c0e0\nLDR             R0, [R4,#0x28]                                         ; +0x56, 0x4c0e4\nLDR.W           R1, [R4,#0x14C]                                        ; +0x58, 0x4c0e6\nAND.W           R0, R0, #0xC0000                                       ; +0x5c, 0x4c0ea\nCLZ.W           R0, R0                                                 ; +0x60, 0x4c0ee\nMOVS            R2, #1                                                 ; +0x64, 0x4c0f2\nMOV             R3, R8                                                 ; +0x66, 0x4c0f4\nLDR             R1, [R1,#0x20]                                         ; +0x68, 0x4c0f6\nLSRS            R0, R0, #5                                             ; +0x6a, 0x4c0f8\nLSLS            R0, R0, #6                                             ; +0x6c, 0x4c0fa\nAND.W           R1, R1, #0x10000                                       ; +0x6e, 0x4c0fc\nSTRD.W          R10, R0, [SP,#0x14+var_14]                             ; +0x72, 0x4c100\nMOV             R0, R9                                                 ; +0x76, 0x4c104\nEOR.W           R1, R2, R1,LSR#16                                      ; +0x78, 0x4c106\nSTR             R1, [SP,#0x14+var_C]                                   ; +0x7c, 0x4c10a\nMOV             R1, R6                                                 ; +0x7e, 0x4c10c\nMOV             R2, R11                                                ; +0x80, 0x4c10e\nBL              sub_92198                                              ; +0x82, 0x4c110\nB               loc_4C118                                              ; +0x86, 0x4c114\nMOVS            R0, #0x1E                                              ; +0x88, 0x4c116\nADD             SP, SP, #0x14                                          ; +0x8a, 0x4c118\nPOP.W           {R8-R11}                                               ; +0x8c, 0x4c11a\nPOP             {R4-R7,PC}                                             ; +0x90, 0x4c11e\nMOVS            R0, #0                                                 ; +0x92, 0x4c120\nB               loc_4C118                                              ; +0x94, 0x4c122", "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"}