// File: /workspace/github_cpp_makefile_star2_O1/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 0x20d70
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
callq 0x20db4
leaq 0x8(%rsp), %r14
leaq 0x68(%rsp), %rsi
leaq 0x6(%rsp), %rcx
movl $0x1, %edx
movq %r14, %rdi
callq 0x213d6
leaq 0x20(%rsp), %r14
leaq 0x5(%rsp), %rsi
movb $0x2, (%rsi)
leaq 0x80(%rsp), %rdi
leaq 0x4(%rsp), %rcx
movl $0x1, %edx
callq 0x20d70
leaq 0x50(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x3(%rsp), %rcx
movl $0x1, %edx
callq 0x20db4
leaq 0x50(%rsp), %rsi
leaq 0x2(%rsp), %rcx
movl $0x1, %edx
movq %r14, %rdi
callq 0x213d6
leaq 0x38(%rsp), %rdx
leaq 0x39ff7(%rip), %rdi     # 0x60630
leaq 0x8(%rsp), %rsi
callq 0x26b72
movl $0x18, %ebx
leaq (%rsp,%rbx), %rdi
addq $0x8, %rdi
callq 0x21420
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x26648
leaq 0x50(%rsp), %rdi
callq 0x20e26
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x26686
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
leaq 0x68(%rsp), %rdi
callq 0x20e26
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x266a7
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
xorl %eax, %eax
movl %eax, 0x39f99(%rip)     # 0x60648
movl %eax, 0x39f97(%rip)     # 0x6064c
movl $0x1, 0x39f91(%rip)     # 0x60650
callq 0x27a34
movl $0x1, %edi
callq 0x274eb
callq 0x27bc0
leaq 0x38(%rsp), %rsi
movw $0x2, (%rsi)
movb $0x0, 0x2(%rsi)
leaq 0x8(%rsp), %r15
leaq 0x80(%rsp), %rcx
movl $0x3, %edx
movq %r15, %rdi
callq 0x20d70
leaq 0x20(%rsp), %r14
leaq 0x50(%rsp), %rsi
movw $0x0, (%rsi)
movb $0x0, 0x2(%rsi)
leaq 0x1(%rsp), %rcx
movl $0x3, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq %rsp, %rcx
movl $0x2, %edx
callq 0x20db4
movl $0x30, %ebx
movq -0x10(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x26752
movq (%rsp,%rbx), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %rbx
jne 0x2673c
leaq 0x39f21(%rip), %rax     # 0x60680
movq (%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x2133c
leaq 0x22d78(%rip), %rsi     # 0x494eb
leaq 0x22d78(%rip), %rdx     # 0x494f2
leaq 0x38(%rsp), %rdi
leaq 0x68(%rsp), %rcx
leaq 0x8(%rsp), %r8
callq 0x2160b
leaq 0x8(%rsp), %rdi
callq 0x20e26
cmpb $0x0, 0x38(%rsp)
jne 0x26826
leaq 0x8(%rsp), %rdi
callq 0x2a416
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x267bc
movq (%rax), %r8
jmp 0x267c3
leaq 0x256a7(%rip), %r8      # 0x4be6a
leaq 0x23a67(%rip), %rdx     # 0x4a231
leaq 0x50(%rsp), %rdi
movl $0x1, %esi
movl $0x56, %ecx
callq 0x280e0
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2817e
leaq 0x50(%rsp), %rdi
callq 0x2814c
cmpq $0x0, 0x8(%rsp)
je 0x26826
movl $0x1, %edi
callq 0x280dc
testb %al, %al
je 0x2681d
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2681d
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
callq 0x212e8
leaq 0x68(%rsp), %rdi
callq 0x20e26
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26879
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x2814c
jmp 0x2685e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20dfe
jmp 0x2686d
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20e10
jmp 0x26893
movq %rax, %rdi
callq 0x20d60
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20e26
jmp 0x26893
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x20e26
jmp 0x269be
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1de90
movb $0x1, %al
jmp 0x268c7
movq %rax, %rbx
xorl %eax, %eax
jmp 0x268c7
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x269be
leaq 0x8(%rsp), %r15
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x268ef
movq -0x8(%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
cmpq %r15, %r14
jne 0x268da
jmp 0x269be
movq %rax, %rbx
movl $0x18, %r15d
leaq (%rsp,%r15), %rdi
addq $0x8, %rdi
callq 0x21420
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x26906
xorl %ebp, %ebp
jmp 0x26927
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rdi
callq 0x20e26
jmp 0x26939
movq %rax, %rbx
movb $0x1, %bpl
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x26960
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x26960
jmp 0x2695a
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x68(%rsp), %rdi
callq 0x20e26
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2699b
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x2699b
movq %rax, %rbx
leaq 0x8(%rsp), %r14
movb $0x1, %bpl
jmp 0x2696a
movq %rax, %rbx
leaq 0x8(%rsp), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %r15
cmpq %r14, %r15
setne %al
andb %bpl, %al
cmpb $0x1, %al
jne 0x269be
addq $-0x18, %r14
movq %r14, %rdi
callq 0x21420
cmpq %r15, %r14
jne 0x269ad
movq %rbx, %rdi
callq 0x1d900