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

    OperationType no_op = OperationType::NO_OPERATION;
    mng->drawNextFrame(no_op);
  
    LCDState expect_state = {
      {0, 0, 0, 0, 0, 0},
      {0, 0, 1, 1, 1, 0},
      {0, 0, 1, 1, 1, 0},
      {0, 0, 1, 1, 1, 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
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x2d5fe
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x2d532
leaq 0x18(%rsp), %rsi
andw $0x0, 0x4(%rsi)
andl $0x0, (%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 $0x1010000, (%rsi)      # imm = 0x1010000
movw $0x1, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xe(%rsp), %rcx
movq %r15, %rdi
callq 0x2795e
leaq 0x70(%rsp), %r15
leaq 0xd8(%rsp), %rsi
movl $0x1010000, (%rsi)      # imm = 0x1010000
movw $0x1, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xd(%rsp), %rcx
movq %r15, %rdi
callq 0x2795e
leaq 0x88(%rsp), %r15
leaq 0xd0(%rsp), %rsi
movl $0x1010000, (%rsi)      # imm = 0x1010000
movw $0x1, 0x4(%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 0x2a5f9
movq 0x10(%rbx), %rsi
leaq 0x40(%rsp), %rdi
callq 0x27ed2
leaq 0x1aedd(%rip), %rsi     # 0x45502
leaq 0x1aec6(%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 0x2a6ad
leaq 0x40(%rsp), %rdi
callq 0x2f572
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x2a66a
movq (%rax), %r8
jmp 0x2a671
leaq 0x1d7f9(%rip), %r8      # 0x47e6a
leaq 0x1ad49(%rip), %rdx     # 0x453c1
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
movl $0xb3, %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 0x2a6ed
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x27e3a
jmp 0x2a6fc
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x27e80
jmp 0x2a71a
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x279ce
jmp 0x2a71a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x279ce
jmp 0x2a7b1
movq %rax, %rbx
pushq $0x48
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x40, %rdi
callq 0x27a48
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x2a730
jmp 0x2a7b1
jmp 0x2a74d
jmp 0x2a74d
movq %rax, %rbx
addq $-0x18, %r15
movq %r15, %rdi
callq 0x27a48
cmpq %r14, %r15
jne 0x2a750
jmp 0x2a7b1
jmp 0x2a7ae
jmp 0x2a7ae
jmp 0x2a7ae
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x27f66
jmp 0x2a7b1
jmp 0x2a7ae
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x27f66
jmp 0x2a792
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x279ce
jmp 0x2a7a1
movq %rax, %rbx
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x25490
jmp 0x2a7b1
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x279ce
movq %rbx, %rdi
callq 0x25930
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x27a48
jmp 0x2a7be
movq %rax, %rbx
jmp 0x2a7be