{"type": "func", "start": 16815204, "end": 16815436, "name": "DSO_convert_filename", "pseudocode": "// \n// DSO_convert_filename from 0x1009464 to 0x100954c (232 bytes)\n// \n// 3 xrefs:\n// > sub_10AA79C @ 0x10aa7b4\n// > sub_10DB098 @ 0x10db634\n// > <???> @ 0x8eab0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:58 +0000\n// \n\n__int64 __fastcall DSO_convert_filename(__int64 a1, __int64 a2)\n{\n  __int64 v2; // x20\n  __int64 (__fastcall *v3)(__int64, __int64); // x2\n  __int64 result; // x0\n  __int64 v5; // x19\n\n  v2 = a2;\n  if ( a1 )\n  {\n    if ( a2 || (v2 = *(_QWORD *)(a1 + 48)) != 0 )\n    {\n      if ( (*(_DWORD *)(a1 + 20) & 1) != 0\n        || (v3 = *(__int64 (__fastcall **)(__int64, __int64))(a1 + 32)) == nullptr\n        && (v3 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 40LL)) == nullptr\n        || (result = v3(a1, v2)) == 0 )\n      {\n        v5 = CRYPTO_strdup(v2, \"crypto/dso/dso_lib.c\", 300);\n        if ( !v5 )\n          ERR_put_error(37, 126, 65, \"crypto/dso/dso_lib.c\", 302);\n        return v5;\n      }\n    }\n    else\n    {\n      ERR_put_error(37, 126, 111, \"crypto/dso/dso_lib.c\", 290);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(37, 126, 67, \"crypto/dso/dso_lib.c\", 284);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; DSO_convert_filename from 0x1009464 to 0x100954c (232 bytes)\n; \n; 3 xrefs:\n; > sub_10AA79C @ 0x10aa7b4\n; > sub_10DB098 @ 0x10db634\n; > <???> @ 0x8eab0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:58 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x1009464\nMOV             X29, SP                                                ; +0x4, 0x1009468\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x100946c\nMOV             X19, X0                                                ; +0xc, 0x1009470\nMOV             X20, X1                                                ; +0x10, 0x1009474\nCBZ             X0, loc_1009528                                        ; +0x14, 0x1009478\nCBZ             X1, loc_10094D0                                        ; +0x18, 0x100947c\nLDR             W0, [X19,#0x14]                                        ; +0x1c, 0x1009480\nTBNZ            W0, #0, loc_10094A0                                    ; +0x20, 0x1009484\nLDR             X2, [X19,#0x20]                                        ; +0x24, 0x1009488\nCBZ             X2, loc_10094FC                                        ; +0x28, 0x100948c\nMOV             X0, X19                                                ; +0x2c, 0x1009490\nMOV             X1, X20                                                ; +0x30, 0x1009494\nBLR             X2                                                     ; +0x34, 0x1009498\nCBNZ            X0, loc_10094C4                                        ; +0x38, 0x100949c\nMOV             X0, X20                                                ; +0x3c, 0x10094a0\nADRL            X20, aCryptoDsoDsoLi; \"crypto/dso/dso_lib.c\"           ; +0x40, 0x10094a4\nMOV             W2, #0x12C                                             ; +0x48, 0x10094ac\nMOV             X1, X20                                                ; +0x4c, 0x10094b0\nBL              CRYPTO_strdup                                          ; +0x50, 0x10094b4\nMOV             X19, X0                                                ; +0x54, 0x10094b8\nCBZ             X0, loc_100950C                                        ; +0x58, 0x10094bc\nMOV             X0, X19                                                ; +0x5c, 0x10094c0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x60, 0x10094c4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x64, 0x10094c8\nRET                                                                    ; +0x68, 0x10094cc\nLDR             X20, [X0,#0x30]                                        ; +0x6c, 0x10094d0\nCBNZ            X20, loc_1009480                                       ; +0x70, 0x10094d4\nADRP            X3, #aCryptoDsoDsoLi@PAGE; \"crypto/dso/dso_lib.c\"      ; +0x74, 0x10094d8\nMOV             W0, #0x25 ; '%'                                        ; +0x78, 0x10094dc\nMOV             W1, #0x7E ; '~'                                        ; +0x7c, 0x10094e0\nMOV             W2, #0x6F ; 'o'                                        ; +0x80, 0x10094e4\nADD             X3, X3, #aCryptoDsoDsoLi@PAGEOFF; \"crypto/dso/dso_lib.c\" ; +0x84, 0x10094e8\nMOV             W4, #0x122                                             ; +0x88, 0x10094ec\nBL              ERR_put_error                                          ; +0x8c, 0x10094f0\nMOV             X0, X20                                                ; +0x90, 0x10094f4\nB               loc_10094C4                                            ; +0x94, 0x10094f8\nLDR             X0, [X19]                                              ; +0x98, 0x10094fc\nLDR             X2, [X0,#0x28]                                         ; +0x9c, 0x1009500\nCBNZ            X2, loc_1009490                                        ; +0xa0, 0x1009504\nB               loc_10094A0                                            ; +0xa4, 0x1009508\nMOV             W0, #0x25 ; '%'                                        ; +0xa8, 0x100950c\nMOV             W1, #0x7E ; '~'                                        ; +0xac, 0x1009510\nMOV             W2, #0x41 ; 'A'                                        ; +0xb0, 0x1009514\nMOV             X3, X20                                                ; +0xb4, 0x1009518\nMOV             W4, #0x12E                                             ; +0xb8, 0x100951c\nBL              ERR_put_error                                          ; +0xbc, 0x1009520\nB               loc_10094C0                                            ; +0xc0, 0x1009524\nADRP            X3, #aCryptoDsoDsoLi@PAGE; \"crypto/dso/dso_lib.c\"      ; +0xc4, 0x1009528\nMOV             W0, #0x25 ; '%'                                        ; +0xc8, 0x100952c\nMOV             W1, #0x7E ; '~'                                        ; +0xcc, 0x1009530\nMOV             W2, #0x43 ; 'C'                                        ; +0xd0, 0x1009534\nADD             X3, X3, #aCryptoDsoDsoLi@PAGEOFF; \"crypto/dso/dso_lib.c\" ; +0xd4, 0x1009538\nMOV             W4, #0x11C                                             ; +0xd8, 0x100953c\nBL              ERR_put_error                                          ; +0xdc, 0x1009540\nMOV             X0, X19                                                ; +0xe0, 0x1009544\nB               loc_10094C4                                            ; +0xe4, 0x1009548", "xrefs": ["sub_10AA79C @ 0x10aa7b4", "sub_10DB098 @ 0x10db634", "<???> @ 0x8eab0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}