{"type": "func", "start": 336268, "end": 336344, "name": "sub_5218C", "pseudocode": "// \n// sub_5218C from 0x5218c to 0x521d8 (76 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c068\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall sub_5218C(__int64 a1)\n{\n  __int64 (__fastcall ***v2)(_QWORD); // x0\n  __int64 v3; // x8\n\n  v2 = *(__int64 (__fastcall ****)(_QWORD))(a1 + 40);\n  if ( v2 && ((**v2)(v2) & 1) != 0 )\n  {\n    v3 = *(_QWORD *)(*(_QWORD *)(a1 + 40) + 376LL);\n    if ( v3 )\n      *(_BYTE *)(v3 + 136) = 1;\n  }\n  JUMPOUT(0x5253C);\n}", "assembly": "; \n; sub_5218C from 0x5218c to 0x521d8 (76 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c068\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x5218c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x52190\nMOV             X19, X0                                                ; +0x8, 0x52194\nLDR             X0, [X0,#0x28]                                         ; +0xc, 0x52198\nADD             X29, SP, #0x10                                         ; +0x10, 0x5219c\nCBZ             X0, loc_521C8                                          ; +0x14, 0x521a0\nLDR             X8, [X0]                                               ; +0x18, 0x521a4\nLDR             X8, [X8]                                               ; +0x1c, 0x521a8\nBLR             X8                                                     ; +0x20, 0x521ac\nTBZ             W0, #0, loc_521C8                                      ; +0x24, 0x521b0\nLDR             X8, [X19,#0x28]                                        ; +0x28, 0x521b4\nLDR             X8, [X8,#0x178]                                        ; +0x2c, 0x521b8\nCBZ             X8, loc_521C8                                          ; +0x30, 0x521bc\nMOV             W9, #1                                                 ; +0x34, 0x521c0\nSTRB            W9, [X8,#0x88]                                         ; +0x38, 0x521c4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x521c8\nMOV             X0, X19                                                ; +0x40, 0x521cc\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x44, 0x521d0\nB               loc_5253C                                              ; +0x48, 0x521d4", "xrefs": ["<???> @ 0x10c068"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}