// File: /workspace/github_c_makefile_star2_O3/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), %rbp
leaq 0x2056(%rip), %rdi      # 0x340e
callq 0x1050
leaq 0x1d70(%rip), %rdi      # 0x3134
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1070
movq (%rbp), %rsi
leaq (%rsi,%rbp), %rdx
leaq 0x1d66(%rip), %rdi      # 0x3143
xorl %eax, %eax
callq 0x1070
movq 0x8(%rbp), %rsi
leaq (%rsi,%rbp), %rdx
leaq 0x1d78(%rip), %rdi      # 0x316b
xorl %eax, %eax
callq 0x1070
movq (%rbp), %r14
testq %r14, %r14
sete %al
addq %rbp, %r14
sete %cl
orb %al, %cl
jne 0x1460
leaq 0x1d7d(%rip), %rbx      # 0x3192
leaq 0x1d84(%rip), %r15      # 0x31a0
leaq 0x1da3(%rip), %r12      # 0x31c6
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r14), %rsi
leaq (%rsi,%rbp), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1070
movq 0x8(%r14), %rsi
leaq (%rsi,%rbp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x1070
movq (%r14), %r14
testq %r14, %r14
je 0x1460
addq %rbp, %r14
jne 0x1423
leaq 0x1fc2(%rip), %rdi      # 0x3429
callq 0x1050
leaq 0x10(%rbp), %r14
leaq 0x1cbd(%rip), %rdi      # 0x3134
movq %r14, %rsi
xorl %eax, %eax
callq 0x1070
movq 0x10(%rbp), %rsi
leaq (%rsi,%rbp), %rdx
addq $0x10, %rdx
leaq 0x1caf(%rip), %rdi      # 0x3143
xorl %eax, %eax
callq 0x1070
movq 0x18(%rbp), %rsi
leaq (%rsi,%rbp), %rdx
addq $0x10, %rdx
leaq 0x1cbd(%rip), %rdi      # 0x316b
xorl %eax, %eax
callq 0x1070
movq 0x10(%rbp), %r15
testq %r15, %r15
sete %al
addq %r14, %r15
sete %cl
orb %al, %cl
jne 0x1523
leaq 0x1cc2(%rip), %rbx      # 0x3192
leaq 0x1cc9(%rip), %r12      # 0x31a0
leaq 0x1ce8(%rip), %r13      # 0x31c6
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r15), %rsi
leaq (%rsi,%r14), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x1070
movq 0x8(%r15), %rsi
leaq (%rsi,%r14), %rdx
movq %r13, %rdi
xorl %eax, %eax
callq 0x1070
movq %r15, %rdi
callq 0x130a
movq (%r15), %r15
testq %r15, %r15
je 0x1523
addq %r14, %r15
jne 0x14de
leaq 0x1f19(%rip), %rdi      # 0x3443
callq 0x1050
movq %rbp, 0x8(%rsp)
cmpl $0x0, 0x28(%rbp)
je 0x1640
movq 0x8(%rsp), %rax
addq $0x150, %rax            # imm = 0x150
movq %rax, 0x10(%rsp)
leaq 0x1c39(%rip), %rbp      # 0x318e
leaq 0x1c40(%rip), %r14      # 0x319c
leaq 0x1c5f(%rip), %r15      # 0x31c2
xorl %r13d, %r13d
movq %r13, %r12
shlq $0x4, %r12
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax,%r12)
je 0x162c
addq 0x10(%rsp), %r12
leaq 0x1b83(%rip), %rdi      # 0x310c
movl %r13d, %esi
xorl %eax, %eax
callq 0x1070
leaq 0x1b96(%rip), %rdi      # 0x3130
movq %r12, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r12), %rsi
leaq (%rsi,%r12), %rdx
leaq 0x1b8c(%rip), %rdi      # 0x313f
xorl %eax, %eax
callq 0x1070
movq 0x8(%r12), %rsi
leaq (%rsi,%r12), %rdx
leaq 0x1b9d(%rip), %rdi      # 0x3167
xorl %eax, %eax
callq 0x1070
movq (%r12), %rbx
testq %rbx, %rbx
sete %al
addq %r12, %rbx
sete %cl
orb %al, %cl
jne 0x162c
movq %rbp, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1070
movq 0x10(%rbx), %rsi
leaq (%rsi,%r12), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1070
movq 0x18(%rbx), %rsi
leaq (%rsi,%r12), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
callq 0x130a
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0x162c
addq %r12, %rbx
jne 0x15e5
incq %r13
movq 0x8(%rsp), %rax
movl 0x28(%rax), %eax
cmpq %rax, %r13
jb 0x1566
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq