{"type": "func", "start": 666900, "end": 666984, "name": "sub_A2D14", "pseudocode": "// \n// sub_A2D14 from 0xa2d14 to 0xa2d68 (84 bytes)\n// \n// 1 xrefs:\n// > sub_A2CFE @ 0xa2d0c\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:41:34 +0000\n// \n\nint __fastcall sub_A2D14(_DWORD *a1, _DWORD *a2, int a3)\n{\n  int result; // r0\n  int v7; // r0\n  int v8; // [sp+0h] [bp-18h] BYREF\n  int v9; // [sp+4h] [bp-14h] BYREF\n\n  result = sub_A3206();\n  if ( !result )\n  {\n    v7 = a1[1];\n    if ( v7\n      && (v9 = *a1 + 4 * ((v7 - 1) & *a2),\n          v8 = 0,\n          ((int (__fastcall *)(_DWORD *, int *, _DWORD *, int *))sub_A322E)(a1, &v9, a2, &v8) == 74) )\n    {\n      return sub_A3266(a1, a2, a3, v9);\n    }\n    else\n    {\n      return 28;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_A2D14 from 0xa2d14 to 0xa2d68 (84 bytes)\n; \n; 1 xrefs:\n; > sub_A2CFE @ 0xa2d0c\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:41:34 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xa2d14\nADD             R7, SP, #0xC                                           ; +0x2, 0xa2d16\nPUSH.W          {R11}                                                  ; +0x4, 0xa2d18\nSUB             SP, SP, #8                                             ; +0x8, 0xa2d1c\nMOV             R4, R2                                                 ; +0xa, 0xa2d1e\nMOV             R5, R1                                                 ; +0xc, 0xa2d20\nMOV             R6, R0                                                 ; +0xe, 0xa2d22\nBL              sub_A3206                                              ; +0x10, 0xa2d24\nCBNZ            R0, loc_A2D60                                          ; +0x14, 0xa2d28\nLDR             R0, [R6,#4]                                            ; +0x16, 0xa2d2a\nCBZ             R0, loc_A2D5E                                          ; +0x18, 0xa2d2c\nLDR             R1, [R5]                                               ; +0x1a, 0xa2d2e\nSUBS            R0, #1                                                 ; +0x1c, 0xa2d30\nMOV             R3, SP                                                 ; +0x1e, 0xa2d32\nMOV             R2, R5                                                 ; +0x20, 0xa2d34\nANDS            R0, R1                                                 ; +0x22, 0xa2d36\nLDR             R1, [R6]                                               ; +0x24, 0xa2d38\nADD.W           R0, R1, R0,LSL#2                                       ; +0x26, 0xa2d3a\nSTR             R0, [SP,#8+var_4]                                      ; +0x2a, 0xa2d3e\nMOVS            R0, #0                                                 ; +0x2c, 0xa2d40\nADD             R1, SP, #8+var_4                                       ; +0x2e, 0xa2d42\nSTR             R0, [SP,#8+var_8]                                      ; +0x30, 0xa2d44\nMOV             R0, R6                                                 ; +0x32, 0xa2d46\nBL              sub_A322E                                              ; +0x34, 0xa2d48\nCMP             R0, #0x4A ; 'J'                                        ; +0x38, 0xa2d4c\nBNE             loc_A2D5E                                              ; +0x3a, 0xa2d4e\nLDR             R3, [SP,#8+var_4]                                      ; +0x3c, 0xa2d50\nMOV             R0, R6                                                 ; +0x3e, 0xa2d52\nMOV             R1, R5                                                 ; +0x40, 0xa2d54\nMOV             R2, R4                                                 ; +0x42, 0xa2d56\nBL              sub_A3266                                              ; +0x44, 0xa2d58\nB               loc_A2D60                                              ; +0x48, 0xa2d5c\nMOVS            R0, #0x1C                                              ; +0x4a, 0xa2d5e\nADD             SP, SP, #8                                             ; +0x4c, 0xa2d60\nPOP.W           {R11}                                                  ; +0x4e, 0xa2d62\nPOP             {R4-R7,PC}                                             ; +0x52, 0xa2d66", "xrefs": ["sub_A2CFE @ 0xa2d0c"], "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"}