{"type": "func", "start": 336168, "end": 336200, "name": "sub_52128", "pseudocode": "// \n// sub_52128 from 0x52128 to 0x52148 (32 bytes)\n// \n// 2 xrefs:\n// > sub_51A54 @ 0x51af0\n// > sub_51A54 @ 0x51c28\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\n__int64 __usercall sub_52128@<X0>(\n        __int64 a1@<X1>,\n        __int64 a2@<X2>,\n        __int64 a3@<X8>,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        char a7)\n{\n  int v7; // w9\n  __int64 v8; // x19\n  __int64 v9; // x3\n  __int64 v10; // x4\n  __int64 v11; // x8\n  __int64 v12; // x5\n\n  v9 = *(unsigned int *)(a3 + 8);\n  v10 = *(unsigned int *)(a3 + 12);\n  v11 = a3 + 56;\n  if ( v7 )\n    v12 = v11;\n  else\n    v12 = 0;\n  return sub_78B30(v8, a1, a2, v9, v10, v12, 1, &a7);\n}", "assembly": "; \n; sub_52128 from 0x52128 to 0x52148 (32 bytes)\n; \n; 2 xrefs:\n; > sub_51A54 @ 0x51af0\n; > sub_51A54 @ 0x51c28\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\nLDP             W3, W4, [X8,#8]                                        ; +0x0, 0x52128\nADD             X8, X8, #0x38 ; '8'                                    ; +0x4, 0x5212c\nCMP             W9, #0                                                 ; +0x8, 0x52130\nCSEL            X5, XZR, X8, EQ                                        ; +0xc, 0x52134\nADD             X7, SP, #arg_18                                        ; +0x10, 0x52138\nMOV             W6, #1                                                 ; +0x14, 0x5213c\nMOV             X0, X19                                                ; +0x18, 0x52140\nB               sub_78B30                                              ; +0x1c, 0x52144", "xrefs": ["sub_51A54 @ 0x51af0", "sub_51A54 @ 0x51c28"], "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"}