{"type": "func", "start": 404968, "end": 405076, "name": "sub_62DE8", "pseudocode": "// \n// sub_62DE8 from 0x62de8 to 0x62e54 (108 bytes)\n// \n// 1 xrefs:\n// > sub_6C05C @ 0x6c0a8\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:13:54 +0000\n// \n\n__int64 __fastcall sub_62DE8(__int64 a1, __int64 a2, int a3, _DWORD *a4)\n{\n  __int64 result; // x0\n  int v8; // w21\n  __int64 v9; // x0\n\n  result = 31;\n  if ( (a3 & 0x80000000) == 0 && a4 )\n  {\n    v8 = a2;\n    v9 = sub_629A8(a1, a2);\n    if ( v9 )\n    {\n      if ( *(_DWORD *)v9 > a3 )\n      {\n        v8 = *(_DWORD *)(*(_QWORD *)(v9 + 8) + 4LL * a3);\nLABEL_8:\n        *a4 = v8;\n        return 0;\n      }\n    }\n    else if ( !a3 )\n    {\n      goto LABEL_8;\n    }\n    return 31;\n  }\n  return result;\n}", "assembly": "; \n; sub_62DE8 from 0x62de8 to 0x62e54 (108 bytes)\n; \n; 1 xrefs:\n; > sub_6C05C @ 0x6c0a8\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:13:54 +0000\n; \nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x62de8\nMOV             X8, X0                                                 ; +0x4, 0x62dec\nMOV             W0, #0x1F                                              ; +0x8, 0x62df0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x62df4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x62df8\nADD             X29, SP, #0x20                                         ; +0x14, 0x62dfc\nTBNZ            W2, #0x1F, loc_62E4C                                   ; +0x18, 0x62e00\nMOV             X19, X3                                                ; +0x1c, 0x62e04\nCBZ             X3, loc_62E4C                                          ; +0x20, 0x62e08\nMOV             X0, X8                                                 ; +0x24, 0x62e0c\nMOV             W20, W2                                                ; +0x28, 0x62e10\nMOV             W21, W1                                                ; +0x2c, 0x62e14\nBL              sub_629A8                                              ; +0x30, 0x62e18\nCBZ             X0, loc_62E38                                          ; +0x34, 0x62e1c\nLDR             W8, [X0]                                               ; +0x38, 0x62e20\nCMP             W8, W20                                                ; +0x3c, 0x62e24\nB.LE            loc_62E3C                                              ; +0x40, 0x62e28\nLDR             X8, [X0,#8]                                            ; +0x44, 0x62e2c\nLDR             W21, [X8,W20,SXTW#2]                                   ; +0x48, 0x62e30\nB               loc_62E44                                              ; +0x4c, 0x62e34\nCBZ             W20, loc_62E44                                         ; +0x50, 0x62e38\nMOV             W0, #0x1F                                              ; +0x54, 0x62e3c\nB               loc_62E4C                                              ; +0x58, 0x62e40\nMOV             W0, WZR                                                ; +0x5c, 0x62e44\nSTR             W21, [X19]                                             ; +0x60, 0x62e48\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x64, 0x62e4c\nB               loc_635B8                                              ; +0x68, 0x62e50", "xrefs": ["sub_6C05C @ 0x6c0a8"], "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"}