{"type": "func", "start": 676608, "end": 676728, "name": "sub_A5300", "pseudocode": "// \n// sub_A5300 from 0xa5300 to 0xa5378 (120 bytes)\n// \n// 1 xrefs:\n// > sub_A5654 @ 0xa5856\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_A5300(int a1, _DWORD *a2, int *a3, int a4, int a5)\n{\n  int *v6; // r10\n  int i; // r4\n  int v11; // r0\n  int v12; // r0\n\n  v6 = (int *)(a1 + 9548);\nLABEL_2:\n  if ( a4 )\n  {\n    --a4;\n    sub_A5378(a1);\n    for ( i = 0; ; ++i )\n    {\n      if ( a5 == i )\n        goto LABEL_2;\n      v11 = *v6;\n      if ( *v6 == 2 )\n      {\n        v12 = sub_A5580(a1, *a2, i);\n      }\n      else if ( v11 == 1 )\n      {\n        v12 = sub_A54EC(a1, *a2, i);\n      }\n      else\n      {\n        if ( v11 )\n          continue;\n        v12 = sub_A5478(a1, *a2, i);\n      }\n      ++a2;\n      *a3++ = v12;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_A5300 from 0xa5300 to 0xa5378 (120 bytes)\n; \n; 1 xrefs:\n; > sub_A5654 @ 0xa5856\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R7,LR}                                             ; +0x0, 0xa5300\nADD             R7, SP, #0xC                                           ; +0x2, 0xa5302\nPUSH.W          {R7-R11}                                               ; +0x4, 0xa5304\nLDR.W           R11, [R7,#-0x1C+arg_0]                                 ; +0x8, 0xa5308\nMOV             R9, R0                                                 ; +0xc, 0xa530c\nMOVW            R0, #0x254C                                            ; +0xe, 0xa530e\nADD.W           R10, R9, R0                                            ; +0x12, 0xa5312\nMOV             R8, R3                                                 ; +0x16, 0xa5316\nMOV             R5, R2                                                 ; +0x18, 0xa5318\nMOV             R6, R1                                                 ; +0x1a, 0xa531a\nCMP.W           R8, #0                                                 ; +0x1c, 0xa531c\nBEQ             loc_A5370                                              ; +0x20, 0xa5320\nMOV             R0, R9                                                 ; +0x22, 0xa5322\nSUB.W           R8, R8, #1                                             ; +0x24, 0xa5324\nBL              sub_A5378                                              ; +0x28, 0xa5328\nMOVS            R4, #0                                                 ; +0x2c, 0xa532c\nCMP             R11, R4                                                ; +0x2e, 0xa532e\nBEQ             loc_A531C                                              ; +0x30, 0xa5330\nLDR.W           R0, [R10]                                              ; +0x32, 0xa5332\nCMP             R0, #2                                                 ; +0x36, 0xa5336\nBEQ             loc_A5358                                              ; +0x38, 0xa5338\nCMP             R0, #1                                                 ; +0x3a, 0xa533a\nBEQ             loc_A534C                                              ; +0x3c, 0xa533c\nCBNZ            R0, loc_A536C                                          ; +0x3e, 0xa533e\nLDR             R1, [R6]                                               ; +0x40, 0xa5340\nMOV             R0, R9                                                 ; +0x42, 0xa5342\nMOV             R2, R4                                                 ; +0x44, 0xa5344\nBL              sub_A5478                                              ; +0x46, 0xa5346\nB               loc_A5362                                              ; +0x4a, 0xa534a\nLDR             R1, [R6]                                               ; +0x4c, 0xa534c\nMOV             R0, R9                                                 ; +0x4e, 0xa534e\nMOV             R2, R4                                                 ; +0x50, 0xa5350\nBL              sub_A54EC                                              ; +0x52, 0xa5352\nB               loc_A5362                                              ; +0x56, 0xa5356\nLDR             R1, [R6]                                               ; +0x58, 0xa5358\nMOV             R0, R9                                                 ; +0x5a, 0xa535a\nMOV             R2, R4                                                 ; +0x5c, 0xa535c\nBL              sub_A5580                                              ; +0x5e, 0xa535e\nVMOV            S0, R0                                                 ; +0x62, 0xa5362\nADDS            R6, #4                                                 ; +0x66, 0xa5366\nVSTM            R5!, {S0}                                              ; +0x68, 0xa5368\nADDS            R4, #1                                                 ; +0x6c, 0xa536c\nB               loc_A532E                                              ; +0x6e, 0xa536e\nMOVS            R0, #0                                                 ; +0x70, 0xa5370\nPOP.W           {R3,R8-R11}                                            ; +0x72, 0xa5372\nPOP             {R4-R7,PC}                                             ; +0x76, 0xa5376", "xrefs": ["sub_A5654 @ 0xa5856"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}