{"type": "func", "start": 535760, "end": 535872, "name": "sub_82CD0", "pseudocode": "// \n// sub_82CD0 from 0x82cd0 to 0x82d40 (112 bytes)\n// \n// 3 xrefs:\n// > sub_82B20 @ 0x82be4\n// > sub_82D40 @ 0x82d74\n// > sub_82DE0 @ 0x82e24\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:08 +0000\n// \n\n__int64 sub_82CD0()\n{\n  __int64 v0; // x19\n  __int64 v1; // x0\n  int v2; // w8\n  int i; // w21\n  unsigned int v4; // w0\n  unsigned int v5; // w20\n  __int64 v7; // [xsp+0h] [xbp-40h] BYREF\n\n  v1 = sub_839E8();\n  sub_83A20(v1);\n  v2 = *(_DWORD *)(v0 + 60);\n  if ( v2 < 1 )\n  {\n    v5 = 0;\n  }\n  else\n  {\n    for ( i = 0; ; ++i )\n    {\n      if ( i >= v2 )\n      {\n        v5 = 0;\n        *(_DWORD *)(v0 + 60) = 0;\n        goto LABEL_9;\n      }\n      v4 = sub_E71C0(*(_QWORD *)(v0 + 48));\n      if ( v4 )\n        break;\n      v2 = *(_DWORD *)(v0 + 60);\n    }\n    v5 = v4;\n  }\nLABEL_9:\n  sub_52090((__int64)&v7);\n  return v5;\n}", "assembly": "; \n; sub_82CD0 from 0x82cd0 to 0x82d40 (112 bytes)\n; \n; 3 xrefs:\n; > sub_82B20 @ 0x82be4\n; > sub_82D40 @ 0x82d74\n; > sub_82DE0 @ 0x82e24\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:08 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x82cd0\nSTP             X20, X19, [SP,#0x40+var_20]                            ; +0x4, 0x82cd4\nSTP             X29, X30, [SP,#0x40+var_10]                            ; +0x8, 0x82cd8\nBL              sub_839E8                                              ; +0xc, 0x82cdc\nBL              sub_83A20                                              ; +0x10, 0x82ce0\nLDR             W8, [X19,#0x3C]                                        ; +0x14, 0x82ce4\nCMP             W8, #1                                                 ; +0x18, 0x82ce8\nB.LT            loc_82D14                                              ; +0x1c, 0x82cec\nMOV             W21, WZR                                               ; +0x20, 0x82cf0\nCMP             W21, W8                                                ; +0x24, 0x82cf4\nB.GE            loc_82D1C                                              ; +0x28, 0x82cf8\nLDR             X0, [X19,#0x30]                                        ; +0x2c, 0x82cfc\nBL              sub_E71C0                                              ; +0x30, 0x82d00\nCBNZ            W0, loc_82D28                                          ; +0x34, 0x82d04\nLDR             W8, [X19,#0x3C]                                        ; +0x38, 0x82d08\nADD             W21, W21, #1                                           ; +0x3c, 0x82d0c\nB               loc_82CF4                                              ; +0x40, 0x82d10\nMOV             W20, WZR                                               ; +0x44, 0x82d14\nB               loc_82D2C                                              ; +0x48, 0x82d18\nMOV             W20, WZR                                               ; +0x4c, 0x82d1c\nSTR             WZR, [X19,#0x3C]                                       ; +0x50, 0x82d20\nB               loc_82D2C                                              ; +0x54, 0x82d24\nMOV             W20, W0                                                ; +0x58, 0x82d28\nMOV             X0, SP                                                 ; +0x5c, 0x82d2c\nBL              sub_52090                                              ; +0x60, 0x82d30\nMOV             W0, W20                                                ; +0x64, 0x82d34\nLDP             X29, X30, [SP,#0x40+var_10]                            ; +0x68, 0x82d38\nB               loc_83A2C                                              ; +0x6c, 0x82d3c", "xrefs": ["sub_82B20 @ 0x82be4", "sub_82D40 @ 0x82d74", "sub_82DE0 @ 0x82e24"], "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"}