// File: /workspace/github_c_makefile_star2_O0/sachinites[P]CommandParser/ut/utinfra/ut_parser.c
// Function: ut_test_handler
int
ut_test_handler (param_t *param, 
                            ser_buff_t *tlv_buf, 
                            op_mode enable_or_disable) {

    tlv_struct_t *tlv = NULL;
    char *ut_file_name = NULL;
    char *ut_enable_flag = NULL;
    int tc_no = 0;
    int cmdcode = EXTRACT_CMD_CODE(tlv_buf);

    TLV_LOOP_BEGIN(tlv_buf, tlv){

        if (strncmp(tlv->leaf_id, "ut-file-name", strlen("ut-file-name")) == 0)
            ut_file_name =  tlv->value;
        else if (strncmp(tlv->leaf_id, "tc-no", strlen("tc-no")) == 0)
            tc_no = atoi(tlv->value);
        else if (strncmp(tlv->leaf_id, "ut-enable", strlen("ut-enable")) == 0)
            ut_enable_flag = tlv->value;
    } TLV_LOOP_END;

    switch(cmdcode) {
        case  CMDCODE_RUN_UT_TC:
            run_test_case (ut_file_name, tc_no);
            break;
        case CMDCODE_DEBUG_UT:
            set_ut_debug_flag(ut_enable_flag);
            break;
        default : ;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5520
movq -0x48(%rbp), %rdi
cltq
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
subq $0x1, %rax
imulq $0x64, %rax, %rax
addq %rax, %rdi
addq $0x24, %rdi
callq 0x11d0
movl %eax, -0x38(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x91e6
jmp 0x9205
leaq 0x28d7(%rip), %rdi      # 0xbac4
leaq 0x2537(%rip), %rsi      # 0xb72b
movl $0x20a, %edx            # imm = 0x20A
leaq 0x28cc(%rip), %rcx      # 0xbacc
callq 0x10c0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5520
cltq
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
movl -0x40(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jae 0x92e6
movq -0x20(%rbp), %rdi
addq $0x4, %rdi
leaq 0x13f0(%rip), %rsi      # 0xa63f
movl $0xc, %edx
callq 0x1060
cmpl $0x0, %eax
jne 0x926c
movq -0x20(%rbp), %rax
addq $0x24, %rax
movq %rax, -0x28(%rbp)
jmp 0x92ca
movq -0x20(%rbp), %rdi
addq $0x4, %rdi
leaq 0x13de(%rip), %rsi      # 0xa659
movl $0x5, %edx
callq 0x1060
cmpl $0x0, %eax
jne 0x929c
movq -0x20(%rbp), %rdi
addq $0x24, %rdi
callq 0x11d0
movl %eax, -0x34(%rbp)
jmp 0x92c8
movq -0x20(%rbp), %rdi
addq $0x4, %rdi
leaq 0x1286(%rip), %rsi      # 0xa531
movl $0x9, %edx
callq 0x1060
cmpl $0x0, %eax
jne 0x92c6
movq -0x20(%rbp), %rax
addq $0x24, %rax
movq %rax, -0x30(%rbp)
jmp 0x92c8
jmp 0x92ca
jmp 0x92cc
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rax
addq $0x64, %rax
movq %rax, -0x20(%rbp)
jmp 0x922f
movl -0x38(%rbp), %eax
movl %eax, -0x4c(%rbp)
subl $0x9, %eax
je 0x92fd
jmp 0x92f3
movl -0x4c(%rbp), %eax
subl $0xa, %eax
je 0x930e
jmp 0x9319
movq -0x28(%rbp), %rdi
movl -0x34(%rbp), %eax
movzwl %ax, %esi
callq 0x79e0
jmp 0x931b
movq -0x30(%rbp), %rdi
callq 0x9330
jmp 0x931b
jmp 0x931b
xorl %eax, %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)