// File: /workspace/github_cpp_makefile_star2_O1/interimadd[P]M5Stack-PixelArt/test/pixel_art_manager_test.cpp
// Function: (anonymous namespace)::TestPixelArtManager_DrawDoubleScalePixelArt_Test::TestBody()
TEST_F(TestPixelArtManager, DrawDoubleScalePixelArt)
  {
    int pos_x = 1, pos_y = 0, scale = 2;
    MonochromePixelArt pixel_art = {
      {1, 0},
      {0, 1}
    };
    mng->drawPixelArt(pixel_art, pos_x, pos_y, scale);

    LCDState expect_state = {
      {0, 1, 1, 0, 0, 0},
      {0, 1, 1, 0, 0, 0},
      {0, 0, 0, 1, 1, 0},
      {0, 0, 0, 1, 1, 0}
    };
    EXPECT_EQ(expect_state, lcd->getState());
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdi, %rbx
leaq 0x98(%rsp), %rsi
movw $0x1, (%rsi)
leaq 0x38(%rsp), %r15
leaq 0x10(%rsp), %rcx
movl $0x2, %edx
movq %r15, %rdi
callq 0x20d70
leaq 0x50(%rsp), %r14
leaq 0x18(%rsp), %rsi
movw $0x100, (%rsi)          # imm = 0x100
leaq 0x32(%rsp), %rcx
movl $0x2, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0xc8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x2c(%rsp), %rcx
movl $0x2, %edx
callq 0x20db4
movl $0x30, %r14d
movq 0x20(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x224cb
movq 0x30(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x224b4
movq 0x18(%rbx), %r14
leaq 0xb0(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x2133c
leaq 0xb0(%rsp), %rsi
movq %r14, %rdi
movl $0x1, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x275b6
leaq 0xb0(%rsp), %rdi
callq 0x20e26
leaq 0x18(%rsp), %rsi
movl $0x10100, (%rsi)        # imm = 0x10100
movw $0x0, 0x4(%rsi)
leaq 0x38(%rsp), %r15
leaq 0xf(%rsp), %rcx
movl $0x6, %edx
movq %r15, %rdi
callq 0x20d70
leaq 0x50(%rsp), %r14
leaq 0x10(%rsp), %rsi
movl $0x10100, (%rsi)        # imm = 0x10100
movw $0x0, 0x4(%rsi)
leaq 0xe(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x68(%rsp), %r14
leaq 0x32(%rsp), %rsi
movl $0x1000000, (%rsi)      # imm = 0x1000000
movw $0x1, 0x4(%rsi)
leaq 0xd(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x80(%rsp), %r14
leaq 0x2c(%rsp), %rsi
movl $0x1000000, (%rsi)      # imm = 0x1000000
movw $0x1, 0x4(%rsi)
leaq 0xc(%rsp), %rcx
movl $0x6, %edx
movq %r14, %rdi
callq 0x20d70
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0xb(%rsp), %rcx
movl $0x4, %edx
callq 0x20db4
movl $0x60, %r14d
movq 0x20(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x225f0
movq 0x30(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
jne 0x225d9
movq 0x10(%rbx), %rsi
leaq 0x38(%rsp), %rdi
callq 0x2133c
leaq 0x26ef7(%rip), %rsi     # 0x49502
leaq 0x26ee0(%rip), %rdx     # 0x494f2
leaq 0x18(%rsp), %rdi
leaq 0x98(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x2160b
leaq 0x38(%rsp), %rdi
callq 0x20e26
cmpb $0x0, 0x18(%rsp)
jne 0x226c1
leaq 0x38(%rsp), %rdi
callq 0x2a416
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x22657
movq (%rax), %r8
jmp 0x2265e
leaq 0x2980c(%rip), %r8      # 0x4be6a
leaq 0x26d5c(%rip), %rdx     # 0x493c1
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x4e, %ecx
callq 0x280e0
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x2817e
leaq 0x10(%rsp), %rdi
callq 0x2814c
cmpq $0x0, 0x38(%rsp)
je 0x226c1
movl $0x1, %edi
callq 0x280dc
testb %al, %al
je 0x226b8
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x226b8
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x38(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x212e8
leaq 0x98(%rsp), %rdi
callq 0x20e26
leaq 0xc8(%rsp), %rdi
callq 0x20e26
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x22723
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2814c
jmp 0x22708
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20dfe
jmp 0x22717
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20e10
jmp 0x2273d
movq %rax, %rdi
callq 0x20d60
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20e26
jmp 0x2273d
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x227ad
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x1db6e
movb $0x1, %al
jmp 0x22773
jmp 0x22764
jmp 0x22764
movq %rax, %rbx
xorl %eax, %eax
jmp 0x22773
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x227b2
leaq 0x38(%rsp), %r15
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x22797
movq -0x8(%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
cmpq %r15, %r14
jne 0x22782
jmp 0x227b2
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x20e26
leaq 0xc8(%rsp), %rdi
callq 0x20e26
movq %rbx, %rdi
callq 0x1d900
movq %rax, %rbx
jmp 0x227b2
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x1db3e
movb $0x1, %al
jmp 0x227f1
movq %rax, %rbx
xorl %eax, %eax
jmp 0x227f1
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x227bf
leaq 0x38(%rsp), %r15
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x22815
movq -0x8(%r14), %rsi
subq %rdi, %rsi
callq 0x1d460
addq $-0x18, %r14
cmpq %r15, %r14
jne 0x22800
jmp 0x227bf