{"type": "func", "start": 289360, "end": 289430, "name": "sub_46A50", "pseudocode": "// \n// sub_46A50 from 0x46a50 to 0x46a96 (70 bytes)\n// \n// 0 xrefs:\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_46A50(int a1, int a2)\n{\n  int result; // r0\n  int v5; // r0\n\n  if ( !*(_DWORD *)(a1 + 128) )\n    return 30;\n  result = sub_44D5C(a1, a2);\n  if ( !result )\n  {\n    result = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 20) + 148))(*(_DWORD *)(a1 + 20), a2);\n    if ( !result )\n    {\n      v5 = *(_DWORD *)(*(_DWORD *)(a1 + 20) + 64);\n      __dmb(0xBu);\n      if ( (v5 & 0x80) == 0 )\n        return 0;\n      result = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 128) + 76))(*(_DWORD *)(a1 + 128), a2);\n      if ( !result )\n        return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_46A50 from 0x46a50 to 0x46a96 (70 bytes)\n; \n; 0 xrefs:\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, 0x46a50\nADD             R7, SP, #8                                             ; +0x2, 0x46a52\nMOV             R5, R0                                                 ; +0x4, 0x46a54\nLDR.W           R0, [R0,#0x80]                                         ; +0x6, 0x46a56\nCBZ             R0, loc_46A92                                          ; +0xa, 0x46a5a\nMOV             R0, R5                                                 ; +0xc, 0x46a5c\nMOV             R4, R1                                                 ; +0xe, 0x46a5e\nBL              sub_44D5C                                              ; +0x10, 0x46a60\nCBNZ            R0, locret_46A90                                       ; +0x14, 0x46a64\nLDR             R0, [R5,#0x14]                                         ; +0x16, 0x46a66\nLDR             R1, [R0]                                               ; +0x18, 0x46a68\nLDR.W           R2, [R1,#0x94]                                         ; +0x1a, 0x46a6a\nMOV             R1, R4                                                 ; +0x1e, 0x46a6e\nBLX             R2                                                     ; +0x20, 0x46a70\nCBNZ            R0, locret_46A90                                       ; +0x22, 0x46a72\nLDR             R0, [R5,#0x14]                                         ; +0x24, 0x46a74\nLDR             R0, [R0,#0x40]                                         ; +0x26, 0x46a76\nDMB.W           ISH                                                    ; +0x28, 0x46a78\nLSLS            R0, R0, #0x18                                          ; +0x2c, 0x46a7c\nBPL             loc_46A8E                                              ; +0x2e, 0x46a7e\nLDR.W           R0, [R5,#0x80]                                         ; +0x30, 0x46a80\nLDR             R1, [R0]                                               ; +0x34, 0x46a84\nLDR             R2, [R1,#0x4C]                                         ; +0x36, 0x46a86\nMOV             R1, R4                                                 ; +0x38, 0x46a88\nBLX             R2                                                     ; +0x3a, 0x46a8a\nCBNZ            R0, locret_46A90                                       ; +0x3c, 0x46a8c\nMOVS            R0, #0                                                 ; +0x3e, 0x46a8e\nPOP             {R4,R5,R7,PC}                                          ; +0x40, 0x46a90\nMOVS            R0, #0x1E                                              ; +0x42, 0x46a92\nPOP             {R4,R5,R7,PC}                                          ; +0x44, 0x46a94", "xrefs": [], "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"}