{"type": "func", "start": 415800, "end": 415872, "name": "sub_65838", "pseudocode": "// \n// sub_65838 from 0x65838 to 0x65880 (72 bytes)\n// \n// 1 xrefs:\n// > sub_657EC @ 0x65808\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:55 +0000\n// \n\n__int64 __fastcall sub_65838(__int64 a1, int a2)\n{\n  int v2; // w8\n  unsigned int v4; // w0\n  __int64 result; // x0\n\n  v2 = *(_DWORD *)(a1 + 12);\n  if ( v2 < 0 )\n    v2 = -v2;\n  if ( v2 >= a2 )\n    return 0;\n  v4 = sub_65880();\n  result = sub_65028(a1, v4);\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_65838 from 0x65838 to 0x65880 (72 bytes)\n; \n; 1 xrefs:\n; > sub_657EC @ 0x65808\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:55 +0000\n; \nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x65838\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x6583c\nLDR             W8, [X0,#0xC]                                          ; +0x8, 0x65840\nADD             X29, SP, #0x10                                         ; +0xc, 0x65844\nCMP             W8, #0                                                 ; +0x10, 0x65848\nCNEG            W8, W8, MI                                             ; +0x14, 0x6584c\nCMP             W8, W1                                                 ; +0x18, 0x65850\nB.GE            loc_65870                                              ; +0x1c, 0x65854\nMOV             X19, X0                                                ; +0x20, 0x65858\nBL              sub_65880                                              ; +0x24, 0x6585c\nMOV             W1, W0                                                 ; +0x28, 0x65860\nMOV             X0, X19                                                ; +0x2c, 0x65864\nBL              sub_65028                                              ; +0x30, 0x65868\nCBNZ            W0, loc_65874                                          ; +0x34, 0x6586c\nMOV             W0, WZR                                                ; +0x38, 0x65870\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x65874\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x40, 0x65878\nRET                                                                    ; +0x44, 0x6587c", "xrefs": ["sub_657EC @ 0x65808"], "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"}