// File: 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 %rbp
movq %rsp, %rbp
subq $0x380, %rsp            # imm = 0x380
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x248(%rbp)
movb $0x1, -0x75(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x240(%rbp)
movq %rax, -0x50(%rbp)
movb $0x1, -0x61(%rbp)
leaq -0x61(%rbp), %rax
movq %rax, -0x60(%rbp)
movq $0x1, -0x58(%rbp)
leaq -0x62(%rbp), %rdi
movq %rdi, -0x238(%rbp)
callq 0x57400
movq -0x240(%rbp), %rdi
movq -0x238(%rbp), %rcx
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0x57420
jmp 0x60c0e
movb $0x0, -0x75(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x1, -0x28(%rbp)
leaq -0x76(%rbp), %rdi
movq %rdi, -0x250(%rbp)
callq 0x574a0
movq -0x250(%rbp), %rcx
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0x20(%rbp), %rdi
callq 0x574c0
jmp 0x60c4c
leaq -0x76(%rbp), %rdi
callq 0x57540
leaq -0x48(%rbp), %rax
movq %rax, -0x260(%rbp)
addq $0x18, %rax
movq %rax, -0x258(%rbp)
movq -0x258(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x268(%rbp)
callq 0x57560
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x258(%rbp)
jne 0x60c6b
leaq -0x62(%rbp), %rdi
callq 0x575c0
movl $0x20, %edi
callq 0x525d0
movq %rax, -0x270(%rbp)
jmp 0x60cb8
movb $0x1, -0xca(%rbp)
leaq -0xc0(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x593c0
jmp 0x60cd8
leaq -0xc0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq $0x1, -0xa0(%rbp)
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x594b0
movq -0x278(%rbp), %rcx
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
leaq -0x98(%rbp), %rdi
callq 0x594d0
jmp 0x60d27
movq -0x270(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x6ad50
jmp 0x60d3c
movb $0x0, -0xca(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x59550
leaq -0xc9(%rbp), %rdi
callq 0x595b0
leaq -0xc0(%rbp), %rax
movq %rax, -0x288(%rbp)
addq $0x18, %rax
movq %rax, -0x280(%rbp)
movq -0x280(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x290(%rbp)
callq 0x57740
movq -0x288(%rbp), %rcx
movq -0x290(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x280(%rbp)
jne 0x60d74
movq -0x248(%rbp), %rax
movq -0x270(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movl $0x3, -0xd0(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x298(%rbp)
movq -0x80(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x61670
jmp 0x60dde
movq -0x298(%rbp), %rdi
movl -0xd0(%rbp), %edx
leaq -0xf0(%rbp), %rsi
callq 0x6b040
jmp 0x60df9
leaq -0xf0(%rbp), %rdi
callq 0x616b0
movq -0x248(%rbp), %rax
movl $0x2, -0xf4(%rbp)
movl $0x1, -0xf8(%rbp)
movq 0x18(%rax), %rdi
movl -0xf4(%rbp), %esi
movl -0xf8(%rbp), %edx
callq 0x6b1e0
jmp 0x60e37
movq -0x248(%rbp), %rax
movl $0x0, -0xfc(%rbp)
movq 0x18(%rax), %rdi
movl -0xfc(%rbp), %esi
callq 0x6b0b0
jmp 0x60e59
movb $0x1, -0x1f0(%rbp)
leaq -0x188(%rbp), %rax
movq %rax, -0x2a8(%rbp)
movq %rax, -0x190(%rbp)
movb $0x0, -0x1a6(%rbp)
movb $0x0, -0x1a5(%rbp)
movb $0x0, -0x1a4(%rbp)
movb $0x0, -0x1a3(%rbp)
movb $0x0, -0x1a2(%rbp)
movb $0x0, -0x1a1(%rbp)
leaq -0x1a6(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq $0x6, -0x198(%rbp)
leaq -0x1a7(%rbp), %rdi
movq %rdi, -0x2a0(%rbp)
callq 0x57400
movq -0x2a8(%rbp), %rdi
movq -0x2a0(%rbp), %rcx
movq -0x1a0(%rbp), %rsi
movq -0x198(%rbp), %rdx
callq 0x57420
jmp 0x60eee
leaq -0x170(%rbp), %rax
movq %rax, -0x2b8(%rbp)
movq %rax, -0x190(%rbp)
movb $0x0, -0x1be(%rbp)
movb $0x0, -0x1bd(%rbp)
movb $0x1, -0x1bc(%rbp)
movb $0x1, -0x1bb(%rbp)
movb $0x1, -0x1ba(%rbp)
movb $0x0, -0x1b9(%rbp)
leaq -0x1be(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq $0x6, -0x1b0(%rbp)
leaq -0x1bf(%rbp), %rdi
movq %rdi, -0x2b0(%rbp)
callq 0x57400
movq -0x2b8(%rbp), %rdi
movq -0x2b0(%rbp), %rcx
movq -0x1b8(%rbp), %rsi
movq -0x1b0(%rbp), %rdx
callq 0x57420
jmp 0x60f7c
leaq -0x158(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq %rax, -0x190(%rbp)
movb $0x0, -0x1d6(%rbp)
movb $0x0, -0x1d5(%rbp)
movb $0x1, -0x1d4(%rbp)
movb $0x1, -0x1d3(%rbp)
movb $0x1, -0x1d2(%rbp)
movb $0x0, -0x1d1(%rbp)
leaq -0x1d6(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq $0x6, -0x1c8(%rbp)
leaq -0x1d7(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x57400
movq -0x2c8(%rbp), %rdi
movq -0x2c0(%rbp), %rcx
movq -0x1d0(%rbp), %rsi
movq -0x1c8(%rbp), %rdx
callq 0x57420
jmp 0x6100a
leaq -0x140(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq %rax, -0x190(%rbp)
movb $0x0, -0x1ee(%rbp)
movb $0x0, -0x1ed(%rbp)
movb $0x1, -0x1ec(%rbp)
movb $0x1, -0x1eb(%rbp)
movb $0x1, -0x1ea(%rbp)
movb $0x0, -0x1e9(%rbp)
leaq -0x1ee(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq $0x6, -0x1e0(%rbp)
leaq -0x1ef(%rbp), %rdi
movq %rdi, -0x2d0(%rbp)
callq 0x57400
movq -0x2d8(%rbp), %rdi
movq -0x2d0(%rbp), %rcx
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
callq 0x57420
jmp 0x61098
movb $0x0, -0x1f0(%rbp)
leaq -0x188(%rbp), %rax
movq %rax, -0x128(%rbp)
movq $0x4, -0x120(%rbp)
leaq -0x1f1(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x574a0
movq -0x2e0(%rbp), %rcx
movq -0x128(%rbp), %rsi
movq -0x120(%rbp), %rdx
leaq -0x118(%rbp), %rdi
callq 0x574c0
jmp 0x610ee
leaq -0x1f1(%rbp), %rdi
callq 0x57540
leaq -0x188(%rbp), %rax
movq %rax, -0x2f0(%rbp)
addq $0x60, %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x2f8(%rbp)
callq 0x57560
movq -0x2f0(%rbp), %rcx
movq -0x2f8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2e8(%rbp)
jne 0x61113
leaq -0x1ef(%rbp), %rdi
callq 0x575c0
leaq -0x1d7(%rbp), %rdi
callq 0x575c0
leaq -0x1bf(%rbp), %rdi
callq 0x575c0
leaq -0x1a7(%rbp), %rdi
callq 0x575c0
movq -0x248(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x220(%rbp), %rdi
callq 0x61640
jmp 0x6118d
leaq 0x4636e(%rip), %rsi     # 0xa7502
leaq 0x46357(%rip), %rdx     # 0xa74f2
leaq -0x208(%rbp), %rdi
leaq -0x118(%rbp), %rcx
leaq -0x220(%rbp), %r8
callq 0x595d0
jmp 0x611b7
leaq -0x220(%rbp), %rdi
callq 0x57740
leaq -0x208(%rbp), %rdi
callq 0x57670
testb $0x1, %al
jne 0x611d8
jmp 0x61526
jmp 0x615e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x61249
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x76(%rbp), %rdi
callq 0x57540
leaq -0x48(%rbp), %rax
movq %rax, -0x308(%rbp)
addq $0x18, %rax
movq %rax, -0x300(%rbp)
movq -0x300(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x310(%rbp)
callq 0x57560
movq -0x308(%rbp), %rcx
movq -0x310(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x300(%rbp)
jne 0x61216
jmp 0x61249
leaq -0x62(%rbp), %rdi
callq 0x575c0
testb $0x1, -0x75(%rbp)
jne 0x6125a
jmp 0x6129e
movq -0x50(%rbp), %rax
leaq -0x48(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x318(%rbp)
je 0x6129c
movq -0x318(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x320(%rbp)
callq 0x57560
movq -0x320(%rbp), %rax
leaq -0x48(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x318(%rbp)
jne 0x6126e
jmp 0x6129e
jmp 0x6162b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x61622
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movq -0xc8(%rbp), %rax
leaq -0xc0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x328(%rbp)
je 0x6130b
movq -0x328(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x330(%rbp)
callq 0x57740
movq -0x330(%rbp), %rax
leaq -0xc0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x328(%rbp)
jne 0x612da
jmp 0x6138b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x61333
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x59550
leaq -0xc9(%rbp), %rdi
callq 0x595b0
leaq -0xc0(%rbp), %rax
movq %rax, -0x340(%rbp)
addq $0x18, %rax
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x348(%rbp)
callq 0x57740
movq -0x340(%rbp), %rcx
movq -0x348(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x338(%rbp)
jne 0x61358
jmp 0x6138b
testb $0x1, -0xca(%rbp)
jne 0x61396
jmp 0x613a7
movq -0x270(%rbp), %rdi
movl $0x20, %esi
callq 0x52600
jmp 0x61622
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x616b0
jmp 0x61622
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x6148f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x61483
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x61477
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x6146b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x1f1(%rbp), %rdi
callq 0x57540
leaq -0x188(%rbp), %rax
movq %rax, -0x358(%rbp)
addq $0x60, %rax
movq %rax, -0x350(%rbp)
movq -0x350(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x360(%rbp)
callq 0x57560
movq -0x358(%rbp), %rcx
movq -0x360(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x350(%rbp)
jne 0x61438
jmp 0x6146b
leaq -0x1ef(%rbp), %rdi
callq 0x575c0
leaq -0x1d7(%rbp), %rdi
callq 0x575c0
leaq -0x1bf(%rbp), %rdi
callq 0x575c0
leaq -0x1a7(%rbp), %rdi
callq 0x575c0
testb $0x1, -0x1f0(%rbp)
jne 0x614a6
jmp 0x614f3
movq -0x190(%rbp), %rax
leaq -0x188(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x368(%rbp)
je 0x614f1
movq -0x368(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x370(%rbp)
callq 0x57560
movq -0x370(%rbp), %rax
leaq -0x188(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x368(%rbp)
jne 0x614c0
jmp 0x614f3
jmp 0x61622
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x61616
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x57740
jmp 0x61616
leaq -0x228(%rbp), %rdi
callq 0x6f710
jmp 0x61534
leaq -0x208(%rbp), %rdi
callq 0x57690
movq %rax, -0x378(%rbp)
jmp 0x61549
movq -0x378(%rbp), %r8
leaq 0x45e6a(%rip), %rdx     # 0xa73c1
leaq -0x230(%rbp), %rdi
movl $0x1, %esi
movl $0xb3, %ecx
callq 0x6c940
jmp 0x6156f
leaq -0x230(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0x6ca00
jmp 0x61584
leaq -0x230(%rbp), %rdi
callq 0x6c9c0
leaq -0x228(%rbp), %rdi
callq 0x576b0
jmp 0x615e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x6160a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x615d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x230(%rbp), %rdi
callq 0x6c9c0
leaq -0x228(%rbp), %rdi
callq 0x576b0
jmp 0x6160a
leaq -0x208(%rbp), %rdi
callq 0x576d0
leaq -0x118(%rbp), %rdi
callq 0x57740
leaq -0x20(%rbp), %rdi
callq 0x57740
addq $0x380, %rsp            # imm = 0x380
popq %rbp
retq
leaq -0x208(%rbp), %rdi
callq 0x576d0
leaq -0x118(%rbp), %rdi
callq 0x57740
leaq -0x20(%rbp), %rdi
callq 0x57740
movq -0x70(%rbp), %rdi
callq 0x52bc0
nopw %cs:(%rax,%rax)
nop