Function at 0x434170
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbx, [rsp + 0x40]
mov esi, ecx
mov rdi, rdx
mov byte [rsp + 0x3b], 0
lea r12, [rsp + 0x60]
mov rbp, r8
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
lea rax, [rbx + 0x10]
mov rcx, r12
lea rdx, [0x00524b80]
mov qword [rsp + 0x40], rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.504_
cmp esi, 1
mov dword [rsp + 0x3c], 1
jle 0x434290
lea r13, [rsp + 0x3b]
mov eax, 1
lea r14, [rsp + 0x3c]
jmp 0x43421e
mov qword [rsp + 0x28], r13
mov r9, rbp
mov r8, rbx
mov rdx, rdi
mov qword [rsp + 0x20], r14
mov ecx, esi
call sym.gpt_params_find_arg_int__char__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__gpt_params__int__bool_
test al, al
je 0x4343d6
cmp byte [rsp + 0x3b], 0
jne 0x434434
mov eax, dword [rsp + 0x3c]
add eax, 1
cmp eax, esi
mov dword [rsp + 0x3c], eax
jge 0x434290
cdqe
mov r15, qword [rdi + rax*8]
mov rcx, r15
call sym.strlen
mov r8, qword [rsp + 0x48]
mov r9, r15
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
mov r8, qword [rsp + 0x68]
mov r9, r12
xor edx, edx
mov rcx, rbx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::compare_unsigned_long_long__unsigned_long_long__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__const
test eax, eax
jne 0x4341e2
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
add rdx, rax
cmp rax, rdx
je 0x4341e2
nop
cmp byte [rax], 0x5f
jne 0x434278
mov byte [rax], 0x2d
add rax, 1
cmp rdx, rax
jne 0x434270
jmp 0x4341e2
cmp byte [rbp + 0x68f], 0
je 0x4342b3
cmp byte [rbp + 0x68c], 0
jne 0x434492
cmp byte [rbp + 0x68d], 0
jne 0x434492
mov rcx, rbp
call sym.gpt_params_handle_model_default_gpt_params_
cmp qword [rbp + 0x430], 0
je 0x43433b
cmp byte [rbp + 0x691], 0
jne 0x434378
mov rax, qword [rbp + 0x5f8]
cmp qword [rbp + 0x600], rax
je 0x4342fc
lea rcx, [rbp + 0x5f8]
call method.void_std::vector_llama_model_kv_override__std::allocator_llama_model_kv_override___.emplace_back____
mov rax, qword [rbp + 0x600]
mov byte [rax - 0x104], 0
mov rcx, qword [rsp + 0x60]
add r12, 0x10
cmp rcx, r12
je 0x43430f
call sym.operator_delete_void_
mov rcx, qword [rsp + 0x40]
add rbx, 0x10
cmp rcx, rbx
je 0x434322
call sym.operator_delete_void_
mov eax, 1
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.HF_TOKEN
call sym.getenv
test rax, rax
je 0x4342c5
lea rcx, str.HF_TOKEN
call sym.getenv
lea rcx, [rbp + 0x428]
mov rdx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::assign_char_const_
cmp byte [rbp + 0x691], 0
je 0x4342d2
lea rcx, [rbp + 0x488]
call sym.string_process_escapes_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rcx, [rbp + 0x4e8]
call sym.string_process_escapes_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rcx, [rbp + 0x508]
call sym.string_process_escapes_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rcx, [rbp + 0x328]
call sym.string_process_escapes_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
mov rsi, qword [rbp + 0x5e0]
mov rdi, qword [rbp + 0x5e8]
cmp rdi, rsi
je 0x4342d2
nop
mov rcx, rsi
call sym.string_process_escapes_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
add rsi, 0x20
cmp rdi, rsi
jne 0x4343c0
jmp 0x4342d2
lea rdi, [rsp + 0x80]
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov r8, rbx
mov rcx, rdi
lea rdx, str.error:_unknown_argument:
mov rbp, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rdx, rdi
mov rcx, rbp
call sym.std::invalid_argument::invalid_argument_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, qword [rsp + 0x80]
add rdi, 0x10
cmp rcx, rdi
je 0x43441e
call sym.operator_delete_void_
lea r8, [sym.std::invalid_argument::invalid_argument__]
mov rcx, rbp
lea rdx, sym.imp.libstdc_6.dll_vtable_for_std::__cxx11::basic_stringbuf_char__std::char_traits_char___std::allocator_char___
call sym.__cxa_throw
lea rdi, [rsp + 0x80]
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov r8, rbx
mov rcx, rdi
lea rdx, str.error:_invalid_parameter_for_argument:
mov rbp, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rdx, rdi
mov rcx, rbp
call sym.std::invalid_argument::invalid_argument_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, qword [rsp + 0x80]
add rdi, 0x10
cmp rcx, rdi
je 0x43447c
call sym.operator_delete_void_
lea r8, [sym.std::invalid_argument::invalid_argument__]
mov rcx, rbp
lea rdx, sym.imp.libstdc_6.dll_vtable_for_std::__cxx11::basic_stringbuf_char__std::char_traits_char___std::allocator_char___
call sym.__cxa_throw
mov ecx, 0x10
call sym.__cxa_allocate_exception
lea rdx, str.error:___prompt_cache_all_not_supported_in_interactive_mode_yet_n
mov rcx, rax
mov rdi, rax
call sym.std::invalid_argument::invalid_argument_char_const_
lea r8, [sym.std::invalid_argument::invalid_argument__]
mov rcx, rdi
lea rdx, sym.imp.libstdc_6.dll_vtable_for_std::__cxx11::basic_stringbuf_char__std::char_traits_char___std::allocator_char___
call sym.__cxa_throw
mov rcx, qword [rsp + 0x80]
add rdi, 0x10
mov rsi, rax
cmp rcx, rdi
je 0x4344dd
call sym.operator_delete_void_
mov rcx, rbp
call sym.__cxa_free_exception
jmp 0x4344f7
mov rcx, qword [rsp + 0x60]
add r12, 0x10
cmp rcx, r12
je 0x43450a
call sym.operator_delete_void_
mov rcx, qword [rsp + 0x40]
add rbx, 0x10
cmp rcx, rbx
je 0x43451d
call sym.operator_delete_void_
mov rcx, rsi
call sym._Unwind_Resume
jmp 0x4344c4