// File: 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 %rbp
movq %rsp, %rbp
subq $0x370, %rsp            # imm = 0x370
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x240(%rbp)
movb $0x1, -0x75(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x238(%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, -0x230(%rbp)
callq 0x57400
movq -0x238(%rbp), %rdi
movq -0x230(%rbp), %rcx
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0x57420
jmp 0x6005e
movb $0x0, -0x75(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x1, -0x28(%rbp)
leaq -0x76(%rbp), %rdi
movq %rdi, -0x248(%rbp)
callq 0x574a0
movq -0x248(%rbp), %rcx
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0x20(%rbp), %rdi
callq 0x574c0
jmp 0x6009c
leaq -0x76(%rbp), %rdi
callq 0x57540
leaq -0x48(%rbp), %rax
movq %rax, -0x258(%rbp)
addq $0x18, %rax
movq %rax, -0x250(%rbp)
movq -0x250(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x260(%rbp)
callq 0x57560
movq -0x258(%rbp), %rcx
movq -0x260(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x250(%rbp)
jne 0x600bb
leaq -0x62(%rbp), %rdi
callq 0x575c0
movl $0x20, %edi
callq 0x525d0
movq %rax, -0x268(%rbp)
jmp 0x60108
movb $0x1, -0xca(%rbp)
leaq -0xc0(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x593c0
jmp 0x60128
leaq -0xc0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq $0x1, -0xa0(%rbp)
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x594b0
movq -0x270(%rbp), %rcx
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
leaq -0x98(%rbp), %rdi
callq 0x594d0
jmp 0x60177
movq -0x268(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x6ad50
jmp 0x6018c
movb $0x0, -0xca(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x59550
leaq -0xc9(%rbp), %rdi
callq 0x595b0
leaq -0xc0(%rbp), %rax
movq %rax, -0x280(%rbp)
addq $0x18, %rax
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x288(%rbp)
callq 0x57740
movq -0x280(%rbp), %rcx
movq -0x288(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x278(%rbp)
jne 0x601c4
movq -0x240(%rbp), %rax
movq -0x268(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movl $0x3, -0xd0(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x290(%rbp)
movq -0x80(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x61670
jmp 0x6022e
movq -0x290(%rbp), %rdi
movl -0xd0(%rbp), %edx
leaq -0xf0(%rbp), %rsi
callq 0x6b040
jmp 0x60249
leaq -0xf0(%rbp), %rdi
callq 0x616b0
movq -0x240(%rbp), %rax
movl $0x0, -0xf4(%rbp)
movq 0x18(%rax), %rdi
movl -0xf4(%rbp), %esi
callq 0x6b0b0
jmp 0x60277
movb $0x1, -0x1e8(%rbp)
leaq -0x180(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq %rax, -0x188(%rbp)
movb $0x1, -0x19e(%rbp)
movb $0x1, -0x19d(%rbp)
movb $0x1, -0x19c(%rbp)
movb $0x0, -0x19b(%rbp)
movb $0x0, -0x19a(%rbp)
movb $0x0, -0x199(%rbp)
leaq -0x19e(%rbp), %rax
movq %rax, -0x198(%rbp)
movq $0x6, -0x190(%rbp)
leaq -0x19f(%rbp), %rdi
movq %rdi, -0x298(%rbp)
callq 0x57400
movq -0x2a0(%rbp), %rdi
movq -0x298(%rbp), %rcx
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
callq 0x57420
jmp 0x6030c
leaq -0x168(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq %rax, -0x188(%rbp)
movb $0x1, -0x1b6(%rbp)
movb $0x1, -0x1b5(%rbp)
movb $0x1, -0x1b4(%rbp)
movb $0x0, -0x1b3(%rbp)
movb $0x0, -0x1b2(%rbp)
movb $0x0, -0x1b1(%rbp)
leaq -0x1b6(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq $0x6, -0x1a8(%rbp)
leaq -0x1b7(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x57400
movq -0x2b0(%rbp), %rdi
movq -0x2a8(%rbp), %rcx
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
callq 0x57420
jmp 0x6039a
leaq -0x150(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq %rax, -0x188(%rbp)
movb $0x1, -0x1ce(%rbp)
movb $0x1, -0x1cd(%rbp)
movb $0x1, -0x1cc(%rbp)
movb $0x0, -0x1cb(%rbp)
movb $0x0, -0x1ca(%rbp)
movb $0x0, -0x1c9(%rbp)
leaq -0x1ce(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq $0x6, -0x1c0(%rbp)
leaq -0x1cf(%rbp), %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x57400
movq -0x2c0(%rbp), %rdi
movq -0x2b8(%rbp), %rcx
movq -0x1c8(%rbp), %rsi
movq -0x1c0(%rbp), %rdx
callq 0x57420
jmp 0x60428
leaq -0x138(%rbp), %rax
movq %rax, -0x2d0(%rbp)
movq %rax, -0x188(%rbp)
movb $0x0, -0x1e6(%rbp)
movb $0x0, -0x1e5(%rbp)
movb $0x0, -0x1e4(%rbp)
movb $0x0, -0x1e3(%rbp)
movb $0x0, -0x1e2(%rbp)
movb $0x0, -0x1e1(%rbp)
leaq -0x1e6(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq $0x6, -0x1d8(%rbp)
leaq -0x1e7(%rbp), %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x57400
movq -0x2d0(%rbp), %rdi
movq -0x2c8(%rbp), %rcx
movq -0x1e0(%rbp), %rsi
movq -0x1d8(%rbp), %rdx
callq 0x57420
jmp 0x604b6
movb $0x0, -0x1e8(%rbp)
leaq -0x180(%rbp), %rax
movq %rax, -0x120(%rbp)
movq $0x4, -0x118(%rbp)
leaq -0x1e9(%rbp), %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x574a0
movq -0x2d8(%rbp), %rcx
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
leaq -0x110(%rbp), %rdi
callq 0x574c0
jmp 0x6050c
leaq -0x1e9(%rbp), %rdi
callq 0x57540
leaq -0x180(%rbp), %rax
movq %rax, -0x2e8(%rbp)
addq $0x60, %rax
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x57560
movq -0x2e8(%rbp), %rcx
movq -0x2f0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2e0(%rbp)
jne 0x60531
leaq -0x1e7(%rbp), %rdi
callq 0x575c0
leaq -0x1cf(%rbp), %rdi
callq 0x575c0
leaq -0x1b7(%rbp), %rdi
callq 0x575c0
leaq -0x19f(%rbp), %rdi
callq 0x575c0
movq -0x240(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x218(%rbp), %rdi
callq 0x61640
jmp 0x605ab
leaq 0x46f50(%rip), %rsi     # 0xa7502
leaq 0x46f39(%rip), %rdx     # 0xa74f2
leaq -0x200(%rbp), %rdi
leaq -0x110(%rbp), %rcx
leaq -0x218(%rbp), %r8
callq 0x595d0
jmp 0x605d5
leaq -0x218(%rbp), %rdi
callq 0x57740
leaq -0x200(%rbp), %rdi
callq 0x57670
testb $0x1, %al
jne 0x605f6
jmp 0x60944
jmp 0x609fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60667
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, -0x300(%rbp)
addq $0x18, %rax
movq %rax, -0x2f8(%rbp)
movq -0x2f8(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x308(%rbp)
callq 0x57560
movq -0x300(%rbp), %rcx
movq -0x308(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2f8(%rbp)
jne 0x60634
jmp 0x60667
leaq -0x62(%rbp), %rdi
callq 0x575c0
testb $0x1, -0x75(%rbp)
jne 0x60678
jmp 0x606bc
movq -0x50(%rbp), %rax
leaq -0x48(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x310(%rbp)
je 0x606ba
movq -0x310(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x318(%rbp)
callq 0x57560
movq -0x318(%rbp), %rax
leaq -0x48(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x310(%rbp)
jne 0x6068c
jmp 0x606bc
jmp 0x60a49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60a40
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, -0x320(%rbp)
je 0x60729
movq -0x320(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x328(%rbp)
callq 0x57740
movq -0x328(%rbp), %rax
leaq -0xc0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x320(%rbp)
jne 0x606f8
jmp 0x607a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60751
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, -0x338(%rbp)
addq $0x18, %rax
movq %rax, -0x330(%rbp)
movq -0x330(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x340(%rbp)
callq 0x57740
movq -0x338(%rbp), %rcx
movq -0x340(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x330(%rbp)
jne 0x60776
jmp 0x607a9
testb $0x1, -0xca(%rbp)
jne 0x607b4
jmp 0x607c5
movq -0x268(%rbp), %rdi
movl $0x20, %esi
callq 0x52600
jmp 0x60a40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x616b0
jmp 0x60a40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x608ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x608a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60895
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60889
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x1e9(%rbp), %rdi
callq 0x57540
leaq -0x180(%rbp), %rax
movq %rax, -0x350(%rbp)
addq $0x60, %rax
movq %rax, -0x348(%rbp)
movq -0x348(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x358(%rbp)
callq 0x57560
movq -0x350(%rbp), %rcx
movq -0x358(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x348(%rbp)
jne 0x60856
jmp 0x60889
leaq -0x1e7(%rbp), %rdi
callq 0x575c0
leaq -0x1cf(%rbp), %rdi
callq 0x575c0
leaq -0x1b7(%rbp), %rdi
callq 0x575c0
leaq -0x19f(%rbp), %rdi
callq 0x575c0
testb $0x1, -0x1e8(%rbp)
jne 0x608c4
jmp 0x60911
movq -0x188(%rbp), %rax
leaq -0x180(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x360(%rbp)
je 0x6090f
movq -0x360(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x368(%rbp)
callq 0x57560
movq -0x368(%rbp), %rax
leaq -0x180(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x360(%rbp)
jne 0x608de
jmp 0x60911
jmp 0x60a40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60a34
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x57740
jmp 0x60a34
leaq -0x220(%rbp), %rdi
callq 0x6f710
jmp 0x60952
leaq -0x200(%rbp), %rdi
callq 0x57690
movq %rax, -0x370(%rbp)
jmp 0x60967
movq -0x370(%rbp), %r8
leaq 0x46a4c(%rip), %rdx     # 0xa73c1
leaq -0x228(%rbp), %rdi
movl $0x1, %esi
movl $0x9c, %ecx
callq 0x6c940
jmp 0x6098d
leaq -0x228(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x6ca00
jmp 0x609a2
leaq -0x228(%rbp), %rdi
callq 0x6c9c0
leaq -0x220(%rbp), %rdi
callq 0x576b0
jmp 0x609fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x60a28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x609f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x6c9c0
leaq -0x220(%rbp), %rdi
callq 0x576b0
jmp 0x60a28
leaq -0x200(%rbp), %rdi
callq 0x576d0
leaq -0x110(%rbp), %rdi
callq 0x57740
leaq -0x20(%rbp), %rdi
callq 0x57740
addq $0x370, %rsp            # imm = 0x370
popq %rbp
retq
leaq -0x200(%rbp), %rdi
callq 0x576d0
leaq -0x110(%rbp), %rdi
callq 0x57740
leaq -0x20(%rbp), %rdi
callq 0x57740
movq -0x70(%rbp), %rdi
callq 0x52bc0
nopw %cs:(%rax,%rax)