{"type": "func", "start": 690454, "end": 690494, "name": "sub_A8916", "pseudocode": "// \n// sub_A8916 from 0xa8916 to 0xa893e (40 bytes)\n// \n// 2 xrefs:\n// > sub_A893E @ 0xa895a\n// > sub_A893E @ 0xa8964\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:36 +0000\n// \n\nint __fastcall sub_A8916(int *a1, int *a2, int a3)\n{\n  int v4; // r0\n  int result; // r0\n\n  v4 = *a2;\n  if ( !*a2 )\n  {\n    if ( *a1 >= 1 )\n      a3 = sub_58478(*a1);\n    v4 = a3;\n    *a2 = a3;\n  }\n  result = sub_537B4(v4);\n  if ( !result )\n    result = *a1;\n  *a1 = result;\n  return result;\n}", "assembly": "; \n; sub_A8916 from 0xa8916 to 0xa893e (40 bytes)\n; \n; 2 xrefs:\n; > sub_A893E @ 0xa895a\n; > sub_A893E @ 0xa8964\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:36 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0xa8916\nADD             R7, SP, #8                                             ; +0x2, 0xa8918\nMOV             R4, R0                                                 ; +0x4, 0xa891a\nLDR             R0, [R1]                                               ; +0x6, 0xa891c\nCBNZ            R0, loc_A8932                                          ; +0x8, 0xa891e\nLDR             R0, [R4]                                               ; +0xa, 0xa8920\nMOV             R5, R1                                                 ; +0xc, 0xa8922\nCMP             R0, #1                                                 ; +0xe, 0xa8924\nBLT             loc_A892E                                              ; +0x10, 0xa8926\nBL              sub_58478                                              ; +0x12, 0xa8928\nMOV             R2, R0                                                 ; +0x16, 0xa892c\nMOV             R0, R2                                                 ; +0x18, 0xa892e\nSTR             R2, [R5]                                               ; +0x1a, 0xa8930\nBL              sub_537B4                                              ; +0x1c, 0xa8932\nCBNZ            R0, loc_A893A                                          ; +0x20, 0xa8936\nLDR             R0, [R4]                                               ; +0x22, 0xa8938\nSTR             R0, [R4]                                               ; +0x24, 0xa893a\nPOP             {R4,R5,R7,PC}                                          ; +0x26, 0xa893c", "xrefs": ["sub_A893E @ 0xa895a", "sub_A893E @ 0xa8964"], "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"}