// File: /workspace/github_c_makefile_star2_O3/cglindkamp[P]dfm/src/dirmodel.c
// Function: dirmodel_notify_flush
int dirmodel_notify_flush(struct dirmodel *model)
{
	int ret = 0;
	size_t length = list_length(model->addchange_queue);
	for(size_t i = 0; i < length; i++) {
		ret = dirmodel_notify_file_added_or_changed_real(model, list_get_item(model->addchange_queue, i));
		if(ret == ENOMEM)
			break;
	}
	for(size_t i = length; i > 0; i--) {
		free(list_get_item(model->addchange_queue, i - 1));
		list_remove(model->addchange_queue, i - 1);
	}
	return ret == ENOMEM ? ENOMEM : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
callq 0x774e
testq %rax, %rax
je 0x67f6
movq %rax, %r14
leaq 0x48(%rbx), %rbp
movb $0x1, %r13b
xorl %r12d, %r12d
movq %rbp, 0x8(%rsp)
movq 0x38(%rbx), %rdi
movq %r12, %rsi
callq 0x7929
movq %rax, %r15
cmpb $0x1, 0x88(%rbx)
jne 0x654a
movq %rbp, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x34d0
testl %eax, %eax
jne 0x67ad
movq 0x40(%rbx), %rdi
callq 0x33f0
leaq 0x18(%rsp), %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x753b
movl %eax, %r15d
testl %eax, %eax
jne 0x67a7
movq 0x28(%rbx), %rdi
movq 0x18(%rsp), %rdx
leaq 0x923(%rip), %rsi       # 0x6ea0
leaq 0x20(%rsp), %rcx
callq 0x7999
movq 0x18(%rsp), %rbp
movq 0x20(%rsp), %r15
movq 0x28(%rbx), %rdi
testb %al, %al
je 0x661e
movq %r15, %r13
movq %r15, %rsi
callq 0x7929
movq %rax, %r15
movb 0xa8(%rax), %al
movb %al, 0xa8(%rbp)
movb 0x8(%r15), %dl
testb %al, %al
je 0x6699
movl $0xa0, %eax
movl $0xa0, %ecx
testb $0x1, %dl
jne 0x65d7
movl $0x40, %ecx
movq 0xa0(%rbx), %rdx
movq 0xa8(%rbx), %rsi
subq (%r15,%rcx), %rsi
movq %rsi, 0xa8(%rbx)
leaq -0x1(%rdx), %rdi
movq %rdi, 0xa0(%rbx)
cmpb $0x0, 0x8(%rbp)
jne 0x6606
movl $0x40, %eax
addq (%rbp,%rax), %rsi
movq %rsi, 0xa8(%rbx)
movq %rdx, 0xa0(%rbx)
jmp 0x66b8
movq %r15, %rsi
movq %rbp, %rdx
callq 0x77ba
testb %al, %al
je 0x6807
movq 0x30(%rbx), %rdi
movq 0x90(%rbx), %rsi
movq %rbp, %rdx
movq %rsp, %rcx
callq 0x7999
movq 0x30(%rbx), %rdi
movq (%rsp), %rsi
movq %rbp, %rdx
callq 0x77ba
testb %al, %al
je 0x6788
testq %rbp, %rbp
je 0x6681
leaq 0x40(%rbp), %rax
leaq 0xa0(%rbp), %rcx
cmpb $0x0, 0x8(%rbp)
cmovneq %rcx, %rax
movq (%rax), %rax
addq %rax, 0xb0(%rbx)
movq (%rsp), %rdx
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x7b76
jmp 0x67a2
movl $0xa0, %eax
movl $0xa0, %ecx
testb $0x1, %dl
jne 0x66ad
movl $0x40, %ecx
testb $0x1, 0x8(%rbp)
jne 0x66b8
movl $0x40, %eax
movq 0xb0(%rbx), %rdx
subq (%r15,%rcx), %rdx
movq %rdx, 0xb0(%rbx)
addq (%rbp,%rax), %rdx
movq %rdx, 0xb0(%rbx)
movq 0x30(%rbx), %rdi
movq 0x90(%rbx), %rsi
movq %r15, %rdx
leaq 0x10(%rsp), %rcx
callq 0x7999
movq 0x30(%rbx), %rdi
movq 0x90(%rbx), %rsi
movq %rbp, %rdx
movq %rsp, %rcx
callq 0x7999
movq (%rsp), %rdx
movq 0x10(%rsp), %rsi
cmpq %rsi, %rdx
setne %al
leaq 0x1(%rsi), %rcx
cmpq %rcx, %rdx
setne %cl
testb %cl, %al
jne 0x673f
movq 0x30(%rbx), %rdi
movq %rbp, %rdx
callq 0x7957
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movl $0x2, %esi
movq %rcx, %rdx
jmp 0x6765
cmpq %rdx, %rsi
jae 0x674b
decq %rdx
movq %rdx, (%rsp)
movq 0x30(%rbx), %rdi
callq 0x7837
movq (%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7b76
movq 0x28(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x7957
movq %r15, %rdi
callq 0x7695
movq 0x8(%rsp), %rbp
jmp 0x67ad
movq %rbp, %rdi
callq 0x7695
movq 0x28(%rbx), %rdi
movq %r15, %rsi
callq 0x78d7
movl $0xc, %r15d
movq 0x8(%rsp), %rbp
cmpl $0xc, %r15d
je 0x67bd
incq %r12
cmpq %r14, %r12
setb %r13b
jne 0x6518
decq %r14
movq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x7929
movq %rax, %rdi
callq 0x3740
movq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x78d7
addq $-0x1, %r14
jb 0x67c0
xorl %ecx, %ecx
testb $0x1, %r13b
movl $0xc, %eax
cmovel %ecx, %eax
jmp 0x67f8
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %rdi
callq 0x7695
jmp 0x67bd