// File: /workspace/github_c_makefile_star2_O1/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 0x1466
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
leaq (%r14,%rbp), %rax
testq %r14, %r14
cmovneq %rax, %r14
testq %r14, %r14
jne 0x1423
leaq 0x1fbc(%rip), %rdi      # 0x3429
callq 0x1050
leaq 0x10(%rbp), %r14
leaq 0x1cb7(%rip), %rdi      # 0x3134
movq %r14, %rsi
xorl %eax, %eax
callq 0x1070
movq 0x10(%rbp), %rsi
leaq (%rsi,%rbp), %rdx
addq $0x10, %rdx
leaq 0x1ca9(%rip), %rdi      # 0x3143
xorl %eax, %eax
callq 0x1070
movq 0x18(%rbp), %rsi
leaq (%rsi,%rbp), %rdx
addq $0x10, %rdx
leaq 0x1cb7(%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 0x152f
leaq 0x1cbc(%rip), %rbx      # 0x3192
leaq 0x1cc3(%rip), %r12      # 0x31a0
leaq 0x1ce2(%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
leaq (%r15,%r14), %rax
testq %r15, %r15
cmovneq %rax, %r15
testq %r15, %r15
jne 0x14e4
leaq 0x1f0d(%rip), %rdi      # 0x3443
callq 0x1050
movq %rbp, 0x8(%rsp)
cmpl $0x0, 0x28(%rbp)
je 0x1652
movq 0x8(%rsp), %rax
addq $0x150, %rax            # imm = 0x150
movq %rax, 0x10(%rsp)
leaq 0x1c2d(%rip), %rbp      # 0x318e
leaq 0x1c34(%rip), %r14      # 0x319c
leaq 0x1c53(%rip), %r15      # 0x31c2
xorl %r13d, %r13d
movq %r13, %r12
shlq $0x4, %r12
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax,%r12)
je 0x163e
addq 0x10(%rsp), %r12
leaq 0x1b77(%rip), %rdi      # 0x310c
movl %r13d, %esi
xorl %eax, %eax
callq 0x1070
leaq 0x1b8a(%rip), %rdi      # 0x3130
movq %r12, %rsi
xorl %eax, %eax
callq 0x1070
movq (%r12), %rsi
leaq (%rsi,%r12), %rdx
leaq 0x1b80(%rip), %rdi      # 0x313f
xorl %eax, %eax
callq 0x1070
movq 0x8(%r12), %rsi
leaq (%rsi,%r12), %rdx
leaq 0x1b91(%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 0x163e
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
leaq (%rbx,%r12), %rax
testq %rbx, %rbx
cmovneq %rax, %rbx
testq %rbx, %rbx
jne 0x15f1
incq %r13
movq 0x8(%rsp), %rax
movl 0x28(%rax), %eax
cmpq %rax, %r13
jb 0x1572
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq