// File: /workspace/github_c_makefile_star2_O1/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, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq %rcx, %rdi
callq 0x1d672
addl $-0x29, %eax
cmpl $0x10, %eax
ja 0x53cb
leaq 0x2a48c(%rip), %rcx     # 0x2f004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %rbp, (%rsp)
movq %r12, 0x10(%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 0x14638
testl %eax, %eax
je 0x53e6
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x14638
testl %eax, %eax
je 0x5430
movq %r14, %rdi
callq 0x1d672
cmpl $0x33, %eax
jne 0x508a
cmpl $0x0, 0x30(%r14)
je 0x508a
movq %r14, %rdi
callq 0x1e5d4
movq %rax, %rdi
callq 0x22c44
movq 0x68(%rax), %rax
movq (%rax), %rdi
callq 0x125dd
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2dd9a
movq %rax, %r12
imulq 0x60(%rsp), %r15
movl $0x38, %edi
callq 0x2d348
movq %rax, %r14
movl $0x5, (%rax)
movq %r12, %rdi
callq 0x4340
movq %rax, 0x20(%r14)
movb $0x1, 0x28(%r14)
movq %r15, 0x30(%r14)
jmp 0x50d9
cmpq $0x0, 0x50(%r14)
je 0x5082
movq %r12, %rax
movq %rbp, %r12
cmpq $0x0, 0x40(%r14)
je 0x5140
xorl %ebx, %ebx
movq %r13, 0x8(%rsp)
xorl %r13d, %r13d
movq %rax, %rbp
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1e5d4
movq %r13, %rdi
movq %rax, %rsi
callq 0xee68
movq %rax, %r15
movq %rax, %rsi
subq %r13, %rsi
movq %r12, %rdi
callq 0x546e
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rcx
movq %r12, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x4b40
movq %rax, %r13
addq %r15, %r13
incq %rbx
cmpq 0x40(%r14), %rbx
jb 0x4c6b
jmp 0x5143
movq %r14, %rdi
callq 0x1e5d4
leaq 0x5cc99(%rip), %rcx     # 0x61968
movq (%rcx), %rcx
movq 0x38(%r14), %rdx
movq (%rcx,%rdx,8), %r15
movq %rax, %rdi
callq 0x22c44
movl (%rax), %eax
cmpl $0x1e, %eax
je 0x4cf2
cmpl $0x13, %eax
jne 0x53ab
cmpb $0x0, 0x71(%r15)
je 0x53ab
movl $0x38, %edi
callq 0x2d348
movl $0x3, (%rax)
xorl %ebx, %ebx
movq %rbx, 0x20(%rax)
leaq 0x20(%rbp), %r14
addq $0x28, %rbp
movq %rbp, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x2d3ff
movq %r15, %rdi
callq 0x5630
movq %rax, %r15
movl $0x38, %edi
callq 0x2d348
movq %rax, %r12
movl $0x5, (%rax)
movq %r15, %rdi
callq 0x4340
movq %rax, 0x20(%r12)
movb $0x1, 0x28(%r12)
movq %rbx, 0x30(%r12)
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
jmp 0x5116
movq %r14, %rdi
callq 0x1e5d4
movq %rax, %rdi
callq 0x22c44
cmpl $0x17, (%rax)
jne 0x53f2
movq 0x78(%rax), %rcx
movq %rcx, 0x50(%rsp)
testq %rcx, %rcx
movq %rax, 0x48(%rsp)
je 0x5126
movq %r13, 0x8(%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 0x1e56c
movq %rbp, %rdi
movq %rax, %rsi
callq 0xee68
movq %rax, %r13
movq (%rbx,%r12,8), %rdi
callq 0x1e53d
cmpq $0x0, 0x40(%r14)
je 0x4e0d
movq %rax, %r15
xorl %ebx, %ebx
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x48(%rax), %rdi
callq 0x1e73b
movq %rax, %rdi
movq %r15, %rsi
callq 0x4230
testl %eax, %eax
je 0x4e12
incq %rbx
cmpq 0x40(%r14), %rbx
jb 0x4de4
xorl %r15d, %r15d
jmp 0x4e1a
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %r15
movq %r13, %rsi
subq %rbp, %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x546e
testq %r15, %r15
je 0x4e4b
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
callq 0x4b40
movq %rax, %rbp
jmp 0x4e67
movq 0x18(%rsp), %rax
movq (%rax,%r12,8), %rdi
callq 0x1281a
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x546e
addq %r13, %rbp
incq %r12
cmpq 0x50(%rsp), %r12
jne 0x4db3
jmp 0x5128
movq 0x50(%r14), %rax
movq (%rax), %r12
movq %r14, %rdi
callq 0x1e5d4
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 0x5411
movq %rax, %rdi
callq 0x125dd
movq %rax, %r14
movl 0x18(%r12), %eax
cmpq $0x6, %rax
ja 0x5388
leaq 0x2a16a(%rip), %rcx     # 0x2f048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x30(%r12), %ebx
jmp 0x51fd
movq %r14, %rdi
callq 0x1e5d4
movq 0x50(%r14), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x233cc
movq 0x8(%rax), %rbx
movl $0x38, %edi
callq 0x2d348
movl $0x2, (%rax)
movq %rbx, 0x20(%rax)
leaq 0x20(%rbp), %rsi
leaq 0x28(%rbp), %rdi
movq %rax, %rdx
callq 0x2d3ff
movl $0x4, %r15d
cmpq $0x2, 0x40(%r14)
jb 0x4f8e
movq 0x50(%r14), %rax
movq 0x8(%rax), %rdi
callq 0x1e5d4
movq %rax, %rdi
callq 0x1282d
movl $0x4, %ebx
cmpq $0x5, %rax
jb 0x4f72
movq %rax, %r15
movq %rax, %rsi
addq $-0x4, %rsi
movq %rbp, %rdi
callq 0x546e
movq %r15, %rbx
movq 0x50(%r14), %rax
movq 0x8(%rax), %rcx
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x4b40
movq %rax, %r15
addq %rbx, %r15
movq %r14, %rdi
callq 0x1281a
movq %rax, %r14
movq %rax, %rsi
subq %r15, %rsi
movq %rbp, %rdi
jmp 0x5187
movq $0x0, 0x20(%rsp)
movq %r14, %rdi
callq 0x1e5d4
cmpq $0x0, 0x50(%r14)
je 0x5082
movq 0x88(%rax), %rdi
leaq 0x60(%rsp), %rsi
callq 0x14638
testl %eax, %eax
je 0x5445
cmpq $0x0, 0x40(%r14)
je 0x5164
movq %r13, %rbp
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 0x14638
testl %eax, %eax
je 0x539d
movq 0x20(%rsp), %r12
leaq 0x1(%r15), %rax
cmpq %rax, %r12
jne 0x5024
movq (%rsp), %r12
jmp 0x504d
subq %r15, %r12
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1281a
movq %rax, %r15
imulq %r12, %r15
movq (%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x546e
addq %r15, %r13
movq 0x50(%r14), %rax
movq (%rax,%rbx,8), %rcx
movq %r12, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
callq 0x4b40
addq %rax, %r13
movq 0x20(%rsp), %r15
incq %r15
incq %rbx
cmpq 0x40(%r14), %rbx
jb 0x4ff2
jmp 0x5167
xorl %r14d, %r14d
jmp 0x5388
movq %r14, %rdi
callq 0x1d672
cmpl $0x35, %eax
je 0x50a8
movq %r14, %rdi
callq 0x1d672
cmpl $0x39, %eax
jne 0x5451
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x14638
testl %eax, %eax
je 0x543c
movq 0x58(%rsp), %rbx
movl $0x38, %edi
callq 0x2d348
movq %rax, %r14
movl $0x3, (%rax)
movq %rbx, 0x20(%rax)
leaq 0x20(%rbp), %r15
addq $0x28, %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d3ff
movq 0x20(%rsp), %rbx
subq 0x60(%rsp), %rbx
movl $0x38, %edi
callq 0x2d348
movl $0x3, (%rax)
movq %rbx, 0x20(%rax)
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2d3ff
movl $0x10, %r14d
jmp 0x5388
xorl %ebp, %ebp
movq %rbp, %rdi
movq 0x48(%rsp), %rsi
callq 0xee68
movq %rax, %r14
movq %rax, %rsi
subq %rbp, %rsi
jmp 0x5183
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x1e5d4
movq %r13, %rdi
movq %rax, %rsi
callq 0xee68
movq %rax, %r14
movq %rax, %rsi
subq %r13, %rsi
movq %r12, %rdi
jmp 0x5187
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x1e5d4
movq %r13, %rdi
movq %rax, %rsi
callq 0xee68
movq %rax, %r14
movq %rax, %rsi
subq %r13, %rsi
movq (%rsp), %rdi
callq 0x546e
jmp 0x5388
addq $0x30, %r12
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2decd
testl %eax, %eax
je 0x52d2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2dd9a
movq %rax, %r15
jmp 0x52fa
movl 0x20(%rsp,%r14,4), %ebx
movq 0x30(%r12), %r15
movl $0x38, %edi
callq 0x2d348
movl %ebx, (%rax)
movq %r15, 0x20(%rax)
jmp 0x5228
movq 0x20(%r12), %rdi
callq 0x22c44
cmpl $0xf, (%rax)
jne 0x52a5
xorps %xmm0, %xmm0
cvtsd2ss 0x30(%r12), %xmm0
movd %xmm0, %ebx
movl $0x38, %edi
callq 0x2d348
movl $0x2, (%rax)
jmp 0x5224
movslq 0x30(%r12), %rbx
movl $0x38, %edi
callq 0x2d348
movl $0x0, (%rax)
movq %rbx, 0x20(%rax)
leaq 0x20(%rbp), %rsi
addq $0x28, %rbp
movq %rbp, %rdi
jmp 0x5380
movq %r12, %rdi
callq 0x5630
movq %rax, %r15
movl $0x38, %edi
callq 0x2d348
movl $0x3, (%rax)
xorl %ebx, %ebx
movq %rbx, 0x20(%rax)
leaq 0x20(%rbp), %r12
addq $0x28, %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2d3ff
movl $0x38, %edi
callq 0x2d348
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 0x5383
movq 0x20(%r12), %rdi
callq 0x22c44
cmpl $0x10, (%rax)
jne 0x5388
movq 0x30(%r12), %rbx
movl $0x38, %edi
callq 0x2d348
movl $0x3, (%rax)
jmp 0x5224
leaq 0x60(%rsp), %rdi
movl $0x80, %esi
callq 0x582f
movq %rax, %r15
movq %rax, %rdi
callq 0x4340
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2dbc2
cmpq $0x0, (%r12)
je 0x532e
movl $0x38, %edi
callq 0x2d348
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 0x5345
movl $0x38, %edi
callq 0x2d348
movq %rax, %r13
movl $0x3, (%rax)
addq $0x20, %rax
movq $0x0, (%rax)
leaq 0x20(%rbp), %r15
addq $0x28, %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2d3ff
movq (%r12), %rbx
movl $0x38, %edi
callq 0x2d348
movl $0x3, (%rax)
movq %rbx, 0x20(%rax)
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2d3ff
movq %r14, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29cd3(%rip), %rdi     # 0x2f077
xorl %eax, %eax
callq 0x13a00
movq 0x50(%r14), %rax
movq (%rax), %rdi
callq 0x1e73b
leaq 0x29dce(%rip), %rsi     # 0x2f18c
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x13aa3
movq 0x3ebfe(%rip), %rax     # 0x43fd0
movq (%rax), %rsi
movq %r14, %rdi
callq 0x139c1
leaq 0x29caa(%rip), %rdi     # 0x2f08e
jmp 0x53a4
leaq 0x29cc3(%rip), %rsi     # 0x2f0b0
movq %r13, %rdi
jmp 0x545b
leaq 0x29d46(%rip), %rdi     # 0x2f13f
leaq 0x29d53(%rip), %rsi     # 0x2f153
leaq 0x29d53(%rip), %rcx     # 0x2f15a
movl $0xe8, %edx
callq 0x4180
leaq 0x29d90(%rip), %rdi     # 0x2f1a8
leaq 0x29d34(%rip), %rsi     # 0x2f153
leaq 0x29d92(%rip), %rcx     # 0x2f1b8
movl $0x87, %edx
callq 0x4180
leaq 0x29ca6(%rip), %rsi     # 0x2f0dd
movq %r15, %rdi
jmp 0x545b
leaq 0x29cc7(%rip), %rsi     # 0x2f10a
jmp 0x5458
leaq 0x29c18(%rip), %rdi     # 0x2f064
jmp 0x53a4
leaq 0x29cc4(%rip), %rsi     # 0x2f11c
movq %r14, %rdi
xorl %eax, %eax
callq 0x13aa3
leaq 0x29d7e(%rip), %rdi     # 0x2f1e7
jmp 0x53a4