// File: /workspace/github_c_makefile_star2_O0/containers[P]conmon/src/utils.c
// Function: set_conmon_logs
void set_conmon_logs(char *level_name, char *cid_, gboolean syslog_, char *tag)
{
	if (tag == NULL)
		log_cid = cid_;
	else
		log_cid = g_strdup_printf("%s: %s", cid_, tag);
	use_syslog = syslog_;
	// log_level is initialized as Warning, no need to set anything
	if (level_name == NULL)
		return;
	if (!strcasecmp(level_name, "error") || !strcasecmp(level_name, "fatal") || !strcasecmp(level_name, "panic")) {
		log_level = EXIT_LEVEL;
		return;
	} else if (!strcasecmp(level_name, "warn") || !strcasecmp(level_name, "warning")) {
		log_level = WARN_LEVEL;
		return;
	} else if (!strcasecmp(level_name, "info")) {
		log_level = INFO_LEVEL;
		return;
	} else if (!strcasecmp(level_name, "debug")) {
		log_level = DEBUG_LEVEL;
		return;
	} else if (!strcasecmp(level_name, "trace")) {
		log_level = TRACE_LEVEL;
		return;
	}
	ntracef("set log level to %s", level_name);
	nexitf("No such log level %s", level_name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x8a8b
movq -0x10(%rbp), %rax
movq %rax, 0x224b7(%rip)     # 0x2af40
jmp 0x8aa8
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq 0x771a(%rip), %rdi      # 0x101b4
movb $0x0, %al
callq 0x4380
movq %rax, 0x22498(%rip)     # 0x2af40
movl -0x14(%rbp), %eax
movl %eax, 0x22497(%rip)     # 0x2af48
cmpq $0x0, -0x8(%rbp)
jne 0x8abd
jmp 0x8c59
movq -0x8(%rbp), %rdi
leaq 0x76f3(%rip), %rsi      # 0x101bb
callq 0x4200
cmpl $0x0, %eax
je 0x8afc
movq -0x8(%rbp), %rdi
leaq 0x76e4(%rip), %rsi      # 0x101c1
callq 0x4200
cmpl $0x0, %eax
je 0x8afc
movq -0x8(%rbp), %rdi
leaq 0x76d5(%rip), %rsi      # 0x101c7
callq 0x4200
cmpl $0x0, %eax
jne 0x8b0b
movl $0x0, 0xd99e(%rip)      # 0x164a4
jmp 0x8c59
movq -0x8(%rbp), %rdi
leaq 0x76b7(%rip), %rsi      # 0x101cd
callq 0x4200
cmpl $0x0, %eax
je 0x8b35
movq -0x8(%rbp), %rdi
leaq 0x76a7(%rip), %rsi      # 0x101d2
callq 0x4200
cmpl $0x0, %eax
jne 0x8b44
movl $0x1, 0xd965(%rip)      # 0x164a4
jmp 0x8c59
movq -0x8(%rbp), %rdi
leaq 0x7761(%rip), %rsi      # 0x102b0
callq 0x4200
cmpl $0x0, %eax
jne 0x8b68
movl $0x2, 0xd941(%rip)      # 0x164a4
jmp 0x8c59
movq -0x8(%rbp), %rdi
leaq 0x7667(%rip), %rsi      # 0x101da
callq 0x4200
cmpl $0x0, %eax
jne 0x8b8c
movl $0x3, 0xd91d(%rip)      # 0x164a4
jmp 0x8c59
movq -0x8(%rbp), %rdi
leaq 0x7649(%rip), %rsi      # 0x101e0
callq 0x4200
cmpl $0x0, %eax
jne 0x8bb0
movl $0x4, 0xd8f9(%rip)      # 0x164a4
jmp 0x8c59
jmp 0x8bb2
jmp 0x8bb4
jmp 0x8bb6
jmp 0x8bb8
cmpl $0x4, 0xd8e5(%rip)      # 0x164a4
jb 0x8c0a
jmp 0x8bc3
movq 0xd426(%rip), %rax      # 0x15ff0
movq (%rax), %rdi
movq -0x8(%rbp), %rdx
leaq 0x760e(%rip), %rsi      # 0x101e6
movb $0x0, %al
callq 0x4830
cmpl $0x0, 0x22362(%rip)     # 0x2af48
je 0x8c06
movq 0x22351(%rip), %rdx     # 0x2af40
movq -0x8(%rbp), %rcx
movl $0x6, %edi
leaq 0x7608(%rip), %rsi      # 0x10207
movb $0x0, %al
callq 0x4120
jmp 0x8c08
jmp 0x8c0a
jmp 0x8c0c
movq 0xd3dd(%rip), %rax      # 0x15ff0
movq (%rax), %rdi
movq -0x8(%rbp), %rdx
leaq 0x7613(%rip), %rsi      # 0x10234
movb $0x0, %al
callq 0x4830
cmpl $0x0, 0x22319(%rip)     # 0x2af48
je 0x8c4f
movq 0x22308(%rip), %rdx     # 0x2af40
movq -0x8(%rbp), %rcx
movl $0x3, %edi
leaq 0x760e(%rip), %rsi      # 0x10256
movb $0x0, %al
callq 0x4120
movl $0x1, %edi
callq 0x41e0
addq $0x20, %rsp
popq %rbp
retq
nop