{"type": "func", "start": 669632, "end": 669700, "name": "sub_A37C0", "pseudocode": "// \n// sub_A37C0 from 0xa37c0 to 0xa3804 (68 bytes)\n// \n// 1 xrefs:\n// > sub_61B58 @ 0x61d58\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_A37C0(_DWORD *a1, int a2)\n{\n  int v3; // r5\n  int v4; // r0\n  int result; // r0\n\n  if ( a2 == -1 )\n    v3 = 0;\n  else\n    v3 = sub_A2DBC(a1[32] + 71948, a2);\n  v4 = a1[100];\n  if ( v3 == v4 )\n    return 0;\n  if ( (!v4 || (result = sub_A2ED6(v4, (int)a1)) == 0) && (!v3 || (result = sub_A2EB4(v3, a1)) == 0) )\n  {\n    a1[100] = v3;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_A37C0 from 0xa37c0 to 0xa3804 (68 bytes)\n; \n; 1 xrefs:\n; > sub_61B58 @ 0x61d58\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,R5,R7,LR}                                          ; +0x0, 0xa37c0\nADD             R7, SP, #8                                             ; +0x2, 0xa37c2\nMOV             R4, R0                                                 ; +0x4, 0xa37c4\nADDS            R0, R1, #1                                             ; +0x6, 0xa37c6\nBEQ             loc_A37DA                                              ; +0x8, 0xa37c8\nLDR.W           R0, [R4,#0x80]                                         ; +0xa, 0xa37ca\nLDR             R2, =0x1190C                                           ; +0xe, 0xa37ce\nADD             R0, R2                                                 ; +0x10, 0xa37d0\nBL              sub_A2DBC                                              ; +0x12, 0xa37d2\nMOV             R5, R0                                                 ; +0x16, 0xa37d6\nB               loc_A37DC                                              ; +0x18, 0xa37d8\nMOVS            R5, #0                                                 ; +0x1a, 0xa37da\nLDR.W           R0, [R4,#0x190]                                        ; +0x1c, 0xa37dc\nCMP             R5, R0                                                 ; +0x20, 0xa37e0\nBEQ             loc_A3800                                              ; +0x22, 0xa37e2\nCBZ             R0, loc_A37EE                                          ; +0x24, 0xa37e4\nMOV             R1, R4                                                 ; +0x26, 0xa37e6\nBL              sub_A2ED6                                              ; +0x28, 0xa37e8\nCBNZ            R0, locret_A37FA                                       ; +0x2c, 0xa37ec\nCBZ             R5, loc_A37FC                                          ; +0x2e, 0xa37ee\nMOV             R0, R5                                                 ; +0x30, 0xa37f0\nMOV             R1, R4                                                 ; +0x32, 0xa37f2\nBL              sub_A2EB4                                              ; +0x34, 0xa37f4\nCBZ             R0, loc_A37FC                                          ; +0x38, 0xa37f8\nPOP             {R4,R5,R7,PC}                                          ; +0x3a, 0xa37fa\nSTR.W           R5, [R4,#0x190]                                        ; +0x3c, 0xa37fc\nMOVS            R0, #0                                                 ; +0x40, 0xa3800\nPOP             {R4,R5,R7,PC}                                          ; +0x42, 0xa3802", "xrefs": ["sub_61B58 @ 0x61d58"], "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"}