// File: /workspace/github_c_makefile_star2_O3/oridb[P]mc/6/blob.c
// Function: blobrec
static size_t
blobrec(Blob *b, Htab *globls, Htab *strtab, Node *n)
{
	size_t i, sz, end;
	vlong nelt, idx, last;
	Type *ty;

	switch(exprop(n)) {
	case Oucon:	sz = blobucon(b, globls, strtab, n);	break;
	case Oslice:	sz = blobslice(b, globls, strtab, n);	break;
	case Ostruct:	sz = blobstruct(b, globls, strtab, n);	break;
	case Ovar:	sz = blobvar(b, strtab, n, exprtype(n));	break;
	case Olit:	sz = bloblit(b, strtab, n->expr.args[0], exprtype(n));	break;
	case Otup:
		/* Assumption: We sorted this while folding */
		sz = 0;
		if (!n->expr.args)
			break;
		for (i = 0; i < n->expr.nargs; i++) {
			end = alignto(sz, exprtype(n->expr.args[i]));
			sz += blobpad(b, end - sz);
			sz += blobrec(b, globls, strtab, n->expr.args[i]);
		}
		/* if we need padding at the end.. */
		end = alignto(sz, exprtype(n));
		sz += blobpad(b, end - sz);
		break;
	case Oarr:
		sz = 0;
		idx = 0;
		last = 0;
		ty = exprtype(n);
		if (!n->expr.args)
			break;
		if (!getintlit(ty->asize, &nelt))
			die("array missing size");
		/* We sorted this while folding, so elements are in order */
		for (i = 0; i < n->expr.nargs; i++) {
			if (!getintlit(n->expr.args[i]->expr.idx, &idx))
				die("non-numeric array size");
			if (idx != last + 1)
				sz += blobpad(b, (idx - last)*size(n->expr.args[i]));
			sz += blobrec(b, globls, strtab, n->expr.args[i]);
			last = idx + 1;
		}
		/* if we need padding at the end.. */
		end = alignto(sz, exprtype(n));
		sz += blobpad(b, end - sz);
		break;
	default:
		dumpn(n, stdout);
		die("Nonliteral initializer for global");
		break;
	}
	return sz;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %r12
movq %rcx, %rdi
callq 0x1d422
addl $-0x29, %eax
cmpl $0x10, %eax
ja 0x531f
leaq 0x2a52c(%rip), %rcx     # 0x2f004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %r12, (%rsp)
jmpq *%rax
movq %r13, %rbx
movq 0x50(%r14), %rax
movq (%rax), %r14
movq 0x8(%rax), %r13
movq 0x10(%rax), %r15
leaq 0x60(%rsp), %rsi
movq %r13, %rdi
callq 0x14410
testl %eax, %eax
je 0x533a
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x14410
testl %eax, %eax
je 0x5384
movq %r14, %rdi
callq 0x1d422
cmpl $0x33, %eax
jne 0x4ffa
cmpl $0x0, 0x30(%r14)
je 0x4ffa
movq %r14, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
movq 0x68(%rax), %rax
movq (%rax), %rdi
callq 0x12421
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2d8fa
movq %rax, %r12
imulq 0x60(%rsp), %r15
movl $0x38, %edi
callq 0x2ce48
movq %rax, %r14
movl $0x5, (%rax)
movq %r12, %rdi
movq (%rsp), %r12
callq 0x4340
movq %rax, 0x20(%r14)
movb $0x1, 0x28(%r14)
movq %r15, 0x30(%r14)
jmp 0x5049
cmpq $0x0, 0x50(%r14)
je 0x4ff2
cmpq $0x0, 0x40(%r14)
je 0x5097
xorl %ebx, %ebx
movq %rbp, 0x10(%rsp)
movq %r13, %rbp
xorl %r13d, %r13d
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1e384
movq %r13, %rdi
movq %rax, %rsi
callq 0xec3c
movq %rax, %r15
movq %rax, %rsi
subq %r13, %rsi
movq %r12, %rdi
callq 0x53c2
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rcx
movq %r12, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
callq 0x4aa0
movq %rax, %r13
addq %r15, %r13
incq %rbx
cmpq 0x40(%r14), %rbx
jb 0x4bc4
jmp 0x509a
movq %r14, %rdi
callq 0x1e384
leaq 0x5cd40(%rip), %rcx     # 0x61968
movq (%rcx), %rcx
movq 0x38(%r14), %rdx
movq (%rcx,%rdx,8), %r15
movq %rax, %rdi
callq 0x227ac
movl (%rax), %eax
cmpl $0x1e, %eax
je 0x4c4b
cmpl $0x13, %eax
jne 0x52ff
cmpb $0x0, 0x71(%r15)
je 0x52ff
movl $0x38, %edi
callq 0x2ce48
movl $0x3, (%rax)
xorl %ebx, %ebx
movq %rbx, 0x20(%rax)
leaq 0x20(%r12), %r14
addq $0x28, %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x2ceff
movq %r15, %rdi
callq 0x5584
movq %rax, %r15
movl $0x38, %edi
callq 0x2ce48
movq %r12, %r13
movq %rax, %r12
movl $0x5, (%rax)
movq %r15, %rdi
callq 0x4340
movq %rax, 0x20(%r12)
movb $0x1, 0x28(%r12)
movq %rbx, 0x30(%r12)
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
jmp 0x5087
movq %r14, %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x227ac
cmpl $0x17, (%rax)
jne 0x5346
movq 0x78(%rax), %rcx
movq %rcx, 0x50(%rsp)
testq %rcx, %rcx
movq %rax, 0x48(%rsp)
je 0x50bb
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq 0x88(%rax), %rax
movq %rax, 0x18(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x18(%rsp), %rbx
movq (%rbx,%r12,8), %rdi
callq 0x1e31c
movq %rbp, %rdi
movq %rax, %rsi
callq 0xec3c
movq %rax, %r13
movq (%rbx,%r12,8), %rdi
callq 0x1e2ed
cmpq $0x0, 0x40(%r14)
je 0x4d6f
movq %rax, %r15
xorl %ebx, %ebx
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x48(%rax), %rdi
callq 0x1e4eb
movq %rax, %rdi
movq %r15, %rsi
callq 0x4230
testl %eax, %eax
je 0x4db3
incq %rbx
cmpq 0x40(%r14), %rbx
jb 0x4d46
movq %r13, %rsi
subq %rbp, %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x53c2
movq 0x18(%rsp), %rax
movq (%rax,%r12,8), %rdi
callq 0x12664
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x53c2
addq %r13, %rbp
incq %r12
cmpq 0x50(%rsp), %r12
jne 0x4d15
jmp 0x50bd
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %r15
movq %r13, %rsi
subq %rbp, %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x53c2
testq %r15, %r15
je 0x4d81
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
callq 0x4aa0
movq %rax, %rbp
jmp 0x4d9d
movq 0x50(%r14), %rax
movq (%rax), %r12
movq %r14, %rdi
callq 0x1e384
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movl $0x1, 0x28(%rsp)
movl $0x2, 0x30(%rsp)
movl $0x3, 0x40(%rsp)
cmpl $0x9, 0x8(%r12)
jne 0x5365
movq %rax, %rdi
callq 0x12421
movq %rax, %r14
movl 0x18(%r12), %eax
cmpq $0x6, %rax
ja 0x52dc
leaq 0x2a1fb(%rip), %rcx     # 0x2f048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x30(%r12), %ebx
jmp 0x5148
movq %r14, %rdi
callq 0x1e384
movq 0x50(%r14), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x22f1e
movq 0x8(%rax), %rbx
movl $0x38, %edi
callq 0x2ce48
movl $0x2, (%rax)
movq %rbx, 0x20(%rax)
leaq 0x20(%r12), %rsi
leaq 0x28(%r12), %rdi
movq %rax, %rdx
callq 0x2ceff
movl $0x4, %r15d
cmpq $0x2, 0x40(%r14)
jb 0x4eff
movq 0x50(%r14), %rax
movq 0x8(%rax), %rdi
callq 0x1e384
movq %rax, %rdi
callq 0x12677
movl $0x4, %ebx
cmpq $0x5, %rax
jb 0x4ee3
movq %rax, %r15
movq %rax, %rsi
addq $-0x4, %rsi
movq %r12, %rdi
callq 0x53c2
movq %r15, %rbx
movq 0x50(%r14), %rax
movq 0x8(%rax), %rcx
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x4aa0
movq %rax, %r15
addq %rbx, %r15
movq %r14, %rdi
callq 0x12664
movq %rax, %r14
movq %rax, %rsi
subq %r15, %rsi
jmp 0x50b6
movq $0x0, 0x20(%rsp)
movq %r14, %rdi
callq 0x1e384
cmpq $0x0, 0x50(%r14)
je 0x4ff2
movq 0x88(%rax), %rdi
leaq 0x60(%rsp), %rsi
callq 0x14410
testl %eax, %eax
je 0x5399
cmpq $0x0, 0x40(%r14)
je 0x5097
movq %r13, 0x8(%rsp)
xorl %ebx, %ebx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x48(%rax), %rdi
leaq 0x20(%rsp), %rsi
callq 0x14410
testl %eax, %eax
je 0x52f1
movq 0x20(%rsp), %r12
leaq 0x1(%r15), %rax
cmpq %rax, %r12
jne 0x4f94
movq (%rsp), %r12
jmp 0x4fbd
subq %r15, %r12
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x12664
movq %rax, %r15
imulq %r12, %r15
movq (%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x53c2
addq %r15, %r13
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rcx
movq %r12, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x4aa0
addq %rax, %r13
movq 0x20(%rsp), %r15
incq %r15
incq %rbx
cmpq 0x40(%r14), %rbx
jb 0x4f62
jmp 0x509a
xorl %r14d, %r14d
jmp 0x52dc
movq %r14, %rdi
callq 0x1d422
cmpl $0x35, %eax
je 0x5018
movq %r14, %rdi
callq 0x1d422
cmpl $0x39, %eax
jne 0x53a5
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x14410
testl %eax, %eax
je 0x5390
movq 0x58(%rsp), %rbx
movl $0x38, %edi
callq 0x2ce48
movq %rax, %r14
movl $0x3, (%rax)
movq %rbx, 0x20(%rax)
leaq 0x20(%r12), %r15
addq $0x28, %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2ceff
movq 0x20(%rsp), %rbx
subq 0x60(%rsp), %rbx
movl $0x38, %edi
callq 0x2ce48
movl $0x3, (%rax)
movq %rbx, 0x20(%rax)
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2ceff
movl $0x10, %r14d
jmp 0x52dc
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x1e384
movq %r13, %rdi
movq %rax, %rsi
callq 0xec3c
movq %rax, %r14
movq %rax, %rsi
subq %r13, %rsi
movq %r12, %rdi
jmp 0x50d7
xorl %ebp, %ebp
movq %rbp, %rdi
movq 0x48(%rsp), %rsi
callq 0xec3c
movq %rax, %r14
movq %rax, %rsi
subq %rbp, %rsi
movq (%rsp), %rdi
callq 0x53c2
jmp 0x52dc
addq $0x30, %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2da24
testl %eax, %eax
je 0x5222
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2d8fa
movq %rax, %r15
jmp 0x524a
movl 0x20(%rsp,%r14,4), %ebx
movq 0x30(%r12), %r15
movl $0x38, %edi
callq 0x2ce48
movl %ebx, (%rax)
movq %r15, 0x20(%rax)
jmp 0x5173
movq 0x20(%r12), %rdi
callq 0x227ac
cmpl $0xf, (%rax)
jne 0x51f5
xorps %xmm0, %xmm0
cvtsd2ss 0x30(%r12), %xmm0
movd %xmm0, %ebx
movl $0x38, %edi
callq 0x2ce48
movl $0x2, (%rax)
jmp 0x516f
movslq 0x30(%r12), %rbx
movl $0x38, %edi
callq 0x2ce48
movl $0x0, (%rax)
movq %rbx, 0x20(%rax)
movq (%rsp), %rdi
leaq 0x20(%rdi), %rsi
addq $0x28, %rdi
jmp 0x52d4
movq %r12, %rdi
callq 0x5584
movq %rax, %r15
movl $0x38, %edi
callq 0x2ce48
movl $0x3, (%rax)
xorl %ebx, %ebx
movq %rbx, 0x20(%rax)
movq (%rsp), %rbp
leaq 0x20(%rbp), %r12
addq $0x28, %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2ceff
movl $0x38, %edi
callq 0x2ce48
movq %rax, %r13
movl $0x5, (%rax)
movq %r15, %rdi
callq 0x4340
movq %rax, 0x20(%r13)
movb $0x0, 0x28(%r13)
movq %rbx, 0x30(%r13)
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
jmp 0x52d7
movq 0x20(%r12), %rdi
callq 0x227ac
cmpl $0x10, (%rax)
jne 0x52dc
movq 0x30(%r12), %rbx
movl $0x38, %edi
callq 0x2ce48
movl $0x3, (%rax)
jmp 0x516f
leaq 0x60(%rsp), %rdi
movl $0x80, %esi
callq 0x5779
movq %rax, %r15
movq %rax, %rdi
callq 0x4340
movq %rbp, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2d71e
cmpq $0x0, (%r12)
je 0x527e
movl $0x38, %edi
callq 0x2ce48
movq %rax, %r13
movl $0x5, (%rax)
movq %r15, %rdi
callq 0x4340
movq %rax, 0x20(%r13)
movb $0x1, 0x28(%r13)
movq %r13, %rax
addq $0x30, %rax
jmp 0x5295
movl $0x38, %edi
callq 0x2ce48
movq %rax, %r13
movl $0x3, (%rax)
addq $0x20, %rax
movq $0x0, (%rax)
movq (%rsp), %rbp
leaq 0x20(%rbp), %r15
addq $0x28, %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2ceff
movq (%r12), %rbx
movl $0x38, %edi
callq 0x2ce48
movl $0x3, (%rax)
movq %rbx, 0x20(%rax)
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2ceff
movq %r14, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29d7f(%rip), %rdi     # 0x2f077
xorl %eax, %eax
callq 0x13844
movq 0x50(%r14), %rax
movq (%rax), %rdi
callq 0x1e4eb
leaq 0x29e7a(%rip), %rsi     # 0x2f18c
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x138e7
movq 0x3ecaa(%rip), %rax     # 0x43fd0
movq (%rax), %rsi
movq %r14, %rdi
callq 0x13806
leaq 0x29d56(%rip), %rdi     # 0x2f08e
jmp 0x52f8
leaq 0x29d6f(%rip), %rsi     # 0x2f0b0
movq %r13, %rdi
jmp 0x53af
leaq 0x29df2(%rip), %rdi     # 0x2f13f
leaq 0x29dff(%rip), %rsi     # 0x2f153
leaq 0x29dff(%rip), %rcx     # 0x2f15a
movl $0xe8, %edx
callq 0x4180
leaq 0x29e3c(%rip), %rdi     # 0x2f1a8
leaq 0x29de0(%rip), %rsi     # 0x2f153
leaq 0x29e3e(%rip), %rcx     # 0x2f1b8
movl $0x87, %edx
callq 0x4180
leaq 0x29d52(%rip), %rsi     # 0x2f0dd
movq %r15, %rdi
jmp 0x53af
leaq 0x29d73(%rip), %rsi     # 0x2f10a
jmp 0x53ac
leaq 0x29cc4(%rip), %rdi     # 0x2f064
jmp 0x52f8
leaq 0x29d70(%rip), %rsi     # 0x2f11c
movq %r14, %rdi
xorl %eax, %eax
callq 0x138e7
leaq 0x29e2a(%rip), %rdi     # 0x2f1e7
jmp 0x52f8