{"type": "func", "start": 334960, "end": 335012, "name": "sub_51C70", "pseudocode": "// \n// sub_51C70 from 0x51c70 to 0x51ca4 (52 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:43 +0000\n// \n\nint __fastcall sub_51C70(int a1, int a2, void *a3)\n{\n  int v3; // r3\n  int v4; // r0\n\n  v3 = *(_DWORD *)(a1 + 4);\n  if ( !v3 )\n    return 53;\n  if ( a2 < 0 )\n    return 31;\n  v4 = *(_DWORD *)(a1 + 12);\n  if ( a2 )\n  {\n    if ( !v4 )\n      return 31;\n  }\n  if ( v4 >= 1 && v4 <= a2 )\n    return 31;\n  qmemcpy(a3, (const void *)(v3 + 52 * a2), 0x34u);\n  return 0;\n}", "assembly": "; \n; sub_51C70 from 0x51c70 to 0x51ca4 (52 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:43 +0000\n; \nPUSH            {R7,LR}                                                ; +0x0, 0x51c70\nMOV             R7, SP                                                 ; +0x2, 0x51c72\nLDR             R3, [R0,#4]                                            ; +0x4, 0x51c74\nCBZ             R3, loc_51C8E                                          ; +0x6, 0x51c76\nCMP             R1, #0                                                 ; +0x8, 0x51c78\nBMI             loc_51C8A                                              ; +0xa, 0x51c7a\nLDR             R0, [R0,#0xC]                                          ; +0xc, 0x51c7c\nCBZ             R1, loc_51C82                                          ; +0xe, 0x51c7e\nCBZ             R0, loc_51C8A                                          ; +0x10, 0x51c80\nCMP             R0, #1                                                 ; +0x12, 0x51c82\nBLT             loc_51C92                                              ; +0x14, 0x51c84\nCMP             R0, R1                                                 ; +0x16, 0x51c86\nBGT             loc_51C92                                              ; +0x18, 0x51c88\nMOVS            R0, #0x1F                                              ; +0x1a, 0x51c8a\nPOP             {R7,PC}                                                ; +0x1c, 0x51c8c\nMOVS            R0, #0x35 ; '5'                                        ; +0x1e, 0x51c8e\nPOP             {R7,PC}                                                ; +0x20, 0x51c90\nMOVS            R0, #0x34 ; '4'                                        ; +0x22, 0x51c92\nMLA             R1, R1, R0, R3                                         ; +0x24, 0x51c94\nMOV             R0, R2                                                 ; +0x28, 0x51c98\nMOVS            R2, #0x34 ; '4'                                        ; +0x2a, 0x51c9a\nBLX             __aeabi_memcpy                                         ; +0x2c, 0x51c9c\nMOVS            R0, #0                                                 ; +0x30, 0x51ca0\nPOP             {R7,PC}                                                ; +0x32, 0x51ca2", "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"}