// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::feed(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void chunk::feed(string name) {
	if (name == "minecraft:air") {
		(this->block &= 15) |= AIR;
	} else if (name == "minecraft:bedrock") {
		(this->block &= 15) |= BEDROCK;
	} else if (name == "minecraft:stone") {
		(this->block &= 15) |= STONE;
	} else if (name == "minecraft:sandstone") {
		(this->block &= 15) |= SANDSTONE;
	} else if (name == "minecraft:redstone_wire") {
		(this->block &= 15) |= REDSTONE_WIRE;
	} else if (name == "minecraft:redstone_torch") {
		(this->block &= 15) |= REDSTONE_TORCH;
	} else if (name == "minecraft:redstone_wall_torch") {
		(this->block &= 15) |= REDSTONE_WALL_TORCH;
	} else if (name == "minecraft:repeater") {
		(this->block &= 31) |= REPEATER;
	} else if (name == "minecraft:comparator") {
		(this->block &= 15) |= COMPARATOR;
	} else if (name == "minecraft:redstone_lamp") {
		(this->block &= 15) |= REDSTONE_LAMP;
	} else if (name == "minecraft:lever") {
		(this->block &= 15) |= LEVER;
	} else if (name.length() >= 19 && name.substr(0, 10) == "minecraft:" && name.substr(name.length() - 9) == "_concrete") {
		int color = color_to_int(name.substr(10, name.length() - 19));
		if (color < 0) {
			fprintf(stderr, "Error: unknown block name '%s'\n", name.c_str());
			throw UNKNOWN_BLOCK_ERROR;
		}
		this->block = CONCRETE | color;
	} else {
		fprintf(stderr, "Error: unknown block name '%s'\n", name.c_str());
		throw UNKNOWN_BLOCK_ERROR;
	}
#ifdef CHUNK_DEBUG
	printf("  Block : %s\n", name.c_str());
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x492f(%rip), %rsi      # 0x83a2
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3a88
andl $0xf, 0xc(%rbx)
jmp 0x3bca
leaq 0x4921(%rip), %rsi      # 0x83b0
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3aa9
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x10, %eax
jmp 0x3bc7
leaq 0x4912(%rip), %rsi      # 0x83c2
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3aca
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x20, %eax
jmp 0x3bc7
leaq 0x4901(%rip), %rsi      # 0x83d2
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3aeb
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x30, %eax
jmp 0x3bc7
leaq 0x48f4(%rip), %rsi      # 0x83e6
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3b0c
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x40, %eax
jmp 0x3bc7
leaq 0x48eb(%rip), %rsi      # 0x83fe
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3b2d
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x50, %eax
jmp 0x3bc7
leaq 0x48e3(%rip), %rsi      # 0x8417
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3b4b
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x60, %eax
jmp 0x3bc7
leaq 0x48e3(%rip), %rsi      # 0x8435
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3b6b
movl 0xc(%rbx), %eax
andl $0x1f, %eax
orl $0x80, %eax
jmp 0x3bc7
leaq 0x48d6(%rip), %rsi      # 0x8448
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3b89
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0x70, %eax
jmp 0x3bc7
leaq 0x48cd(%rip), %rsi      # 0x845d
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3ba9
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0xa0, %eax
jmp 0x3bc7
leaq 0x48c5(%rip), %rsi      # 0x8475
movq %r14, %rdi
callq 0x49b9
testb %al, %al
je 0x3bd5
movl 0xc(%rbx), %eax
andl $0xf, %eax
orl $0xb0, %eax
movl %eax, 0xc(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x13, 0x8(%r14)
jb 0x3c9c
leaq 0x8(%rsp), %r15
pushq $0xa
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2170
leaq 0x4889(%rip), %rsi      # 0x8485
movq %r15, %rdi
callq 0x49b9
testb %al, %al
je 0x3c92
movq 0x8(%r14), %rdx
addq $-0x9, %rdx
leaq 0x48(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
callq 0x2170
leaq 0x4865(%rip), %rsi      # 0x8490
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x49b9
movl %eax, %ebp
movq %r15, %rdi
callq 0x20a0
leaq 0x8(%rsp), %rdi
callq 0x20a0
testb %bpl, %bpl
je 0x3c9c
movq 0x8(%r14), %rcx
addq $-0x13, %rcx
leaq 0x28(%rsp), %r15
pushq $0xa
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2170
movq %r15, %rdi
callq 0x70a8
movl %eax, %ebp
leaq 0x28(%rsp), %rdi
callq 0x20a0
testl %ebp, %ebp
js 0x3c9c
orl $0xc0, %ebp
movl %ebp, 0xc(%rbx)
jmp 0x3bca
leaq 0x8(%rsp), %rdi
callq 0x20a0
movq 0x833d(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
movq (%r14), %rdx
leaq 0x47ea(%rip), %rsi      # 0x849a
xorl %eax, %eax
callq 0x21f0
pushq $0x4
popq %rdi
callq 0x20b0
orl $-0x1, (%rax)
movq 0x82ff(%rip), %rsi      # 0xbfc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x3ce5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2240