{"type": "func", "start": 342032, "end": 342208, "name": "sub_53810", "pseudocode": "// \n// sub_53810 from 0x53810 to 0x538c0 (176 bytes)\n// \n// 1 xrefs:\n// > sub_62010 @ 0x62088\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_53810(int a1, _DWORD *a2)\n{\n  int v3; // r0\n  int result; // r0\n\n  v3 = *(_DWORD *)(a1 + 4);\n  if ( !v3 )\n    return 0;\n  result = sub_A750C(v3, 1, 1);\n  if ( !result )\n  {\n    result = sub_AB218(*(_DWORD *)(a1 + 4), 0, *a2);\n    if ( !result )\n    {\n      result = sub_AB218(*(_DWORD *)(a1 + 4), 1, a2[1]);\n      if ( !result )\n      {\n        result = sub_AB218(*(_DWORD *)(a1 + 4), 2, a2[2]);\n        if ( !result )\n        {\n          result = sub_AB218(*(_DWORD *)(a1 + 4), 3, a2[3]);\n          if ( !result )\n          {\n            result = sub_AB218(*(_DWORD *)(a1 + 4), 4, a2[4]);\n            if ( !result )\n            {\n              result = sub_AB218(*(_DWORD *)(a1 + 4), 5, a2[5]);\n              if ( !result )\n              {\n                result = sub_AB218(*(_DWORD *)(a1 + 4), 6, a2[6]);\n                if ( !result )\n                {\n                  result = sub_AB218(*(_DWORD *)(a1 + 4), 7, a2[7]);\n                  if ( !result )\n                  {\n                    result = sub_AB218(*(_DWORD *)(a1 + 4), 8, a2[8]);\n                    if ( !result )\n                    {\n                      result = sub_AB218(*(_DWORD *)(a1 + 4), 9, a2[9]);\n                      if ( !result )\n                      {\n                        result = sub_AB218(*(_DWORD *)(a1 + 4), 10, a2[10]);\n                        if ( !result )\n                        {\n                          result = sub_AB218(*(_DWORD *)(a1 + 4), 11, a2[11]);\n                          if ( !result )\n                            return 0;\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_53810 from 0x53810 to 0x538c0 (176 bytes)\n; \n; 1 xrefs:\n; > sub_62010 @ 0x62088\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, 0x53810\nADD             R7, SP, #8                                             ; +0x2, 0x53812\nMOV             R4, R0                                                 ; +0x4, 0x53814\nLDR             R0, [R0,#4]                                            ; +0x6, 0x53816\nCMP             R0, #0                                                 ; +0x8, 0x53818\nBEQ             loc_538BC                                              ; +0xa, 0x5381a\nMOV             R5, R1                                                 ; +0xc, 0x5381c\nMOVS            R1, #1                                                 ; +0xe, 0x5381e\nMOVS            R2, #1                                                 ; +0x10, 0x53820\nBL              sub_A750C                                              ; +0x12, 0x53822\nCMP             R0, #0                                                 ; +0x16, 0x53826\nBNE             locret_538BE                                           ; +0x18, 0x53828\nLDR             R2, [R5]                                               ; +0x1a, 0x5382a\nMOVS            R1, #0                                                 ; +0x1c, 0x5382c\nLDR             R0, [R4,#4]                                            ; +0x1e, 0x5382e\nBL              sub_AB218                                              ; +0x20, 0x53830\nCMP             R0, #0                                                 ; +0x24, 0x53834\nBNE             locret_538BE                                           ; +0x26, 0x53836\nLDR             R2, [R5,#4]                                            ; +0x28, 0x53838\nMOVS            R1, #1                                                 ; +0x2a, 0x5383a\nLDR             R0, [R4,#4]                                            ; +0x2c, 0x5383c\nBL              sub_AB218                                              ; +0x2e, 0x5383e\nCBNZ            R0, locret_538BE                                       ; +0x32, 0x53842\nLDR             R2, [R5,#8]                                            ; +0x34, 0x53844\nMOVS            R1, #2                                                 ; +0x36, 0x53846\nLDR             R0, [R4,#4]                                            ; +0x38, 0x53848\nBL              sub_AB218                                              ; +0x3a, 0x5384a\nCBNZ            R0, locret_538BE                                       ; +0x3e, 0x5384e\nLDR             R2, [R5,#0xC]                                          ; +0x40, 0x53850\nMOVS            R1, #3                                                 ; +0x42, 0x53852\nLDR             R0, [R4,#4]                                            ; +0x44, 0x53854\nBL              sub_AB218                                              ; +0x46, 0x53856\nCBNZ            R0, locret_538BE                                       ; +0x4a, 0x5385a\nLDR             R2, [R5,#0x10]                                         ; +0x4c, 0x5385c\nMOVS            R1, #4                                                 ; +0x4e, 0x5385e\nLDR             R0, [R4,#4]                                            ; +0x50, 0x53860\nBL              sub_AB218                                              ; +0x52, 0x53862\nCBNZ            R0, locret_538BE                                       ; +0x56, 0x53866\nLDR             R2, [R5,#0x14]                                         ; +0x58, 0x53868\nMOVS            R1, #5                                                 ; +0x5a, 0x5386a\nLDR             R0, [R4,#4]                                            ; +0x5c, 0x5386c\nBL              sub_AB218                                              ; +0x5e, 0x5386e\nCBNZ            R0, locret_538BE                                       ; +0x62, 0x53872\nLDR             R2, [R5,#0x18]                                         ; +0x64, 0x53874\nMOVS            R1, #6                                                 ; +0x66, 0x53876\nLDR             R0, [R4,#4]                                            ; +0x68, 0x53878\nBL              sub_AB218                                              ; +0x6a, 0x5387a\nCBNZ            R0, locret_538BE                                       ; +0x6e, 0x5387e\nLDR             R2, [R5,#0x1C]                                         ; +0x70, 0x53880\nMOVS            R1, #7                                                 ; +0x72, 0x53882\nLDR             R0, [R4,#4]                                            ; +0x74, 0x53884\nBL              sub_AB218                                              ; +0x76, 0x53886\nCBNZ            R0, locret_538BE                                       ; +0x7a, 0x5388a\nLDR             R2, [R5,#0x20]                                         ; +0x7c, 0x5388c\nMOVS            R1, #8                                                 ; +0x7e, 0x5388e\nLDR             R0, [R4,#4]                                            ; +0x80, 0x53890\nBL              sub_AB218                                              ; +0x82, 0x53892\nCBNZ            R0, locret_538BE                                       ; +0x86, 0x53896\nLDR             R2, [R5,#0x24]                                         ; +0x88, 0x53898\nMOVS            R1, #9                                                 ; +0x8a, 0x5389a\nLDR             R0, [R4,#4]                                            ; +0x8c, 0x5389c\nBL              sub_AB218                                              ; +0x8e, 0x5389e\nCBNZ            R0, locret_538BE                                       ; +0x92, 0x538a2\nLDR             R2, [R5,#0x28]                                         ; +0x94, 0x538a4\nMOVS            R1, #0xA                                               ; +0x96, 0x538a6\nLDR             R0, [R4,#4]                                            ; +0x98, 0x538a8\nBL              sub_AB218                                              ; +0x9a, 0x538aa\nCBNZ            R0, locret_538BE                                       ; +0x9e, 0x538ae\nLDR             R2, [R5,#0x2C]                                         ; +0xa0, 0x538b0\nMOVS            R1, #0xB                                               ; +0xa2, 0x538b2\nLDR             R0, [R4,#4]                                            ; +0xa4, 0x538b4\nBL              sub_AB218                                              ; +0xa6, 0x538b6\nCBNZ            R0, locret_538BE                                       ; +0xaa, 0x538ba\nMOVS            R0, #0                                                 ; +0xac, 0x538bc\nPOP             {R4,R5,R7,PC}                                          ; +0xae, 0x538be", "xrefs": ["sub_62010 @ 0x62088"], "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"}