// File: /workspace/github_cpp_makefile_star2_O3/interimadd[P]M5Stack-PixelArt/test/pixel_art_m5stack_test.cpp
// Function: (anonymous namespace)::TestPixelArtM5stack_ButtonOperation_Test::TestBody()
TEST_F(TestPixelArtM5stack, ButtonOperation)
  {
    ALL_PIXEL_ARTS_LIST = {
      {{{1}}}, {{{2}}}
    };
    PIXEL_ART_POS_X = 0;
    PIXEL_ART_POS_Y = 0;
    PIXEL_ART_SCALE = 1;
    setup();

    OperationType next_op = OperationType::NEXT_BUTTON;
    setButtonoperation(next_op);
    loop();
    MonochromePixelArt expect = {
      {2, 0, 0},
      {0, 0, 0}
    };
    EXPECT_EQ(expect, lcd->getState());
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
leaq 0x1(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x38(%rsp), %rdi
movq %rsp, %rcx
movl $0x1, %edx
callq 0x2093a
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
callq 0x2097e
leaq 0x8(%rsp), %r14
leaq 0x68(%rsp), %rsi
leaq 0x6(%rsp), %rcx
movl $0x1, %edx
movq %r14, %rdi
callq 0x20fac
leaq 0x20(%rsp), %r14
leaq 0x5(%rsp), %rsi
movb $0x2, (%rsi)
leaq 0x80(%rsp), %rdi
leaq 0x4(%rsp), %rcx
movl $0x1, %edx
callq 0x2093a
leaq 0x50(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x3(%rsp), %rcx
movl $0x1, %edx
callq 0x2097e
leaq 0x50(%rsp), %rsi
leaq 0x2(%rsp), %rcx
movl $0x1, %edx
movq %r14, %rdi
callq 0x20fac
leaq 0x38(%rsp), %rdx
leaq 0x3a681(%rip), %rdi     # 0x60630
leaq 0x8(%rsp), %rsi
callq 0x264cc
movl $0x18, %ebx
leaq (%rsp,%rbx), %rdi
addq $0x8, %rdi
callq 0x20ff6
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x25fbe
leaq 0x50(%rsp), %rdi
callq 0x209f0
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x25ffc
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
leaq 0x68(%rsp), %rdi
callq 0x209f0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2601d
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
xorl %eax, %eax
movl %eax, 0x3a623(%rip)     # 0x60648
movl %eax, 0x3a621(%rip)     # 0x6064c
movl $0x1, 0x3a61b(%rip)     # 0x60650
callq 0x273e8
movl $0x1, %edi
callq 0x26eab
callq 0x2756f
leaq 0x38(%rsp), %rsi
movw $0x2, (%rsi)
movb $0x0, 0x2(%rsi)
leaq 0x8(%rsp), %rdi
leaq 0x80(%rsp), %rcx
movl $0x3, %edx
callq 0x2093a
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movw $0x0, (%rsi)
movb $0x0, 0x2(%rsi)
leaq 0x1(%rsp), %rcx
movl $0x3, %edx
callq 0x2093a
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq %rsp, %rcx
movl $0x2, %edx
callq 0x2097e
movl $0x30, %ebx
movq -0x10(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x260c2
movq (%rsp,%rbx), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %rbx
jne 0x260ac
leaq 0x3a5b1(%rip), %rax     # 0x60680
movq (%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x20f12
leaq 0x23408(%rip), %rsi     # 0x494eb
leaq 0x23408(%rip), %rdx     # 0x494f2
leaq 0x38(%rsp), %rdi
leaq 0x68(%rsp), %rcx
leaq 0x8(%rsp), %r8
callq 0x211e7
leaq 0x8(%rsp), %rdi
callq 0x209f0
cmpb $0x0, 0x38(%rsp)
jne 0x26189
leaq 0x8(%rsp), %rdi
callq 0x29d3a
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x26128
movq (%rax), %r8
jmp 0x2612f
leaq 0x25d6b(%rip), %r8      # 0x4be9a
leaq 0x240fb(%rip), %rdx     # 0x4a231
leaq 0x50(%rsp), %rdi
movl $0x1, %esi
movl $0x56, %ecx
callq 0x27a58
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x27af4
leaq 0x50(%rsp), %rdi
callq 0x27ac4
cmpq $0x0, 0x8(%rsp)
je 0x26189
movl $0x1, %edi
callq 0x27a55
testb %al, %al
je 0x26189
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x26189
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
callq 0x20ebe
leaq 0x68(%rsp), %rdi
callq 0x209f0
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x261dc
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x27ac4
jmp 0x261c1
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x209c8
jmp 0x261d0
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x209da
jmp 0x261f6
movq %rax, %rdi
callq 0x2092b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x209f0
jmp 0x261f6
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x209f0
jmp 0x26312
movq %rax, %rbx
movl $0x30, %r14d
movq -0x10(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x26224
movq (%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x2620e
jmp 0x26312
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x26312
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x26312
jmp 0x2630f
movq %rax, %rbx
movl $0x18, %r15d
leaq (%rsp,%r15), %rdi
addq $0x8, %rdi
callq 0x20ff6
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x26260
xorl %ebp, %ebp
jmp 0x26281
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rdi
callq 0x209f0
jmp 0x26293
movq %rax, %rbx
movb $0x1, %bpl
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x262ba
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x262ba
jmp 0x262b4
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x68(%rsp), %rdi
callq 0x209f0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x262db
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
leaq 0x8(%rsp), %r15
cmpq %r14, %r15
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x26312
addq $-0x18, %r14
movq %r14, %rdi
callq 0x20ff6
cmpq %r15, %r14
jne 0x262ef
jmp 0x26312
movq %rax, %rbx
leaq 0x8(%rsp), %r14
movb $0x1, %bpl
jmp 0x262c4
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1d900