{"type": "func", "start": 294622, "end": 294738, "name": "sub_47EDE", "pseudocode": "// \n// sub_47EDE from 0x47ede to 0x47f52 (116 bytes)\n// \n// 0 xrefs:\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_47EDE(int a1, __int64 a2, __int64 a3, int a4)\n{\n  int v5; // r5\n  bool v6; // zf\n  int result; // r0\n  int v8; // r1\n  int v9; // [sp+Ch] [bp-1Ch] BYREF\n\n  v5 = a2;\n  if ( *(_QWORD *)(a1 + 224) == a2 )\n  {\n    v6 = *(_QWORD *)(a1 + 232) == a3;\n    if ( *(_QWORD *)(a1 + 232) == a3 )\n      v6 = a4 == *(unsigned __int8 *)(a1 + 240);\n    if ( v6 )\n      return 0;\n  }\n  *(_BYTE *)(a1 + 240) = a4;\n  *(_QWORD *)(a1 + 224) = a2;\n  *(_QWORD *)(a1 + 232) = a3;\n  result = (*(int (__fastcall **)(int, _DWORD, int *))(*(_DWORD *)a1 + 144))(a1, 0, &v9);\n  if ( !result )\n  {\n    if ( v9 )\n      return sub_A7672(v9, v8, v5);\n    else\n      return 9;\n  }\n  return result;\n}", "assembly": "; \n; sub_47EDE from 0x47ede to 0x47f52 (116 bytes)\n; \n; 0 xrefs:\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-R7,LR}                                             ; +0x0, 0x47ede\nADD             R7, SP, #0xC                                           ; +0x2, 0x47ee0\nPUSH.W          {R4-R9,R11}                                            ; +0x4, 0x47ee2\nMOV             R5, R2                                                 ; +0x8, 0x47ee6\nLDRD.W          R1, R2, [R0,#0xE0]                                     ; +0xa, 0x47ee8\nLDRD.W          R6, R9, [R7,#-0x18+arg_0]                              ; +0xe, 0x47eec\nEORS            R2, R3                                                 ; +0x12, 0x47ef0\nLDR.W           R8, [R7,#-0x18+arg_8]                                  ; +0x14, 0x47ef2\nEORS            R1, R5                                                 ; +0x18, 0x47ef6\nMOV             R4, R3                                                 ; +0x1a, 0x47ef8\nORRS            R1, R2                                                 ; +0x1c, 0x47efa\nBNE             loc_47F14                                              ; +0x1e, 0x47efc\nLDRD.W          R1, R2, [R0,#0xE8]                                     ; +0x20, 0x47efe\nEOR.W           R2, R2, R9                                             ; +0x24, 0x47f02\nEORS            R1, R6                                                 ; +0x28, 0x47f06\nORRS            R1, R2                                                 ; +0x2a, 0x47f08\nITT EQ                                                                 ; +0x2c, 0x47f0a\nLDRBEQ.W        R1, [R0,#0xF0]                                         ; +0x2e, 0x47f0c\nCMPEQ           R8, R1                                                 ; +0x32, 0x47f10\nBEQ             loc_47F48                                              ; +0x34, 0x47f12\nSTRB.W          R8, [R0,#0xF0]                                         ; +0x36, 0x47f14\nADD             R2, SP, #0x10+var_4                                    ; +0x3a, 0x47f18\nSTRD.W          R5, R4, [R0,#0xE0]                                     ; +0x3c, 0x47f1a\nSTRD.W          R6, R9, [R0,#0xE8]                                     ; +0x40, 0x47f1e\nLDR             R1, [R0]                                               ; +0x44, 0x47f22\nLDR.W           R3, [R1,#0x90]                                         ; +0x46, 0x47f24\nMOVS            R1, #0                                                 ; +0x4a, 0x47f28\nBLX             R3                                                     ; +0x4c, 0x47f2a\nCBNZ            R0, loc_47F4A                                          ; +0x4e, 0x47f2c\nLDR             R0, [SP,#0x10+var_4]                                   ; +0x50, 0x47f2e\nCBZ             R0, loc_47F44                                          ; +0x52, 0x47f30\nMOV             R2, R5                                                 ; +0x54, 0x47f32\nMOV             R3, R4                                                 ; +0x56, 0x47f34\nSTRD.W          R6, R9, [SP,#0x10+var_10]                              ; +0x58, 0x47f36\nSTR.W           R8, [SP,#0x10+var_8]                                   ; +0x5c, 0x47f3a\nBL              sub_A7672                                              ; +0x60, 0x47f3e\nB               loc_47F4A                                              ; +0x64, 0x47f42\nMOVS            R0, #9                                                 ; +0x66, 0x47f44\nB               loc_47F4A                                              ; +0x68, 0x47f46\nMOVS            R0, #0                                                 ; +0x6a, 0x47f48\nADD             SP, SP, #0x10                                          ; +0x6c, 0x47f4a\nPOP.W           {R8,R9,R11}                                            ; +0x6e, 0x47f4c\nPOP             {R4-R7,PC}                                             ; +0x72, 0x47f50", "xrefs": [], "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"}