// File: /workspace/github_c_makefile_star2_O0/nurse[P]nkf/nkf.c
// Function: broken_getc
static nkf_char
broken_getc(FILE *f)
{
    nkf_char c, c1;

    if (!nkf_buf_empty_p(nkf_state->broken_buf)) {
	return nkf_buf_pop(nkf_state->broken_buf);
    }
    c = (*i_bgetc)(f);
    if (c=='$' && nkf_state->broken_state != ESC
	&& (input_mode == ASCII || input_mode == JIS_X_0201_1976_K)) {
	c1= (*i_bgetc)(f);
	nkf_state->broken_state = 0;
	if (c1=='@'|| c1=='B') {
	    nkf_buf_push(nkf_state->broken_buf, c1);
	    nkf_buf_push(nkf_state->broken_buf, c);
	    return ESC;
	} else {
	    (*i_bungetc)(c1,f);
	    return c;
	}
    } else if (c=='(' && nkf_state->broken_state != ESC
	       && (input_mode == JIS_X_0208 || input_mode == JIS_X_0201_1976_K)) {
	c1= (*i_bgetc)(f);
	nkf_state->broken_state = 0;
	if (c1=='J'|| c1=='B') {
	    nkf_buf_push(nkf_state->broken_buf, c1);
	    nkf_buf_push(nkf_state->broken_buf, c);
	    return ESC;
	} else {
	    (*i_bungetc)(c1,f);
	    return c;
	}
    } else {
	nkf_state->broken_state = c;
	return c;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq 0x422e5(%rip), %rax     # 0x5a598
movq 0x10(%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x182d6
movq 0x422d3(%rip), %rax     # 0x5a598
movq 0x10(%rax), %rdi
callq 0x14950
movl %eax, -0x4(%rbp)
jmp 0x18444
movq 0x3a03b(%rip), %rax     # 0x52318
movq -0x10(%rbp), %rdi
callq *%rax
movl %eax, -0x14(%rbp)
cmpl $0x24, -0x14(%rbp)
jne 0x1838d
movq 0x422a1(%rip), %rax     # 0x5a598
cmpl $0x1b, 0x8(%rax)
je 0x1838d
cmpl $0x0, 0x42354(%rip)     # 0x5a65c
je 0x18316
cmpl $0x1013, 0x42348(%rip)  # imm = 0x1013
jne 0x1838d
movq 0x39ffb(%rip), %rax     # 0x52318
movq -0x10(%rbp), %rdi
callq *%rax
movl %eax, -0x18(%rbp)
movq 0x4226b(%rip), %rax     # 0x5a598
movl $0x0, 0x8(%rax)
cmpl $0x40, -0x18(%rbp)
je 0x18340
cmpl $0x42, -0x18(%rbp)
jne 0x18372
movq 0x42251(%rip), %rax     # 0x5a598
movq 0x10(%rax), %rdi
movl -0x18(%rbp), %esi
callq 0x149b0
movq 0x4223e(%rip), %rax     # 0x5a598
movq 0x10(%rax), %rdi
movl -0x14(%rbp), %esi
callq 0x149b0
movl $0x1b, -0x4(%rbp)
jmp 0x18444
movq 0x39fa7(%rip), %rax     # 0x52320
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x18444
cmpl $0x28, -0x14(%rbp)
jne 0x18431
movq 0x421fa(%rip), %rax     # 0x5a598
cmpl $0x1b, 0x8(%rax)
je 0x18431
cmpl $0x1168, 0x422aa(%rip)  # imm = 0x1168
je 0x183c0
cmpl $0x1013, 0x4229e(%rip)  # imm = 0x1013
jne 0x18431
movq 0x39f51(%rip), %rax     # 0x52318
movq -0x10(%rbp), %rdi
callq *%rax
movl %eax, -0x18(%rbp)
movq 0x421c1(%rip), %rax     # 0x5a598
movl $0x0, 0x8(%rax)
cmpl $0x4a, -0x18(%rbp)
je 0x183ea
cmpl $0x42, -0x18(%rbp)
jne 0x18419
movq 0x421a7(%rip), %rax     # 0x5a598
movq 0x10(%rax), %rdi
movl -0x18(%rbp), %esi
callq 0x149b0
movq 0x42194(%rip), %rax     # 0x5a598
movq 0x10(%rax), %rdi
movl -0x14(%rbp), %esi
callq 0x149b0
movl $0x1b, -0x4(%rbp)
jmp 0x18444
movq 0x39f00(%rip), %rax     # 0x52320
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x18444
movl -0x14(%rbp), %ecx
movq 0x4215d(%rip), %rax     # 0x5a598
movl %ecx, 0x8(%rax)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)