// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::PinPulser::Create(rgb_matrix::GPIO*, unsigned int, std::vector<int, std::allocator<int>> const&)
PinPulser *PinPulser::Create(GPIO *io, uint32_t gpio_mask,
                             const std::vector<int> &nano_wait_spec) {
  // The only implementation so far.
  if (!Timers::Init()) return NULL;
  if (HardwarePinPulser::CanHandle(gpio_mask)) {
    return new HardwarePinPulser(gpio_mask, nano_wait_spec);
  } else {
    return new TimerBasedPinPulser(io, gpio_mask, nano_wait_spec);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
callq 0x2790
movl %eax, %ebx
movzbl %al, %edi
movl $0x3000, %esi           # imm = 0x3000
callq 0x270d
testq %rax, %rax
je 0x2a53
addq $0x4, %rax
movq %rax, 0x5940(%rip)      # 0x81b0
leaq 0x2b0(%rip), %rax       # 0x2b27
leaq 0x2d6(%rip), %rcx       # 0x2b54
testb %bl, %bl
cmovneq %rax, %rcx
movq %rcx, 0x590d(%rip)      # 0x8198
cmpl $0x40000, %ebp          # imm = 0x40000
jne 0x2a57
movl $0x58, %edi
callq 0x2190
movq %rax, %rbx
leaq 0x52cd(%rip), %rax      # 0x7b78
movq %rax, (%rbx)
leaq 0x8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x20(%rbx), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movups %xmm0, 0x28(%rbx)
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
je 0x2934
xorl %r15d, %r15d
leaq 0xc(%rsp), %r13
movslq (%rax,%r15,4), %rdx
imulq $0x10624dd3, %rdx, %rdx # imm = 0x10624DD3
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x26, %rdx
addl %esi, %edx
movl %edx, 0xc(%rsp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x2910
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x2922
movq %r12, %rdi
movq %r13, %rdx
callq 0x2dda
movq (%r14), %rax
movq 0x8(%r14), %rcx
incq %r15
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rdx, %r15
jb 0x28de
movl (%rax), %r15d
callq 0x2790
movzbl %al, %ebp
movl $0x200000, %esi         # imm = 0x200000
movl %ebp, %edi
callq 0x270d
movq %rax, %r13
movl $0x20c000, %esi         # imm = 0x20C000
movl %ebp, %edi
callq 0x270d
movq %rax, 0x38(%rbx)
movl $0x101000, %esi         # imm = 0x101000
movl %ebp, %edi
callq 0x270d
movq %rax, 0x48(%rbx)
movq 0x38(%rbx), %rcx
leaq 0x18(%rcx), %rdx
movq %rdx, 0x40(%rbx)
testq %rax, %rax
je 0x2a93
testq %rcx, %rcx
je 0x2a93
movl $0xf8ffffff, %eax       # imm = 0xF8FFFFFF
andl 0x4(%r13), %eax
orl $0x2000000, %eax        # imm = 0x2000000
movl %eax, 0x4(%r13)
leal 0x3(%r15), %eax
testl %r15d, %r15d
cmovnsl %r15d, %eax
sarl $0x2, %eax
cmpl $0x1000, %eax           # imm = 0x1000
jae 0x2ab2
movq 0x38(%rbx), %rcx
movq 0x48(%rbx), %rdx
movl $0x70, (%rcx)
movl $0x5a000020, 0xa0(%rdx) # imm = 0x5A000020
movl $0x5a000006, 0xa0(%rdx) # imm = 0x5A000006
shll $0xc, %eax
orl $0x5a000000, %eax       # imm = 0x5A000000
movl %eax, 0xa4(%rdx)
movl $0x5a000016, 0xa0(%rdx) # imm = 0x5A000016
movq (%r14), %rcx
movq 0x8(%r14), %rdi
cmpq %rcx, %rdi
je 0x2a81
xorl %ebp, %ebp
leaq 0x8(%rsp), %r13
movl (%rcx,%rbp,4), %eax
addl %eax, %eax
cltd
idivl %r15d
movl %eax, 0x8(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x2a2b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x2a3f
movq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x2f16
movq (%r14), %rcx
movq 0x8(%r14), %rdi
incq %rbp
movq %rdi, %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %rax, %rbp
jb 0x2a08
jmp 0x2a81
xorl %ebx, %ebx
jmp 0x2a81
movl $0x30, %edi
callq 0x2190
movq %rax, %rbx
leaq 0x5155(%rip), %rax      # 0x7bc0
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movl %ebp, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x3052
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26eb(%rip), %rdi      # 0x5185
leaq 0x2670(%rip), %rsi      # 0x5111
leaq 0x2671(%rip), %rcx      # 0x5119
movl $0x128, %edx            # imm = 0x128
callq 0x2110
leaq 0x270f(%rip), %rdi      # 0x51c8
leaq 0x2651(%rip), %rsi      # 0x5111
leaq 0x2713(%rip), %rcx      # 0x51da
movl $0x175, %edx            # imm = 0x175
callq 0x2110
jmp 0x2ae1
movq %rax, %r14
movl $0x30, %esi
jmp 0x2b17
jmp 0x2ae1
jmp 0x2ae1
movq %rax, %r14
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2af9
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x2b12
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movl $0x58, %esi
movq %rbx, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x22a0