// File: /workspace/github_c_makefile_star2_O2/ryo[P]shmqueue/shmqueue.c
// Function: shmqueue_dumpall
void
shmqueue_dumpall(struct shmqueue *shmq_header)
{
	struct shmqueue_header *header;
	struct shmqueue_item *item;
	int i;

	header = shmq_header->header;


	printf("======== FREELIST ========\n");
	RTAILQ_DUMP_HEAD(&header->sha_freelist, shmqueue_item, "");
	for (item = RTAILQ_FIRST(&header->sha_freelist, shmqueue_item);
	    item != NULL;
	    item = RTAILQ_NEXT(item, &header->sha_freelist, shmqueue_item, shi_list)) {

		RTAILQ_DUMP(item, &header->sha_freelist, shmqueue_item, shi_list, "");
	}

	printf("======== LRULIST ========\n");
	RTAILQ_DUMP_HEAD(&header->sha_lrulist, shmqueue_item, "");
	for (item = RTAILQ_FIRST(&header->sha_lrulist, shmqueue_item);
	    item != NULL;
	    item = RTAILQ_NEXT(item, &header->sha_lrulist, shmqueue_item, shi_list)) {

		RTAILQ_DUMP(item, &header->sha_lrulist, shmqueue_item, shi_list, "");
		shmqueue_dumpitem(item);
	}

	printf("======== HASHLIST ========\n");
	for (i = 0; i < header->sha_hashnum; i++) {
		if (RTAILQ_EMPTY(&header->sha_hashlist[i]))
			continue;

		printf("    ======== HASHLIST[%d] ========\n", i);
		RTAILQ_DUMP_HEAD(&header->sha_hashlist[i], shmqueue_item, "    ");
		for (item = RTAILQ_FIRST(&header->sha_hashlist[i], shmqueue_item);
		    item != NULL;
		    item = RTAILQ_NEXT(item, &header->sha_hashlist[i], shmqueue_item, shi_hashlist)) {

			RTAILQ_DUMP(item, &header->sha_hashlist[i], shmqueue_item, shi_hashlist, "    ");
			shmqueue_dumpitem(item);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq (%rdi), %r13
leaq 0x207c(%rip), %rdi      # 0x340e
callq 0x1050
leaq 0x1d96(%rip), %rdi      # 0x3134
movq %r13, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r13), %rsi
leaq (%rsi,%r13), %rdx
leaq 0x1d8c(%rip), %rdi      # 0x3143
xorl %eax, %eax
callq 0x1070
leaq 0x1da6(%rip), %rdi      # 0x316b
leaq 0x1dc6(%rip), %r14      # 0x3192
leaq 0x1dcd(%rip), %r15      # 0x31a0
leaq 0x1dec(%rip), %rbx      # 0x31c6
movq %r13, %r12
movq 0x8(%r12), %rsi
leaq (%rsi,%r13), %rdx
xorl %eax, %eax
callq 0x1070
movq (%r12), %r12
leaq (%r12,%r13), %rax
testq %r12, %r12
cmovneq %rax, %r12
testq %r12, %r12
je 0x1425
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r12), %rsi
leaq (%rsi,%r13), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
jmp 0x13dd
leaq 0x1ffd(%rip), %rdi      # 0x3429
callq 0x1050
leaq 0x10(%r13), %r14
leaq 0x1cf8(%rip), %rdi      # 0x3134
movq %r14, %rsi
xorl %eax, %eax
callq 0x1070
movq 0x10(%r13), %rsi
leaq (%rsi,%r13), %rdx
addq $0x10, %rdx
leaq 0x1cea(%rip), %rdi      # 0x3143
xorl %eax, %eax
callq 0x1070
movq 0x18(%r13), %rsi
movq %r13, (%rsp)
leaq (%rsi,%r13), %rdx
addq $0x10, %rdx
leaq 0x1cf4(%rip), %rdi      # 0x316b
xorl %eax, %eax
callq 0x1070
leaq 0x1d0d(%rip), %r15      # 0x3192
leaq 0x1d14(%rip), %r12      # 0x31a0
leaq 0x1d33(%rip), %r13      # 0x31c6
movq %r14, %rbp
movq (%rbp), %rax
leaq (%rax,%r14), %rbp
testq %rax, %rax
cmoveq %rax, %rbp
testq %rbp, %rbp
je 0x14e5
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1070
movq (%rbp), %rsi
leaq (%rsi,%r14), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x1070
movq 0x8(%rbp), %rsi
leaq (%rsi,%r14), %rdx
movq %r13, %rdi
xorl %eax, %eax
callq 0x1070
movq %rbp, %rdi
callq 0x12e4
jmp 0x1496
leaq 0x1f57(%rip), %rdi      # 0x3443
callq 0x1050
movq (%rsp), %rax
leaq 0x150(%rax), %rcx
movq %rcx, 0x8(%rsp)
leaq 0x1c86(%rip), %rbp      # 0x318e
leaq 0x1c8d(%rip), %r14      # 0x319c
leaq 0x1cac(%rip), %r15      # 0x31c2
xorl %r13d, %r13d
movl 0x28(%rax), %eax
cmpq %rax, %r13
jae 0x15f4
movq %r13, 0x10(%rsp)
shlq $0x4, %r13
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax,%r13)
je 0x15e3
addq 0x8(%rsp), %r13
leaq 0x1bc2(%rip), %rdi      # 0x310c
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x1070
leaq 0x1bd3(%rip), %rdi      # 0x3130
movq %r13, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r13), %rsi
leaq (%rsi,%r13), %rdx
leaq 0x1bc9(%rip), %rdi      # 0x313f
xorl %eax, %eax
callq 0x1070
movq 0x8(%r13), %rsi
leaq (%rsi,%r13), %rdx
leaq 0x1bdb(%rip), %rdi      # 0x3167
xorl %eax, %eax
callq 0x1070
movq %r13, %r12
movq (%r12), %rbx
testq %rbx, %rbx
je 0x15e3
addq %r13, %rbx
je 0x15e3
movq %rbp, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1070
leaq 0x10(%rbx), %r12
movq 0x10(%rbx), %rsi
leaq (%rsi,%r13), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1070
movq 0x18(%rbx), %rsi
leaq (%rsi,%r13), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
callq 0x12e4
jmp 0x1596
movq 0x10(%rsp), %r13
incq %r13
movq (%rsp), %rax
jmp 0x1519
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq