// File: /workspace/github_cpp_makefile_star2_O2/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 0x28(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x40(%rsp), %rdi
pushq $0x1
popq %rdx
leaq 0x18(%rsp), %rcx
callq 0x2795e
leaq 0xb8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0x10(%rsp), %rcx
callq 0x27994
leaq 0x40(%rsp), %rdi
callq 0x27a48
pushq $0x20
popq %rdi
callq 0x25460
movq %rax, %r14
leaq 0x40(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x27ed2
leaq 0xa0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0x28(%rsp), %rcx
callq 0x27f2c
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x2d37c
leaq 0xa0(%rsp), %rdi
callq 0x27f66
leaq 0x40(%rsp), %rdi
callq 0x279ce
movq 0x18(%rbx), %r15
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
callq 0x2a7da
leaq 0xe0(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x2d4da
leaq 0xe0(%rsp), %rdi
callq 0x27f66
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x2d532
leaq 0x18(%rsp), %rsi
movl $0x10101, (%rsi)        # imm = 0x10101
andw $0x0, 0x4(%rsi)
leaq 0x40(%rsp), %r14
pushq $0x6
popq %rdx
leaq 0xf(%rsp), %rcx
movq %r14, %rdi
callq 0x2795e
leaq 0x58(%rsp), %r15
leaq 0x10(%rsp), %rsi
movl $0x10101, (%rsi)        # imm = 0x10101
andw $0x0, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xe(%rsp), %rcx
movq %r15, %rdi
callq 0x2795e
leaq 0x70(%rsp), %r15
leaq 0xd8(%rsp), %rsi
movl $0x10101, (%rsi)        # imm = 0x10101
andw $0x0, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xd(%rsp), %rcx
movq %r15, %rdi
callq 0x2795e
leaq 0xd0(%rsp), %rsi
andw $0x0, 0x4(%rsi)
leaq 0x88(%rsp), %r15
andl $0x0, (%rsi)
pushq $0x6
popq %rdx
leaq 0xc(%rsp), %rcx
movq %r15, %rdi
callq 0x2795e
leaq 0x28(%rsp), %rdi
leaq 0x40(%rsp), %rsi
pushq $0x4
popq %rdx
leaq 0xb(%rsp), %rcx
callq 0x27994
pushq $0x48
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x40, %rdi
callq 0x27a48
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x2a209
movq 0x10(%rbx), %rsi
leaq 0x40(%rsp), %rdi
callq 0x27ed2
leaq 0x1b2cd(%rip), %rsi     # 0x45502
leaq 0x1b2b6(%rip), %rdx     # 0x454f2
leaq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0x281b7
leaq 0x40(%rsp), %rdi
callq 0x279ce
cmpb $0x0, 0x18(%rsp)
jne 0x2a2bd
leaq 0x40(%rsp), %rdi
callq 0x2f572
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x2a27a
movq (%rax), %r8
jmp 0x2a281
leaq 0x1dbe9(%rip), %r8      # 0x47e6a
leaq 0x1b139(%rip), %rdx     # 0x453c1
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
movl $0x9c, %ecx
callq 0x2dddc
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x2de5a
leaq 0x10(%rsp), %rdi
callq 0x2de3c
leaq 0x40(%rsp), %rdi
callq 0x27e3a
leaq 0x20(%rsp), %rdi
callq 0x27e80
leaq 0x28(%rsp), %rdi
callq 0x279ce
leaq 0xb8(%rsp), %rdi
callq 0x279ce
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2de3c
jmp 0x2a2fd
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x27e3a
jmp 0x2a30c
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x27e80
jmp 0x2a32a
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x279ce
jmp 0x2a32a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x279ce
jmp 0x2a3bf
movq %rax, %rbx
pushq $0x48
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x40, %rdi
callq 0x27a48
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x2a340
jmp 0x2a3bf
jmp 0x2a35d
jmp 0x2a35d
movq %rax, %rbx
addq $-0x18, %r15
movq %r15, %rdi
callq 0x27a48
cmpq %r14, %r15
jne 0x2a360
jmp 0x2a3bf
jmp 0x2a3bc
jmp 0x2a3bc
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x27f66
jmp 0x2a3bf
jmp 0x2a3bc
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x27f66
jmp 0x2a3a0
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x279ce
jmp 0x2a3af
movq %rax, %rbx
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x25490
jmp 0x2a3bf
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x279ce
movq %rbx, %rdi
callq 0x25930
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x27a48
jmp 0x2a3cc
movq %rax, %rbx
jmp 0x2a3cc