// File: /workspace/github_cpp_makefile_star2_O2/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), %rdi
pushq $0x2
popq %rdx
leaq 0x10(%rsp), %rcx
callq 0x2795e
leaq 0x50(%rsp), %r14
leaq 0x18(%rsp), %rsi
movw $0x100, (%rsi)          # imm = 0x100
pushq $0x2
popq %rdx
leaq 0x30(%rsp), %rcx
movq %r14, %rdi
callq 0x2795e
leaq 0xc8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x28(%rsp), %rcx
callq 0x27994
pushq $0x18
popq %r15
leaq (%rsp,%r15), %rdi
addq $0x38, %rdi
callq 0x27a48
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x28e7b
movq 0x18(%rbx), %r15
leaq 0xb0(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x27ed2
leaq 0xb0(%rsp), %rsi
pushq $0x1
popq %rdx
pushq $0x2
popq %r8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x2d424
leaq 0xb0(%rsp), %rdi
callq 0x279ce
leaq 0x18(%rsp), %rsi
movl $0x10100, (%rsi)        # imm = 0x10100
andw $0x0, 0x4(%rsi)
leaq 0x38(%rsp), %r15
pushq $0x6
popq %rdx
leaq 0xf(%rsp), %rcx
movq %r15, %rdi
callq 0x2795e
leaq 0x10(%rsp), %rsi
movl $0x10100, (%rsi)        # imm = 0x10100
andw $0x0, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xe(%rsp), %rcx
movq %r14, %rdi
callq 0x2795e
leaq 0x68(%rsp), %r14
leaq 0x30(%rsp), %rsi
movl $0x1000000, (%rsi)      # imm = 0x1000000
movw $0x1, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xd(%rsp), %rcx
movq %r14, %rdi
callq 0x2795e
leaq 0x80(%rsp), %r14
leaq 0x28(%rsp), %rsi
movl $0x1000000, (%rsi)      # imm = 0x1000000
movw $0x1, 0x4(%rsi)
pushq $0x6
popq %rdx
leaq 0xc(%rsp), %rcx
movq %r14, %rdi
callq 0x2795e
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
pushq $0x4
popq %rdx
leaq 0xb(%rsp), %rcx
callq 0x27994
pushq $0x48
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x38, %rdi
callq 0x27a48
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x28f83
movq 0x10(%rbx), %rsi
leaq 0x38(%rsp), %rdi
callq 0x27ed2
leaq 0x1c553(%rip), %rsi     # 0x45502
leaq 0x1c53c(%rip), %rdx     # 0x454f2
leaq 0x18(%rsp), %rdi
leaq 0x98(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x281b7
leaq 0x38(%rsp), %rdi
callq 0x279ce
cmpb $0x0, 0x18(%rsp)
jne 0x29038
leaq 0x38(%rsp), %rdi
callq 0x2f572
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x28ff7
movq (%rax), %r8
jmp 0x28ffe
leaq 0x1ee6c(%rip), %r8      # 0x47e6a
leaq 0x1c3bc(%rip), %rdx     # 0x453c1
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
pushq $0x4e
popq %rcx
callq 0x2dddc
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x2de5a
leaq 0x10(%rsp), %rdi
callq 0x2de3c
leaq 0x38(%rsp), %rdi
callq 0x27e3a
leaq 0x20(%rsp), %rdi
callq 0x27e80
leaq 0x98(%rsp), %rdi
callq 0x279ce
leaq 0xc8(%rsp), %rdi
callq 0x279ce
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2de3c
jmp 0x2907b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x27e3a
jmp 0x2908a
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x27e80
jmp 0x290a8
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x279ce
jmp 0x290a8
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x290f9
movq %rax, %rbx
pushq $0x48
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x38, %rdi
callq 0x27a48
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x290b9
jmp 0x29103
jmp 0x290d6
jmp 0x290d6
movq %rax, %rbx
addq $-0x18, %r14
movq %r14, %rdi
callq 0x27a48
cmpq %r15, %r14
jne 0x290d9
jmp 0x29103
jmp 0x29100
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x279ce
jmp 0x29103
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x279ce
movq %rbx, %rdi
callq 0x25930
movq %rax, %rbx
pushq $0x18
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x38, %rdi
callq 0x27a48
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x2911f
jmp 0x29110
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x27a48
jmp 0x29110
movq %rax, %rbx
jmp 0x29110