{"type": "func", "start": 414196, "end": 414272, "name": "sub_651F4", "pseudocode": "// \n// sub_651F4 from 0x651f4 to 0x65240 (76 bytes)\n// \n// 5 xrefs:\n// > sub_651BC @ 0x651d0\n// > sub_656C4 @ 0x65720\n// > sub_856E0 @ 0x8573c\n// > sub_85A40 @ 0x85a9c\n// > sub_C2CA0 @ 0xc2cfc\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_651F4(__int64 a1, int a2)\n{\n  int v2; // w8\n  __int64 result; // x0\n\n  v2 = *(_DWORD *)(a1 + 12);\n  if ( v2 < 0 )\n    v2 = -v2;\n  if ( v2 >= a2 || (result = sub_65270(a1, (unsigned int)a2), !(_DWORD)result) )\n  {\n    *(_DWORD *)(a1 + 8) = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_651F4 from 0x651f4 to 0x65240 (76 bytes)\n; \n; 5 xrefs:\n; > sub_651BC @ 0x651d0\n; > sub_656C4 @ 0x65720\n; > sub_856E0 @ 0x8573c\n; > sub_85A40 @ 0x85a9c\n; > sub_C2CA0 @ 0xc2cfc\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; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x651f4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x651f8\nLDR             W8, [X0,#0xC]                                          ; +0x8, 0x651fc\nMOV             W19, W1                                                ; +0xc, 0x65200\nMOV             X20, X0                                                ; +0x10, 0x65204\nADD             X29, SP, #0x10                                         ; +0x14, 0x65208\nCMP             W8, #0                                                 ; +0x18, 0x6520c\nCNEG            W8, W8, MI                                             ; +0x1c, 0x65210\nCMP             W8, W1                                                 ; +0x20, 0x65214\nB.GE            loc_6522C                                              ; +0x24, 0x65218\nMOV             X0, X20                                                ; +0x28, 0x6521c\nMOV             W1, W19                                                ; +0x2c, 0x65220\nBL              sub_65270                                              ; +0x30, 0x65224\nCBNZ            W0, loc_65234                                          ; +0x34, 0x65228\nMOV             W0, WZR                                                ; +0x38, 0x6522c\nSTR             W19, [X20,#8]                                          ; +0x3c, 0x65230\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x65234\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x65238\nRET                                                                    ; +0x48, 0x6523c", "xrefs": ["sub_651BC @ 0x651d0", "sub_656C4 @ 0x65720", "sub_856E0 @ 0x8573c", "sub_85A40 @ 0x85a9c", "sub_C2CA0 @ 0xc2cfc"], "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"}