// File: /workspace/github_c_makefile_star2_O0/hcmiya[P]opuscomment/src/parse-tags.c
// Function: test_mbp
static void test_mbp(uint8_t **line, size_t *n) {
	if (fieldlen > 22) {
		append_buffer(*line, *n);
	}
	else {
		bool filled;
		size_t before = fieldlen;
		filled = count_field_len(*line, *n);
		size_t add = fieldlen - before;
		if (filled) {
			size_t w;
			// M_B_Pを比較する分のバッファが埋まったか項目名が決まった場合
			if (fieldlen > 22) {
				if (add + before > 22) {
					add = 22 - before;
				}
				w = 22;
			}
			else if (fieldlen == 22 && !on_field) {
				if (codec->type == CODEC_FLAC &&
					memcmp(field_pending, MBPeq, 22) == 0) {
					store_picture = true;
					fwrite((uint32_t[]){0}, 4, 1, flacpict);
					editlen -= 4;
					uint8_t *databegin = strchr(*line, 0x3d) + 1;
					append_buffer(databegin, *n - (databegin - *line));
					return;
				}
				else {
					w = 22;
				}
			}
			else {
				w = fieldlen;
			}
			append_buffer(field_pending, w);
			*line += add;
			*n -= add;
			append_buffer(*line, *n);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x16, 0x9470(%rip)     # 0xd5c8
jbe 0x4172
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x4310
jmp 0x42ff
movq 0x944f(%rip), %rax      # 0xd5c8
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x4480
andb $0x1, %al
movb %al, -0x11(%rbp)
movq 0x942c(%rip), %rax      # 0xd5c8
subq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
testb $0x1, -0x11(%rbp)
je 0x42fd
cmpq $0x16, 0x9412(%rip)     # 0xd5c8
jbe 0x41e0
movq -0x28(%rbp), %rax
addq -0x20(%rbp), %rax
cmpq $0x16, %rax
jbe 0x41d3
movl $0x16, %eax
subq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x16, -0x30(%rbp)
jmp 0x42bb
cmpq $0x16, 0x93e0(%rip)     # 0xd5c8
jne 0x42ae
testb $0x1, 0x93bd(%rip)      # 0xd5b2
jne 0x42ae
leaq 0x194ae(%rip), %rax     # 0x1d6b0
movq (%rax), %rax
cmpl $0x2, (%rax)
jne 0x42a4
leaq 0x8b83(%rip), %rax      # 0xcd98
movq (%rax), %rsi
leaq 0x93d1(%rip), %rdi      # 0xd5f0
movl $0x16, %edx
callq 0x2230
cmpl $0x0, %eax
jne 0x42a4
movb $0x1, 0x937e(%rip)      # 0xd5b3
movl $0x0, -0x34(%rbp)
leaq -0x34(%rbp), %rdi
movq 0x9349(%rip), %rcx      # 0xd590
movl $0x4, %esi
movl $0x1, %edx
callq 0x2490
movq 0x9383(%rip), %rax      # 0xd5e0
subq $0x4, %rax
movq %rax, 0x9378(%rip)      # 0xd5e0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl $0x3d, %esi
callq 0x2150
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x40(%rbp), %rax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
subq %rax, %rsi
callq 0x4310
jmp 0x42ff
movq $0x16, -0x30(%rbp)
jmp 0x42b9
movq 0x9313(%rip), %rax      # 0xd5c8
movq %rax, -0x30(%rbp)
jmp 0x42bb
movq -0x30(%rbp), %rsi
leaq 0x932a(%rip), %rdi      # 0xd5f0
callq 0x4310
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rcx
subq %rdx, %rcx
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x4310
jmp 0x42ff
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)