{"type": "func", "start": 338458, "end": 338498, "name": "sub_52A1A", "pseudocode": "// \n// sub_52A1A from 0x52a1a to 0x52a42 (40 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:44 +0000\n// \n\nint __fastcall sub_52A1A(int a1, int a2)\n{\n  int v2; // r2\n  int v4; // r1\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 48);\n  if ( !v2 )\n    return 0;\n  v4 = sub_52A42(a2, v2, 0);\n  result = v4 - 45;\n  if ( v4 != 45 )\n    result = v4;\n  if ( !result )\n  {\n    *(_DWORD *)(a1 + 48) = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_52A1A from 0x52a1a to 0x52a42 (40 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:44 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x52a1a\nADD             R7, SP, #8                                             ; +0x2, 0x52a1c\nLDR             R2, [R0,#0x30]                                         ; +0x4, 0x52a1e\nCBZ             R2, loc_52A3E                                          ; +0x6, 0x52a20\nMOV             R4, R0                                                 ; +0x8, 0x52a22\nMOV             R0, R1                                                 ; +0xa, 0x52a24\nMOV             R1, R2                                                 ; +0xc, 0x52a26\nMOVS            R2, #0                                                 ; +0xe, 0x52a28\nMOVS            R5, #0                                                 ; +0x10, 0x52a2a\nBL              sub_52A42                                              ; +0x12, 0x52a2c\nMOV             R1, R0                                                 ; +0x16, 0x52a30\nSUBS            R0, #0x2D ; '-'                                        ; +0x18, 0x52a32\nIT NE                                                                  ; +0x1a, 0x52a34\nMOVNE           R0, R1                                                 ; +0x1c, 0x52a36\nCBZ             R0, loc_52A3C                                          ; +0x1e, 0x52a38\nPOP             {R4,R5,R7,PC}                                          ; +0x20, 0x52a3a\nSTR             R5, [R4,#0x30]                                         ; +0x22, 0x52a3c\nMOVS            R0, #0                                                 ; +0x24, 0x52a3e\nPOP             {R4,R5,R7,PC}                                          ; +0x26, 0x52a40", "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"}