// File: /workspace/github_cpp_makefile_star2_O3/interimadd[P]M5Stack-PixelArt/test/pixel_art_manager_test.cpp
// Function: (anonymous namespace)::TestPixelArtManager_AddScaledPixelArtWithFrame_Test::TestBody()
TEST_F(TestPixelArtManager, AddScaledPixelArtWithFrame)
  {
    MonochromePixelArt frame_one = {{1}};
    MonochromePixelArtWithFrame *pixel_with_frame = new MonochromePixelArtWithFrame({frame_one});
    int scale = 3;
    mng->addPixelArtWithFrame(*pixel_with_frame, scale);

    OperationType no_op = OperationType::NO_OPERATION;
    mng->drawNextFrame(no_op);
  
    LCDState expect_state = {
      {1, 1, 1, 0, 0, 0},
      {1, 1, 1, 0, 0, 0},
      {1, 1, 1, 0, 0, 0},
      {0, 0, 0, 0, 0, 0}
    };
    EXPECT_EQ(expect_state, lcd->getState());
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
leaq 0x88(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x28(%rsp), %rdi
leaq 0x18(%rsp), %rcx
movl $0x1, %edx
callq 0x2093a
leaq 0xb8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rcx
movl $0x1, %edx
callq 0x2097e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x23559
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
movl $0x20, %edi
callq 0x1d430
movq %rax, %r14
leaq 0x28(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x20f12
leaq 0xa0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x88(%rsp), %rcx
movl $0x1, %edx
callq 0x20fac
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x26eb4
leaq 0xa0(%rsp), %rdi
callq 0x20ff6
leaq 0x28(%rsp), %rdi
callq 0x209f0
movq 0x18(%rbx), %r15
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
callq 0x23d9c
movq 0x18(%r14), %rax
leaq 0xe0(%rsp), %rsi
movq %rax, 0x18(%rsi)
movq %r15, %rdi
movl $0x3, %edx
callq 0x27044
leaq 0xe0(%rsp), %rdi
callq 0x20ff6
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x270a6
leaq 0x18(%rsp), %rsi
movl $0x10101, (%rsi)        # imm = 0x10101
movw $0x0, 0x4(%rsi)
leaq 0x28(%rsp), %r14
leaq 0xf(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x2093a
leaq 0x40(%rsp), %r15
leaq 0x10(%rsp), %rsi
movl $0x10101, (%rsi)        # imm = 0x10101
movw $0x0, 0x4(%rsi)
leaq 0xe(%rsp), %rcx
movl $0x6, %edx
movq %r15, %rdi
callq 0x2093a
leaq 0x58(%rsp), %r15
leaq 0xd8(%rsp), %rsi
movl $0x10101, (%rsi)        # imm = 0x10101
movw $0x0, 0x4(%rsi)
leaq 0xd(%rsp), %rcx
movl $0x6, %edx
movq %r15, %rdi
callq 0x2093a
leaq 0x70(%rsp), %r15
leaq 0xd0(%rsp), %rsi
movw $0x0, 0x4(%rsi)
movl $0x0, (%rsi)
leaq 0xc(%rsp), %rcx
movl $0x6, %edx
movq %r15, %rdi
callq 0x2093a
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0xb(%rsp), %rcx
movl $0x4, %edx
callq 0x2097e
movl $0x60, %r14d
movq 0x10(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x236e6
movq 0x20(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x236cf
movq 0x10(%rbx), %rsi
leaq 0x28(%rsp), %rdi
callq 0x20f12
leaq 0x25e01(%rip), %rsi     # 0x49502
leaq 0x25dea(%rip), %rdx     # 0x494f2
leaq 0x18(%rsp), %rdi
leaq 0x88(%rsp), %rcx
leaq 0x28(%rsp), %r8
callq 0x211e7
leaq 0x28(%rsp), %rdi
callq 0x209f0
cmpb $0x0, 0x18(%rsp)
jne 0x237aa
leaq 0x28(%rsp), %rdi
callq 0x29d3a
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x23749
movq (%rax), %r8
jmp 0x23750
leaq 0x2874a(%rip), %r8      # 0x4be9a
leaq 0x25c6a(%rip), %rdx     # 0x493c1
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x9c, %ecx
callq 0x27a58
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x27af4
leaq 0x10(%rsp), %rdi
callq 0x27ac4
cmpq $0x0, 0x28(%rsp)
je 0x237aa
movl $0x1, %edi
callq 0x27a55
testb %al, %al
je 0x237aa
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x237aa
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x20ebe
leaq 0x88(%rsp), %rdi
callq 0x209f0
leaq 0xb8(%rsp), %rdi
callq 0x209f0
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2380c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x27ac4
jmp 0x237f1
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x209c8
jmp 0x23800
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x209da
jmp 0x23826
movq %rax, %rdi
callq 0x2092b
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x209f0
jmp 0x23826
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x209f0
jmp 0x238d5
movq %rax, %rbx
movl $0x60, %r14d
movq 0x10(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x23858
movq 0x20(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x23841
jmp 0x238d5
jmp 0x23864
jmp 0x23864
movq %rax, %rbx
movq -0x18(%r15), %rdi
testq %rdi, %rdi
je 0x2387c
movq -0x8(%r15), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r15
cmpq %r14, %r15
jne 0x23867
jmp 0x238d5
jmp 0x238d2
jmp 0x238d2
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x20ff6
jmp 0x238d5
jmp 0x238d2
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x20ff6
jmp 0x238b4
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x209f0
jmp 0x238c3
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x1d460
jmp 0x238d5
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x209f0
movq %rbx, %rdi
callq 0x1d900
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x238e2
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x238e2
movq %rax, %rbx
jmp 0x238e2
nop