{"type": "func", "start": 538780, "end": 538864, "name": "sub_8389C", "pseudocode": "// \n// sub_8389C from 0x8389c to 0x838f0 (84 bytes)\n// \n// 1 xrefs:\n// > sub_639EC @ 0x63a3c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:08 +0000\n// \n\n__int64 __fastcall sub_8389C(__int64 a1, unsigned __int8 *a2)\n{\n  __int64 i; // x10\n  int v3; // w11\n\n  if ( !*(_BYTE *)(a1 + 720) )\n  {\n    for ( i = 0; i != 512; i += 16 )\n    {\n      if ( *(unsigned __int8 *)(a1 + i + 724) == *a2 )\n      {\n        v3 = *(unsigned __int8 *)(a1 + i + 725);\n        if ( v3 == 255 || v3 == a2[1] )\n          return 1;\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_8389C from 0x8389c to 0x838f0 (84 bytes)\n; \n; 1 xrefs:\n; > sub_639EC @ 0x63a3c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:08 +0000\n; \nLDRB            W8, [X0,#0x2D0]                                        ; +0x0, 0x8389c\nCBNZ            W8, loc_838E0                                          ; +0x4, 0x838a0\nLDRB            W8, [X1]                                               ; +0x8, 0x838a4\nLDRB            W9, [X1,#1]                                            ; +0xc, 0x838a8\nMOV             X10, XZR                                               ; +0x10, 0x838ac\nCMP             X10, #0x200                                            ; +0x14, 0x838b0\nB.EQ            loc_838E0                                              ; +0x18, 0x838b4\nADD             X11, X0, X10                                           ; +0x1c, 0x838b8\nLDRB            W12, [X11,#0x2D4]                                      ; +0x20, 0x838bc\nCMP             W12, W8                                                ; +0x24, 0x838c0\nB.NE            loc_838D8                                              ; +0x28, 0x838c4\nLDRB            W11, [X11,#0x2D5]                                      ; +0x2c, 0x838c8\nCMP             W11, #0xFF                                             ; +0x30, 0x838cc\nCCMP            W11, W9, #4, NE                                        ; +0x34, 0x838d0\nB.EQ            loc_838E8                                              ; +0x38, 0x838d4\nADD             X10, X10, #0x10                                        ; +0x3c, 0x838d8\nB               loc_838B0                                              ; +0x40, 0x838dc\nMOV             W0, WZR                                                ; +0x44, 0x838e0\nRET                                                                    ; +0x48, 0x838e4\nMOV             W0, #1                                                 ; +0x4c, 0x838e8\nRET                                                                    ; +0x50, 0x838ec", "xrefs": ["sub_639EC @ 0x63a3c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}