{"type": "func", "start": 438190, "end": 438228, "name": "sub_6AFAE", "pseudocode": "// \n// sub_6AFAE from 0x6afae to 0x6afd4 (38 bytes)\n// \n// 2 xrefs:\n// > sub_6B24C @ 0x6b2c0\n// > sub_6B24C @ 0x6b2cc\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\nint __fastcall sub_6AFAE(int a1)\n{\n  int result; // r0\n\n  *(_BYTE *)(a1 + 20) = 1;\n  result = sub_C0668(*(_DWORD *)(a1 + 28));\n  if ( !result )\n  {\n    result = sub_C0668(*(_DWORD *)(a1 + 32));\n    if ( !result )\n      return sub_6AEEE((_DWORD *)a1);\n  }\n  return result;\n}", "assembly": "; \n; sub_6AFAE from 0x6afae to 0x6afd4 (38 bytes)\n; \n; 2 xrefs:\n; > sub_6B24C @ 0x6b2c0\n; > sub_6B24C @ 0x6b2cc\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\nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x6afae\nADD             R7, SP, #8                                             ; +0x2, 0x6afb0\nMOV             R4, R0                                                 ; +0x4, 0x6afb2\nMOVS            R0, #1                                                 ; +0x6, 0x6afb4\nSTRB            R0, [R4,#0x14]                                         ; +0x8, 0x6afb6\nLDR             R0, [R4,#0x1C]                                         ; +0xa, 0x6afb8\nBL              sub_C0668                                              ; +0xc, 0x6afba\nCBNZ            R0, locret_6AFC8                                       ; +0x10, 0x6afbe\nLDR             R0, [R4,#0x20]                                         ; +0x12, 0x6afc0\nBL              sub_C0668                                              ; +0x14, 0x6afc2\nCBZ             R0, loc_6AFCA                                          ; +0x18, 0x6afc6\nPOP             {R4,R6,R7,PC}                                          ; +0x1a, 0x6afc8\nMOV             R0, R4                                                 ; +0x1c, 0x6afca\nPOP.W           {R4,R6,R7,LR}                                          ; +0x1e, 0x6afcc\nB.W             sub_6AEEE                                              ; +0x22, 0x6afd0", "xrefs": ["sub_6B24C @ 0x6b2c0", "sub_6B24C @ 0x6b2cc"], "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"}