{"type": "func", "start": 340626, "end": 340664, "name": "sub_53292", "pseudocode": "// \n// sub_53292 from 0x53292 to 0x532b8 (38 bytes)\n// \n// 5 xrefs:\n// > sub_53278 @ 0x53280\n// > sub_5357C @ 0x535b6\n// > sub_6CAB4 @ 0x6caee\n// > sub_6CCEA @ 0x6cd24\n// > sub_A3148 @ 0xa3182\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_53292(int a1, int a2)\n{\n  int v3; // r0\n  int result; // r0\n\n  v3 = *(_DWORD *)(a1 + 8);\n  if ( v3 < 0 )\n    v3 = -v3;\n  if ( v3 >= a2 || (result = sub_532D6(a1, a2)) == 0 )\n  {\n    *(_DWORD *)(a1 + 4) = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_53292 from 0x53292 to 0x532b8 (38 bytes)\n; \n; 5 xrefs:\n; > sub_53278 @ 0x53280\n; > sub_5357C @ 0x535b6\n; > sub_6CAB4 @ 0x6caee\n; > sub_6CCEA @ 0x6cd24\n; > sub_A3148 @ 0xa3182\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, 0x53292\nADD             R7, SP, #8                                             ; +0x2, 0x53294\nMOV             R5, R0                                                 ; +0x4, 0x53296\nLDR             R0, [R0,#8]                                            ; +0x6, 0x53298\nMOV             R4, R1                                                 ; +0x8, 0x5329a\nCMP             R0, #0                                                 ; +0xa, 0x5329c\nBPL             loc_532A2                                              ; +0xc, 0x5329e\nNEGS            R0, R0                                                 ; +0xe, 0x532a0\nCMP             R0, R4                                                 ; +0x10, 0x532a2\nBGE             loc_532B2                                              ; +0x12, 0x532a4\nMOV             R0, R5                                                 ; +0x14, 0x532a6\nMOV             R1, R4                                                 ; +0x16, 0x532a8\nBL              sub_532D6                                              ; +0x18, 0x532aa\nCBZ             R0, loc_532B2                                          ; +0x1c, 0x532ae\nPOP             {R4,R5,R7,PC}                                          ; +0x1e, 0x532b0\nMOVS            R0, #0                                                 ; +0x20, 0x532b2\nSTR             R4, [R5,#4]                                            ; +0x22, 0x532b4\nPOP             {R4,R5,R7,PC}                                          ; +0x24, 0x532b6", "xrefs": ["sub_53278 @ 0x53280", "sub_5357C @ 0x535b6", "sub_6CAB4 @ 0x6caee", "sub_6CCEA @ 0x6cd24", "sub_A3148 @ 0xa3182"], "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"}