// File: /workspace/github_c_makefile_star2_O1/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 0x6329
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rcx
testq %rcx, %rcx
je 0x6216
cmpb $0x0, 0x19(%r14)
je 0x61d7
leaq 0x5b03f(%rip), %rax     # 0x611c8
movl (%rax), %eax
cmpl $0x1, %eax
je 0x61b8
testl %eax, %eax
jne 0x63d8
leaq 0x29c18(%rip), %rsi     # 0x2fdb7
leaq 0x2bc94(%rip), %rdx     # 0x31e3a
movq %rbx, %rdi
movq %rdx, %r8
movq %rcx, %r9
xorl %eax, %eax
callq 0x4240
jmp 0x61d7
cmpb $0x0, 0x18(%r14)
je 0x61d7
leaq 0x29c17(%rip), %rsi     # 0x2fddd
leaq 0x2bc6d(%rip), %rdx     # 0x31e3a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
cmpb $0x0, 0x18(%r14)
je 0x61fa
movq 0x10(%r14), %rcx
leaq 0x29b63(%rip), %rsi     # 0x2fd4c
leaq 0x2bc4a(%rip), %rdx     # 0x31e3a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movq 0x10(%r14), %rcx
leaq 0x29b54(%rip), %rsi     # 0x2fd59
leaq 0x2bc2e(%rip), %rdx     # 0x31e3a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movl (%r14), %eax
cmpq $0x8, %rax
ja 0x62f4
leaq 0x290ca(%rip), %rcx     # 0x2f2f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%r14), %rdx
leaq 0x29b22(%rip), %rsi     # 0x2fd60
jmp 0x62ea
movq 0x20(%r14), %r15
cmpq $0x80, %r15
jae 0x6338
leaq 0x29b05(%rip), %rsi     # 0x2fd60
movq %rbx, %rdi
movq %r15, %rdx
jmp 0x62ed
movq 0x20(%r14), %rdx
leaq 0x29b0a(%rip), %rsi     # 0x2fd7b
jmp 0x62ea
movq 0x20(%r14), %rdx
leaq 0x29b0a(%rip), %rsi     # 0x2fd88
jmp 0x62ea
cmpq $0x0, 0x20(%r14)
je 0x62f4
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x6154
incq %r15
cmpq 0x20(%r14), %r15
jb 0x628a
jmp 0x62f4
movq 0x20(%r14), %rdx
leaq 0x29abd(%rip), %rsi     # 0x2fd6d
jmp 0x62ea
movq 0x20(%r14), %rdx
movq 0x30(%r14), %rcx
leaq 0x29ae5(%rip), %rsi     # 0x2fda6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
jmp 0x62f4
movq 0x20(%r14), %rdx
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x5f47
jmp 0x62f4
movq 0x20(%r14), %rdx
leaq 0x29aab(%rip), %rsi     # 0x2fd95
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
cmpq $0x0, 0x10(%r14)
je 0x6329
cmpb $0x0, 0x19(%r14)
je 0x6329
leaq 0x29419(%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 0x635f
incq %rax
addq $0x7, %rcx
cmpq $0x8, %rax
jne 0x6342
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 0x29a7e(%rip), %rsi     # 0x2fe0e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movl %ebp, %ecx
shrq %cl, %r15
testq %r15, %r15
je 0x62f4
leaq 0x29a5f(%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 0x63b2
jmp 0x62f4
leaq 0x29a1c(%rip), %rdi     # 0x2fdfb
xorl %eax, %eax
callq 0x13a00