// File: /workspace/github_cpp_makefile_star2_O3/shirookad[P]propcpp/main.cpp
// Function: main
int main(int argc, char *argv[]) {
	test1 t1;
	auto test1nanos = measure_block([&t1]() {
		for (unsigned long long i = 0; i < 1000000; ++i) {
			t1.count = 5;
		}
	});
	
	test2 t2;
	auto test2nanos = measure_block([&t2]() {
		for (unsigned long long i = 0; i < 1000000; ++i) {
			t2.setCount(5);
		}
	});

	test3 t3;
	auto test3nanos = measure_block([&t3]() {
		for (unsigned long long i = 0; i < 1000000; ++i) {
			t3.count.set(5);
		}
	});

	observerTest t4;
	auto test4nanos = measure_block([&t4]() {
		for (unsigned long long i = 0; i < 1000000; ++i) {
			t4.someOtherVal.set(5);
		}
	});
	
	t4.strVal.set("Hello");
	t4.strVal.set(t4.strVal.get() + ", World");
	
	int a = (int)t4.intVal;
	
	std::cout << "test1: " << test1nanos << std::endl;
	std::cout << "test2: " << test2nanos << std::endl;
	std::cout << "test3: " << test3nanos << std::endl;
	std::cout << "test4: " << test4nanos << std::endl;
	
	return 0;	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
callq 0x1040
movq %rax, %r12
callq 0x1040
movq %rax, %r15
movq $0x0, -0x140(%rbp)
leaq -0x78(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x411(%rip), %rax       # 0x16de
movq %rax, -0x130(%rbp)
leaq 0x413(%rip), %rax       # 0x16ee
movq %rax, -0x138(%rbp)
callq 0x1040
cmpq $0x0, -0x138(%rbp)
je 0x1619
movq %rax, %r14
leaq -0x148(%rbp), %rdi
callq *0x18(%rdi)
callq 0x1040
movq %rax, %rbx
movq -0x138(%rbp), %rax
testq %rax, %rax
je 0x1327
leaq -0x148(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq $0x0, -0x140(%rbp)
leaq -0x74(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x3d4(%rip), %rax       # 0x1718
movq %rax, -0x130(%rbp)
leaq 0x3d6(%rip), %rax       # 0x1728
movq %rax, -0x138(%rbp)
callq 0x1040
cmpq $0x0, -0x138(%rbp)
je 0x161e
movq %r12, -0x70(%rbp)
movq %r14, -0x68(%rbp)
movq %rax, -0x60(%rbp)
leaq -0x148(%rbp), %r14
movq %r14, %rdi
callq *0x18(%r14)
callq 0x1040
movq %rax, %r12
movq -0x138(%rbp), %rax
testq %rax, %rax
je 0x13ab
leaq -0x148(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %r14, %rdi
callq 0x17f0
movq $0x0, -0x40(%rbp)
movq %r14, -0x48(%rbp)
leaq 0x38c(%rip), %rax       # 0x1752
movq %rax, -0x30(%rbp)
leaq 0x3f5(%rip), %rax       # 0x17c6
movq %rax, -0x38(%rbp)
callq 0x1040
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x1623
leaq -0x48(%rbp), %rdi
callq *0x18(%rdi)
callq 0x1040
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x1410
leaq -0x48(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq -0xe0(%rbp), %r13
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movl $0x6c6c6548, (%r14)     # imm = 0x6C6C6548
movw $0x6f, 0x4(%r14)
movq $0x5, -0x8(%r14)
leaq -0x48(%rbp), %rsi
movq %r13, %rdi
callq 0x1ab8
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x1456
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10f0
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
addq %rsi, %rdx
callq 0x1f1a
leaq 0x1b90(%rip), %rsi      # 0x300a
leaq -0x48(%rbp), %rdi
callq 0x1140
leaq -0x48(%rbp), %rsi
movq %r13, %rdi
callq 0x1ab8
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x14a4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10f0
movq 0x3b2d(%rip), %rdi      # 0x4fd8
leaq 0x1b60(%rip), %rsi      # 0x3012
movl $0x7, %edx
callq 0x1100
subq -0x70(%rbp), %r15
movq 0x3b11(%rip), %rdi      # 0x4fd8
movq %r15, %rsi
callq 0x10d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
movq 0x3ad8(%rip), %rdi      # 0x4fd8
leaq 0x1b13(%rip), %rsi      # 0x301a
movl $0x7, %edx
callq 0x1100
subq -0x68(%rbp), %rbx
movq 0x3abc(%rip), %rdi      # 0x4fd8
movq %rbx, %rsi
callq 0x10d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
movq 0x3a83(%rip), %rdi      # 0x4fd8
leaq 0x1ac6(%rip), %rsi      # 0x3022
movl $0x7, %edx
callq 0x1100
subq -0x60(%rbp), %r12
movq 0x3a67(%rip), %rdi      # 0x4fd8
movq %r12, %rsi
callq 0x10d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
movq 0x3a2e(%rip), %rdi      # 0x4fd8
leaq 0x1a79(%rip), %rsi      # 0x302a
movl $0x7, %edx
callq 0x1100
movq -0x50(%rbp), %rsi
subq -0x58(%rbp), %rsi
movq 0x3a0e(%rip), %rdi      # 0x4fd8
callq 0x10d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
leaq -0x148(%rbp), %rdi
callq 0x1b86
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1060
callq 0x1060
callq 0x1060
jmp 0x16be
jmp 0x16be
jmp 0x16be
jmp 0x1640
jmp 0x1640
jmp 0x16c6
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x16c9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10f0
jmp 0x16c9
movq %rax, %rbx
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x16c9
leaq -0x48(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x16c9
jmp 0x16be
movq %rax, %rbx
movq -0x138(%rbp), %rax
testq %rax, %rax
je 0x16d5
leaq -0x148(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x16d5
jmp 0x16be
movq %rax, %rbx
movq -0x138(%rbp), %rax
testq %rax, %rax
je 0x16d5
leaq -0x148(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x16d5
movq %rax, %rdi
callq 0x1c40
movq %rax, %rbx
leaq -0x148(%rbp), %rdi
callq 0x1b86
movq %rbx, %rdi
callq 0x1120
nop