// File: /workspace/github_cpp_makefile_star2_O1/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 0x88(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x28(%rsp), %rdi
leaq 0x18(%rsp), %rcx
movl $0x1, %edx
callq 0x20d70
leaq 0xb8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rcx
movl $0x1, %edx
callq 0x20db4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x23edb
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 0x2133c
leaq 0xa0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x88(%rsp), %rcx
movl $0x1, %edx
callq 0x213d6
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x274f4
leaq 0xa0(%rsp), %rdi
callq 0x21420
leaq 0x28(%rsp), %rdi
callq 0x20e26
movq 0x18(%rbx), %r15
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
callq 0x242ba
movq 0x18(%r14), %rax
leaq 0xe0(%rsp), %rsi
movq %rax, 0x18(%rsi)
movq %r15, %rdi
movl $0x3, %edx
callq 0x2768c
leaq 0xe0(%rsp), %rdi
callq 0x21420
movq 0x18(%rbx), %rdi
movl $0x2, %esi
movl $0x1, %edx
callq 0x277be
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x276ee
leaq 0x18(%rsp), %rsi
movw $0x0, 0x4(%rsi)
movl $0x0, (%rsi)
leaq 0x28(%rsp), %r15
leaq 0xf(%rsp), %rcx
movl $0x6, %edx
movq %r15, %rdi
callq 0x20d70
leaq 0x40(%rsp), %r14
leaq 0x10(%rsp), %rsi
movl $0x1010000, (%rsi)      # imm = 0x1010000
movw $0x1, 0x4(%rsi)
leaq 0xe(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x58(%rsp), %r14
leaq 0xda(%rsp), %rsi
movl $0x1010000, (%rsi)      # imm = 0x1010000
movw $0x1, 0x4(%rsi)
leaq 0xd(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x70(%rsp), %r14
leaq 0xd4(%rsp), %rsi
movl $0x1010000, (%rsi)      # imm = 0x1010000
movw $0x1, 0x4(%rsi)
leaq 0xc(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0xb(%rsp), %rcx
movl $0x4, %edx
callq 0x20db4
movl $0x60, %r14d
movq 0x10(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x2407b
movq 0x20(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x24064
movq 0x10(%rbx), %rsi
leaq 0x28(%rsp), %rdi
callq 0x2133c
leaq 0x2546c(%rip), %rsi     # 0x49502
leaq 0x25455(%rip), %rdx     # 0x494f2
leaq 0x18(%rsp), %rdi
leaq 0x88(%rsp), %rcx
leaq 0x28(%rsp), %r8
callq 0x2160b
leaq 0x28(%rsp), %rdi
callq 0x20e26
cmpb $0x0, 0x18(%rsp)
jne 0x2414c
leaq 0x28(%rsp), %rdi
callq 0x2a416
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x240e2
movq (%rax), %r8
jmp 0x240e9
leaq 0x27d81(%rip), %r8      # 0x4be6a
leaq 0x252d1(%rip), %rdx     # 0x493c1
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0xb3, %ecx
callq 0x280e0
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2817e
leaq 0x10(%rsp), %rdi
callq 0x2814c
cmpq $0x0, 0x28(%rsp)
je 0x2414c
movl $0x1, %edi
callq 0x280dc
testb %al, %al
je 0x24143
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x24143
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x212e8
leaq 0x88(%rsp), %rdi
callq 0x20e26
leaq 0xb8(%rsp), %rdi
callq 0x20e26
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
jmp 0x241ae
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2814c
jmp 0x24193
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20dfe
jmp 0x241a2
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20e10
jmp 0x241c8
movq %rax, %rdi
callq 0x20d60
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20e26
jmp 0x241c8
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x20e26
jmp 0x24283
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1dc48
movb $0x1, %al
jmp 0x24206
jmp 0x241f7
jmp 0x241f7
movq %rax, %rbx
xorl %eax, %eax
jmp 0x24206
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x24283
leaq 0x28(%rsp), %r15
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x2422a
movq -0x8(%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
cmpq %r15, %r14
jne 0x24215
jmp 0x24283
jmp 0x24280
jmp 0x24280
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x21420
jmp 0x24283
jmp 0x24280
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x21420
jmp 0x24262
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20e26
jmp 0x24271
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x1d460
jmp 0x24283
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x20e26
movq %rbx, %rdi
callq 0x1d900
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x24290
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d460
jmp 0x24290
movq %rax, %rbx
jmp 0x24290
nop