{"type": "func", "start": 321984, "end": 322032, "name": "sub_4E9C0", "pseudocode": "// \n// sub_4E9C0 from 0x4e9c0 to 0x4e9f0 (48 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:42 +0000\n// \n\nint __fastcall sub_4E9C0(int a1, signed int a2, int *a3, const void *a4, size_t a5)\n{\n  int v6; // r2\n\n  v6 = *a3;\n  if ( (int)(v6 + a5) > a2 )\n    return 31;\n  qmemcpy((void *)(a1 + v6), a4, a5);\n  *a3 += a5;\n  return 0;\n}", "assembly": "; \n; sub_4E9C0 from 0x4e9c0 to 0x4e9f0 (48 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:42 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4e9c0\nADD             R7, SP, #0xC                                           ; +0x2, 0x4e9c2\nPUSH.W          {R11}                                                  ; +0x4, 0x4e9c4\nMOV             R4, R2                                                 ; +0x8, 0x4e9c8\nLDR             R2, [R2]                                               ; +0xa, 0x4e9ca\nLDR             R5, [R7,#-0x10+arg_0]                                  ; +0xc, 0x4e9cc\nADDS            R6, R2, R5                                             ; +0xe, 0x4e9ce\nCMP             R6, R1                                                 ; +0x10, 0x4e9d0\nBLE             loc_4E9D8                                              ; +0x12, 0x4e9d2\nMOVS            R0, #0x1F                                              ; +0x14, 0x4e9d4\nB               loc_4E9EA                                              ; +0x16, 0x4e9d6\nADD             R0, R2                                                 ; +0x18, 0x4e9d8\nMOV             R1, R3                                                 ; +0x1a, 0x4e9da\nMOV             R2, R5                                                 ; +0x1c, 0x4e9dc\nBLX             __aeabi_memcpy                                         ; +0x1e, 0x4e9de\nLDR             R0, [R4]                                               ; +0x22, 0x4e9e2\nADD             R0, R5                                                 ; +0x24, 0x4e9e4\nSTR             R0, [R4]                                               ; +0x26, 0x4e9e6\nMOVS            R0, #0                                                 ; +0x28, 0x4e9e8\nPOP.W           {R11}                                                  ; +0x2a, 0x4e9ea\nPOP             {R4-R7,PC}                                             ; +0x2e, 0x4e9ee", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}