// File: /workspace/github_c_makefile_star2_O0/nurse[P]nkf/nkf.c
// Function: open_mime
static void
open_mime(nkf_char mode)
{
    const unsigned char *p;
    int i;
    int j;
    p  = mime_pattern[0];
    for(i=0;mime_pattern[i];i++) {
	if (mode == mime_encode[i]) {
	    p = mime_pattern[i];
	    break;
	}
    }
    mimeout_mode = mime_encode_method[i];
    i = 0;
    if (base64_count>45) {
	if (mimeout_state.count>0 && nkf_isblank(mimeout_state.buf[i])){
	    (*o_mputc)(mimeout_state.buf[i]);
	    i++;
	}
	put_newline(o_mputc);
	(*o_mputc)(SP);
	base64_count = 1;
	if (mimeout_state.count>0 && nkf_isspace(mimeout_state.buf[i])) {
	    i++;
	}
    }
    for (;i<mimeout_state.count;i++) {
	if (nkf_isspace(mimeout_state.buf[i])) {
	    (*o_mputc)(mimeout_state.buf[i]);
	    base64_count ++;
	} else {
	    break;
	}
    }
    while(*p) {
	(*o_mputc)(*p++);
	base64_count ++;
    }
    j = mimeout_state.count;
    mimeout_state.count = 0;
    for (;i<j;i++) {
	mime_putc(mimeout_state.buf[i]);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq 0x39b0e(%rip), %rax     # 0x523a0
movq %rax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movslq -0x14(%rbp), %rcx
leaq 0x39af8(%rip), %rax     # 0x523a0
cmpq $0x0, (%rax,%rcx,8)
je 0x188e4
movl -0x4(%rbp), %eax
movslq -0x14(%rbp), %rdx
leaq 0x3fe3(%rip), %rcx      # 0x1c8a0
cmpl (%rcx,%rdx,4), %eax
jne 0x188d7
movslq -0x14(%rbp), %rcx
leaq 0x39ad3(%rip), %rax     # 0x523a0
movq (%rax,%rcx,8), %rax
movq %rax, -0x10(%rbp)
jmp 0x188e4
jmp 0x188d9
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1889d
movslq -0x14(%rbp), %rcx
leaq 0x3fe1(%rip), %rax      # 0x1c8d0
movl (%rax,%rcx,4), %eax
movl %eax, 0x41cf4(%rip)     # 0x5a5ec
movl $0x0, -0x14(%rbp)
cmpl $0x2d, 0x41d4a(%rip)    # 0x5a650
jle 0x189e3
cmpl $0x0, 0x41d39(%rip)     # 0x5a64c
jle 0x1895e
movslq -0x14(%rbp), %rcx
leaq 0x41ce0(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
je 0x1893d
movslq -0x14(%rbp), %rcx
leaq 0x41ccc(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0x9, %eax
jne 0x1895e
movq 0x399e4(%rip), %rax     # 0x52328
movslq -0x14(%rbp), %rdx
leaq 0x41cb1(%rip), %rcx     # 0x5a600
movzbl (%rcx,%rdx), %edi
callq *%rax
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movq 0x399c3(%rip), %rdi     # 0x52328
callq 0x18490
movl $0x20, %edi
callq *0x399b3(%rip)          # 0x52328
movl $0x1, 0x41cd1(%rip)     # 0x5a650
cmpl $0x0, 0x41cc6(%rip)     # 0x5a64c
jle 0x189e1
movslq -0x14(%rbp), %rcx
leaq 0x41c6d(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
je 0x189d8
movslq -0x14(%rbp), %rcx
leaq 0x41c59(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0x9, %eax
je 0x189d8
movslq -0x14(%rbp), %rcx
leaq 0x41c45(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0xd, %eax
je 0x189d8
movslq -0x14(%rbp), %rcx
leaq 0x41c31(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x189e1
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x189e3
jmp 0x189e5
movl -0x14(%rbp), %eax
cmpl 0x41c5e(%rip), %eax     # 0x5a64c
jge 0x18a7f
movslq -0x14(%rbp), %rcx
leaq 0x41c01(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
je 0x18a44
movslq -0x14(%rbp), %rcx
leaq 0x41bed(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0x9, %eax
je 0x18a44
movslq -0x14(%rbp), %rcx
leaq 0x41bd9(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0xd, %eax
je 0x18a44
movslq -0x14(%rbp), %rcx
leaq 0x41bc5(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x18a6d
movq 0x398dd(%rip), %rax     # 0x52328
movslq -0x14(%rbp), %rdx
leaq 0x41baa(%rip), %rcx     # 0x5a600
movzbl (%rcx,%rdx), %edi
callq *%rax
movl 0x41bee(%rip), %eax     # 0x5a650
addl $0x1, %eax
movl %eax, 0x41be5(%rip)     # 0x5a650
jmp 0x18a6f
jmp 0x18a7f
jmp 0x18a71
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x189e5
jmp 0x18a81
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x18ab6
movq 0x39897(%rip), %rax     # 0x52328
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movzbl (%rcx), %edi
callq *%rax
movl 0x41ba5(%rip), %eax     # 0x5a650
addl $0x1, %eax
movl %eax, 0x41b9c(%rip)     # 0x5a650
jmp 0x18a81
movl 0x41b90(%rip), %eax     # 0x5a64c
movl %eax, -0x18(%rbp)
movl $0x0, 0x41b83(%rip)     # 0x5a64c
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x18af0
movslq -0x14(%rbp), %rcx
leaq 0x41b24(%rip), %rax     # 0x5a600
movzbl (%rax,%rcx), %edi
callq 0x15390
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x18ac9
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)