// File: /workspace/github_cpp_makefile_star2_O3/interimadd[P]M5Stack-PixelArt/test/pixel_art_manager_test.cpp
// Function: (anonymous namespace)::TestPixelArtManager_DrawPixelArt_Test::TestBody()
TEST_F(TestPixelArtManager, DrawPixelArt)
  {
    int pos_x = 0, pos_y = 0, scale = 1;
    MonochromePixelArt pixel_art = {
      {1, 0, 0},
      {0, 0, 1}
    };
    mng->drawPixelArt(pixel_art, pos_x, pos_y, scale);
  
    LCDState expect = {
      {1, 0, 0, 0, 0, 0},
      {0, 0, 1, 0, 0, 0},
      {0, 0, 0, 0, 0, 0},
      {0, 0, 0, 0, 0, 0}
    };
    EXPECT_EQ(expect, lcd->getState());
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdi, %rbx
leaq 0x98(%rsp), %rsi
movw $0x1, (%rsi)
movb $0x0, 0x2(%rsi)
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rcx
movl $0x3, %edx
callq 0x2093a
leaq 0x50(%rsp), %r14
leaq 0x18(%rsp), %rsi
movw $0x0, (%rsi)
movb $0x1, 0x2(%rsi)
leaq 0x30(%rsp), %rcx
movl $0x3, %edx
movq %r14, %rdi
callq 0x2093a
leaq 0xc8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x28(%rsp), %rcx
movl $0x2, %edx
callq 0x2097e
movl $0x30, %r15d
movq 0x20(%rsp,%r15), %rdi
testq %rdi, %rdi
je 0x21c22
movq 0x30(%rsp,%r15), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r15
jne 0x21c0b
movq 0x18(%rbx), %r15
leaq 0xb0(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x20f12
leaq 0xb0(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x26f6e
leaq 0xb0(%rsp), %rdi
callq 0x209f0
leaq 0x18(%rsp), %rsi
movb $0x1, (%rsi)
movl $0x0, 0x1(%rsi)
movb $0x0, 0x5(%rsi)
leaq 0x38(%rsp), %r15
leaq 0xf(%rsp), %rcx
movl $0x6, %edx
movq %r15, %rdi
callq 0x2093a
leaq 0x10(%rsp), %rsi
movl $0x10000, (%rsi)        # imm = 0x10000
movw $0x0, 0x4(%rsi)
leaq 0xe(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x2093a
leaq 0x68(%rsp), %r14
leaq 0x30(%rsp), %rsi
movw $0x0, 0x4(%rsi)
movl $0x0, (%rsi)
leaq 0xd(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x2093a
leaq 0x80(%rsp), %r14
leaq 0x28(%rsp), %rsi
movw $0x0, 0x4(%rsi)
movl $0x0, (%rsi)
leaq 0xc(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x2093a
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0xb(%rsp), %rcx
movl $0x4, %edx
callq 0x2097e
movl $0x60, %r14d
movq 0x20(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x21d41
movq 0x30(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x21d2a
movq 0x10(%rbx), %rsi
leaq 0x38(%rsp), %rdi
callq 0x20f12
leaq 0x2778f(%rip), %rsi     # 0x494eb
leaq 0x2778f(%rip), %rdx     # 0x494f2
leaq 0x18(%rsp), %rdi
leaq 0x98(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x211e7
leaq 0x38(%rsp), %rdi
callq 0x209f0
cmpb $0x0, 0x18(%rsp)
jne 0x21e05
leaq 0x38(%rsp), %rdi
callq 0x29d3a
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x21da4
movq (%rax), %r8
jmp 0x21dab
leaq 0x2a0ef(%rip), %r8      # 0x4be9a
leaq 0x2760f(%rip), %rdx     # 0x493c1
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x3c, %ecx
callq 0x27a58
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x27af4
leaq 0x10(%rsp), %rdi
callq 0x27ac4
cmpq $0x0, 0x38(%rsp)
je 0x21e05
movl $0x1, %edi
callq 0x27a55
testb %al, %al
je 0x21e05
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x21e05
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x20ebe
leaq 0x98(%rsp), %rdi
callq 0x209f0
leaq 0xc8(%rsp), %rdi
callq 0x209f0
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x21e67
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x27ac4
jmp 0x21e4c
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x209c8
jmp 0x21e5b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x209da
jmp 0x21e81
movq %rax, %rdi
callq 0x2092b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x209f0
jmp 0x21e81
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x21ee7
movq %rax, %rbx
movl $0x60, %r14d
movq 0x20(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x21eab
movq 0x30(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x21e94
jmp 0x21ef1
jmp 0x21eb7
jmp 0x21eb7
movq %rax, %rbx
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x21ecf
movq -0x8(%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
cmpq %r15, %r14
jne 0x21eba
jmp 0x21ef1
jmp 0x21eee
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x209f0
jmp 0x21ef1
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x209f0
movq %rbx, %rdi
callq 0x1d900
movq %rax, %rbx
movl $0x30, %r14d
movq 0x20(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x21f26
movq 0x30(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x21f0f
jmp 0x21efe
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x21efe
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x21efe
movq %rax, %rbx
jmp 0x21efe
nop