{"type": "func", "start": 829760, "end": 829888, "name": "sub_CA940", "pseudocode": "// \n// sub_CA940 from 0xca940 to 0xca9c0 (128 bytes)\n// \n// 2 xrefs:\n// > sub_C79C0 @ 0xc7a90\n// > sub_CA7BC @ 0xca838\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:48 +0000\n// \n\n__int64 __fastcall sub_CA940(__int64 *a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x1\n  unsigned int v4; // w20\n  __int64 v5; // x1\n  __int64 v6; // x8\n  __int64 v7; // x1\n  __int64 v8; // x2\n  _BYTE v10[16]; // [xsp+0h] [xbp-20h] BYREF\n\n  v2 = sub_CD07C(v10);\n  v3 = a1[67];\n  if ( !v3 || (v2 = sub_7CACC(a1[21], v3), (v4 = v2) == 0) )\n  {\n    v5 = a1[66];\n    a1[67] = 0;\n    a1[66] = 0;\n    if ( v5 )\n    {\n      sub_CD30C(v2);\n      sub_E2D74(*(_QWORD *)(*(_QWORD *)v6 + 432LL), v7, v8, 5974, 1);\n    }\n    v4 = 0;\n  }\n  sub_51F94((__int64)v10);\n  return v4;\n}", "assembly": "; \n; sub_CA940 from 0xca940 to 0xca9c0 (128 bytes)\n; \n; 2 xrefs:\n; > sub_C79C0 @ 0xc7a90\n; > sub_CA7BC @ 0xca838\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:48 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0xca940\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0xca944\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0xca948\nLDR             X8, [X0,#0xA8]                                         ; +0xc, 0xca94c\nMOV             X19, X0                                                ; +0x10, 0xca950\nMOV             W9, #7                                                 ; +0x14, 0xca954\nMOV             X0, SP                                                 ; +0x18, 0xca958\nADD             X29, SP, #0x20                                         ; +0x1c, 0xca95c\nBL              sub_CD07C                                              ; +0x20, 0xca960\nLDR             X1, [X19,#0x218]                                       ; +0x24, 0xca964\nCBZ             X1, loc_CA97C                                          ; +0x28, 0xca968\nLDR             X0, [X19,#0xA8]                                        ; +0x2c, 0xca96c\nBL              sub_7CACC                                              ; +0x30, 0xca970\nMOV             W20, W0                                                ; +0x34, 0xca974\nCBNZ            W0, loc_CA9A8                                          ; +0x38, 0xca978\nLDR             X1, [X19,#0x210]                                       ; +0x3c, 0xca97c\nSTR             XZR, [X19,#0x218]                                      ; +0x40, 0xca980\nSTR             XZR, [X19,#0x210]                                      ; +0x44, 0xca984\nCBZ             X1, loc_CA9A4                                          ; +0x48, 0xca988\nBL              sub_CD30C                                              ; +0x4c, 0xca98c\nMOV             W3, #0x1756                                            ; +0x50, 0xca990\nLDR             X8, [X8]                                               ; +0x54, 0xca994\nMOV             W4, #1                                                 ; +0x58, 0xca998\nLDR             X0, [X8,#0x1B0]                                        ; +0x5c, 0xca99c\nBL              sub_E2D74                                              ; +0x60, 0xca9a0\nMOV             W20, WZR                                               ; +0x64, 0xca9a4\nMOV             X0, SP                                                 ; +0x68, 0xca9a8\nBL              sub_51F94                                              ; +0x6c, 0xca9ac\nMOV             W0, W20                                                ; +0x70, 0xca9b0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0xca9b4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0xca9b8\nB               loc_CD374                                              ; +0x7c, 0xca9bc", "xrefs": ["sub_C79C0 @ 0xc7a90", "sub_CA7BC @ 0xca838"], "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"}