// File: ridiculousfish[P]docopt_fish/docopt_fish_test.cpp
// Function: run_1_command_test(char const*, char const*, char const*, unsigned long, unsigned long)
static void run_1_command_test(const char *usage, const char *variable, const char *expected_command, size_t test_idx, size_t arg_idx) {
    /* Usage as a string */
    const string_t usage_str(usage, usage + strlen(usage));
    
    /* Perform the parsing */
    argument_parser_t parser(usage_str, nullptr);
    
    const string_t var_string(variable, variable + strlen(variable));
    const string_t command_string = parser.metadata_for_name(var_string).command;
    const string_t expected_command_string(expected_command, expected_command + strlen(expected_command));
    
    if (expected_command_string != command_string) {
        err("Test %lu.%lu: Wrong command. Expected '%ls', got '%ls'", test_idx, arg_idx, wide(expected_command_string), wide(command_string));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x8110
movq %rax, %rcx
movq -0x158(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x150(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x8130
movq -0x158(%rbp), %rsi
movq -0x150(%rbp), %rdx
movq -0x148(%rbp), %rcx
leaq -0x48(%rbp), %rdi
callq 0x43f20
jmp 0x43183
leaq -0x49(%rbp), %rdi
callq 0x85f0
xorl %eax, %eax
movl %eax, %edx
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xab40
jmp 0x4319f
movq -0x10(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x8110
movq %rax, %rcx
movq -0x170(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x168(%rbp)
leaq -0x89(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x8130
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x160(%rbp), %rcx
leaq -0x88(%rbp), %rdi
callq 0x43f20
jmp 0x431f9
leaq -0x89(%rbp), %rdi
callq 0x85f0
leaq -0x118(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0xa660
jmp 0x4321e
leaq -0xb0(%rbp), %rdi
leaq -0x118(%rbp), %rsi
movq %rsi, -0x190(%rbp)
callq 0x8440
movq -0x190(%rbp), %rdi
callq 0x11350
movq -0x18(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x8110
movq %rax, %rcx
movq -0x188(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x180(%rbp)
leaq -0x139(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x8130
movq -0x188(%rbp), %rsi
movq -0x180(%rbp), %rdx
movq -0x178(%rbp), %rcx
leaq -0x138(%rbp), %rdi
callq 0x43f20
jmp 0x4329e
leaq -0x139(%rbp), %rdi
callq 0x85f0
leaq -0x138(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x470e0
testb $0x1, %al
jne 0x432c6
jmp 0x433b2
movq -0x20(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x3b6c0
movq %rax, -0x198(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x3b6c0
movq -0x1a8(%rbp), %rsi
movq -0x1a0(%rbp), %rdx
movq -0x198(%rbp), %rcx
movq %rax, %r8
leaq 0xc2ee(%rip), %rdi      # 0x4f608
xorl %eax, %eax
callq 0x3b570
jmp 0x43323
jmp 0x433b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x49(%rbp), %rdi
callq 0x85f0
jmp 0x4341b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x43412
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x89(%rbp), %rdi
callq 0x85f0
jmp 0x43409
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x433fd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x139(%rbp), %rdi
callq 0x85f0
jmp 0x433f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x8590
jmp 0x433f1
leaq -0x138(%rbp), %rdi
callq 0x8590
leaq -0xb0(%rbp), %rdi
callq 0x8590
leaq -0x88(%rbp), %rdi
callq 0x8590
leaq -0x68(%rbp), %rdi
callq 0xac20
leaq -0x48(%rbp), %rdi
callq 0x8590
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
leaq -0xb0(%rbp), %rdi
callq 0x8590
leaq -0x88(%rbp), %rdi
callq 0x8590
leaq -0x68(%rbp), %rdi
callq 0xac20
leaq -0x48(%rbp), %rdi
callq 0x8590
movq -0x58(%rbp), %rdi
callq 0x85d0
nopw %cs:(%rax,%rax)