// File: /workspace/github_c_makefile_star2_O3/oridb[P]mc/6/gengas.c
// Function: writeblob
static void
writeblob(FILE *fd, Blob *b)
{
	size_t i;

	if (!b)
		return;
	if (b->lbl) {
		if (b->iscomdat)
			emitonce(fd, b);
		if (b->isglobl)
			fprintf(fd, ".globl %s%s\n", Symprefix, b->lbl);
		fprintf(fd, "%s%s:\n", Symprefix, b->lbl);
	}
	switch (b->type) {
	case Btimin:	encodemin(fd, b->ival);	break;
	case Bti8:	fprintf(fd, "\t.byte %llu\n", b->ival);	break;
	case Bti16:	fprintf(fd, "\t.short %llu\n", b->ival);	break;
	case Bti32:	fprintf(fd, "\t.long %llu\n", b->ival);	break;
	case Bti64:	fprintf(fd, "\t.quad %llu\n", b->ival);	break;
	case Btbytes:	writebytes(fd, b->bytes.buf, b->bytes.len);	break;
	case Btpad:	fprintf(fd, "\t.fill %llu,1,0\n", b->npad);	break;
	case Btref:	fprintf(fd, "\t.quad %s + %zd\n", b->ref.str, b->ref.off);	break;
	case Btseq:
		for (i = 0; i < b->seq.nsub; i++)
			writeblob(fd, b->seq.sub[i]);
		break;
	}
	if (b->lbl && b->iscomdat)
		fprintf(fd, ".text\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x6266
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rcx
testq %rcx, %rcx
je 0x6153
cmpb $0x0, 0x19(%r14)
je 0x6114
leaq 0x5b102(%rip), %rax     # 0x611c8
movl (%rax), %eax
cmpl $0x1, %eax
je 0x60f5
testl %eax, %eax
jne 0x6315
leaq 0x29cdb(%rip), %rsi     # 0x2fdb7
leaq 0x2bd67(%rip), %rdx     # 0x31e4a
movq %rbx, %rdi
movq %rdx, %r8
movq %rcx, %r9
xorl %eax, %eax
callq 0x4240
jmp 0x6114
cmpb $0x0, 0x18(%r14)
je 0x6114
leaq 0x29cda(%rip), %rsi     # 0x2fddd
leaq 0x2bd40(%rip), %rdx     # 0x31e4a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
cmpb $0x0, 0x18(%r14)
movq 0x10(%r14), %rcx
je 0x613b
leaq 0x29c26(%rip), %rsi     # 0x2fd4c
leaq 0x2bd1d(%rip), %rdx     # 0x31e4a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movq 0x10(%r14), %rcx
leaq 0x29c17(%rip), %rsi     # 0x2fd59
leaq 0x2bd01(%rip), %rdx     # 0x31e4a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movl (%r14), %eax
cmpq $0x8, %rax
ja 0x6231
leaq 0x2918d(%rip), %rcx     # 0x2f2f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%r14), %rdx
leaq 0x29be5(%rip), %rsi     # 0x2fd60
jmp 0x6227
movq 0x20(%r14), %r15
cmpq $0x80, %r15
jae 0x6275
leaq 0x29bc8(%rip), %rsi     # 0x2fd60
movq %rbx, %rdi
movq %r15, %rdx
jmp 0x622a
movq 0x20(%r14), %rdx
leaq 0x29bcd(%rip), %rsi     # 0x2fd7b
jmp 0x6227
movq 0x20(%r14), %rdx
leaq 0x29bcd(%rip), %rsi     # 0x2fd88
jmp 0x6227
cmpq $0x0, 0x20(%r14)
je 0x6231
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x6091
incq %r15
cmpq 0x20(%r14), %r15
jb 0x61c7
jmp 0x6231
movq 0x20(%r14), %rdx
leaq 0x29b80(%rip), %rsi     # 0x2fd6d
jmp 0x6227
movq 0x20(%r14), %rdx
movq 0x30(%r14), %rcx
leaq 0x29ba8(%rip), %rsi     # 0x2fda6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
jmp 0x6231
movq 0x20(%r14), %rdx
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x5e76
jmp 0x6231
movq 0x20(%r14), %rdx
leaq 0x29b6e(%rip), %rsi     # 0x2fd95
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
cmpq $0x0, 0x10(%r14)
je 0x6266
cmpb $0x0, 0x19(%r14)
je 0x6266
leaq 0x294dc(%rip), %rdi     # 0x2f722
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4330
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
movl $0x7, %ecx
movq %r15, %rdx
shrq %cl, %rdx
testq %rdx, %rdx
je 0x629c
incq %rax
addq $0x7, %rcx
cmpq $0x8, %rax
jne 0x627f
movl $0x8, %eax
movb $0x9, %cl
subb %al, %cl
movq $-0x1, %rdx
shlq %cl, %rdx
movq $-0x1, %rsi
movb $0x8, %bpl
subb %al, %bpl
movl %ebp, %ecx
shlq %cl, %rsi
notl %esi
andl %r15d, %esi
orl %esi, %edx
movzbl %dl, %edx
leaq 0x29b41(%rip), %rsi     # 0x2fe0e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movl %ebp, %ecx
shrq %cl, %r15
testq %r15, %r15
je 0x6231
leaq 0x29b22(%rip), %r12     # 0x2fe0e
movq %r15, %r13
movzbl %r15b, %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4240
shrq $0x8, %r13
cmpq $0x100, %r15            # imm = 0x100
movq %r13, %r15
jae 0x62ef
jmp 0x6231
leaq 0x29adf(%rip), %rdi     # 0x2fdfb
xorl %eax, %eax
callq 0x13844