{"type": "func", "start": 288122, "end": 288186, "name": "sub_4657A", "pseudocode": "// \n// sub_4657A from 0x4657a to 0x465ba (64 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_4657A(int a1, int a2)\n{\n  int result; // r0\n  int v5; // r1\n  unsigned int v6; // r1\n\n  result = sub_44D9A(a1, a2);\n  if ( !result )\n  {\n    result = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 20) + 140))(*(_DWORD *)(a1 + 20), a2);\n    if ( !result )\n    {\n      v5 = *(_DWORD *)(*(_DWORD *)(a1 + 20) + 64);\n      __dmb(0xBu);\n      if ( (v5 & 0x80) != 0 )\n        v6 = a2;\n      else\n        v6 = a2 & 0xFFFFFFF8;\n      result = (*(int (__fastcall **)(_DWORD, unsigned int))(**(_DWORD **)(a1 + 128) + 100))(*(_DWORD *)(a1 + 128), v6);\n      if ( !result )\n        return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4657A from 0x4657a to 0x465ba (64 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, 0x4657a\nADD             R7, SP, #8                                             ; +0x2, 0x4657c\nMOV             R4, R1                                                 ; +0x4, 0x4657e\nMOV             R5, R0                                                 ; +0x6, 0x46580\nBL              sub_44D9A                                              ; +0x8, 0x46582\nCBNZ            R0, locret_465B4                                       ; +0xc, 0x46586\nLDR             R0, [R5,#0x14]                                         ; +0xe, 0x46588\nLDR             R1, [R0]                                               ; +0x10, 0x4658a\nLDR.W           R2, [R1,#0x8C]                                         ; +0x12, 0x4658c\nMOV             R1, R4                                                 ; +0x16, 0x46590\nBLX             R2                                                     ; +0x18, 0x46592\nCBNZ            R0, locret_465B4                                       ; +0x1a, 0x46594\nLDR             R0, [R5,#0x14]                                         ; +0x1c, 0x46596\nLDR             R1, [R0,#0x40]                                         ; +0x1e, 0x46598\nDMB.W           ISH                                                    ; +0x20, 0x4659a\nLDR.W           R0, [R5,#0x80]                                         ; +0x24, 0x4659e\nLSLS            R1, R1, #0x18                                          ; +0x28, 0x465a2\nLDR             R1, [R0]                                               ; +0x2a, 0x465a4\nLDR             R2, [R1,#0x64]                                         ; +0x2c, 0x465a6\nITE PL                                                                 ; +0x2e, 0x465a8\nBICPL.W         R1, R4, #7                                             ; +0x30, 0x465aa\nMOVMI           R1, R4                                                 ; +0x34, 0x465ae\nBLX             R2                                                     ; +0x36, 0x465b0\nCBZ             R0, loc_465B6                                          ; +0x38, 0x465b2\nPOP             {R4,R5,R7,PC}                                          ; +0x3a, 0x465b4\nMOVS            R0, #0                                                 ; +0x3c, 0x465b6\nPOP             {R4,R5,R7,PC}                                          ; +0x3e, 0x465b8", "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"}