// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/ilbm.c
// Function: get_bits_descr
static void get_bits_descr(deark *c, lctx *d, struct frame_ctx *frctx, de_ucstring *s)
{
	UI bits = frctx->bits;

	if(frctx->op==4 || frctx->op==5 || frctx->op==7 || frctx->op==8) {
		if(bits & 0x1) {
			ucstring_append_flags_item(s, "long data");
			bits -= 0x1;
			d->uses_anim_long_data = 1;
		}
	}
	if(frctx->op==4 || frctx->op==5) {
		if(bits & 0x2) {
			ucstring_append_flags_item(s, "XOR");
			bits -= 0x2;
			d->uses_anim4_5_xor_mode = 1;
		}
		if(bits & 0x4) {
			ucstring_append_flags_item(s, "one info list");
			bits -= 0x4;
		}
		if(bits & 0x8) {
			ucstring_append_flags_item(s, "RLC");
			bits -= 0x8;
		}
		if(bits & 0x10) {
			ucstring_append_flags_item(s, "vertical");
			bits -= 0x10;
		}
		if(bits & 0x20) {
			ucstring_append_flags_item(s, "long info offsets");
			bits -= 0x20;
		}
	}

	if(bits!=0) {
		ucstring_append_flags_itemf(s, "0x%08x", bits);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0x4, %eax
je 0xb1af6
movq -0x18(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0x5, %eax
je 0xb1af6
movq -0x18(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0x7, %eax
je 0xb1af6
movq -0x18(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0x8, %eax
jne 0xb1b24
movl -0x24(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xb1b22
movq -0x20(%rbp), %rdi
leaq 0x102bf6(%rip), %rsi    # 0x1b4702
callq 0x172680
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movb $0x1, 0x46(%rax)
jmp 0xb1b24
movq -0x18(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0x4, %eax
je 0xb1b42
movq -0x18(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0x5, %eax
jne 0xb1c00
movl -0x24(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xb1b6e
movq -0x20(%rbp), %rdi
leaq 0x102afb(%rip), %rsi    # 0x1b4653
callq 0x172680
movl -0x24(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movb $0x1, 0x45(%rax)
movl -0x24(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xb1b92
movq -0x20(%rbp), %rdi
leaq 0x102b88(%rip), %rsi    # 0x1b470c
callq 0x172680
movl -0x24(%rbp), %eax
subl $0x4, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xb1bb6
movq -0x20(%rbp), %rdi
leaq 0x102b72(%rip), %rsi    # 0x1b471a
callq 0x172680
movl -0x24(%rbp), %eax
subl $0x8, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xb1bda
movq -0x20(%rbp), %rdi
leaq 0x102b52(%rip), %rsi    # 0x1b471e
callq 0x172680
movl -0x24(%rbp), %eax
subl $0x10, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xb1bfe
movq -0x20(%rbp), %rdi
leaq 0x102b37(%rip), %rsi    # 0x1b4727
callq 0x172680
movl -0x24(%rbp), %eax
subl $0x20, %eax
movl %eax, -0x24(%rbp)
jmp 0xb1c00
cmpl $0x0, -0x24(%rbp)
je 0xb1c1b
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %edx
leaq 0x124668(%rip), %rsi    # 0x1d627c
movb $0x0, %al
callq 0x1726d0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)