// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a3e
addq $0x4, %rax
movq %rax, 0x5940(%rip)      # 0x81b0
leaq 0x29b(%rip), %rax       # 0x2b12
leaq 0x2c1(%rip), %rcx       # 0x2b3f
testb %bl, %bl
cmovneq %rax, %rcx
movq %rcx, 0x590d(%rip)      # 0x8198
cmpl $0x40000, %ebp          # imm = 0x40000
jne 0x2a42
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
cmpq %rax, 0x8(%r14)
je 0x292e
xorl %r15d, %r15d
leaq 0xc(%rsp), %r13
movslq (%rax,%r15,4), %rax
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x26, %rax
addl %ecx, %eax
movl %eax, 0xc(%rsp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x290d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x2918
movq %r12, %rdi
movq %r13, %rdx
callq 0x2dc4
incq %r15
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %r15
jb 0x28db
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 0x2a7e
testq %rcx, %rcx
je 0x2a7e
movl $0xf8ffffff, %edx       # imm = 0xF8FFFFFF
andl 0x4(%r13), %edx
orl $0x2000000, %edx        # imm = 0x2000000
movl %edx, 0x4(%r13)
leal 0x3(%r15), %edx
testl %r15d, %r15d
cmovnsl %r15d, %edx
sarl $0x2, %edx
cmpl $0x1000, %edx           # imm = 0x1000
jae 0x2a9d
movl $0x70, (%rcx)
movl $0x5a000020, 0xa0(%rax) # imm = 0x5A000020
movl $0x5a000006, 0xa0(%rax) # imm = 0x5A000006
shll $0xc, %edx
orl $0x5a000000, %edx       # imm = 0x5A000000
movl %edx, 0xa4(%rax)
movl $0x5a000016, 0xa0(%rax) # imm = 0x5A000016
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x2a6c
xorl %ebp, %ebp
leaq 0x8(%rsp), %r13
movl (%rax,%rbp,4), %eax
addl %eax, %eax
cltd
idivl %r15d
movl %eax, 0x8(%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x2a19
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x2a26
movq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x2f00
incq %rbp
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %rbp
jb 0x29f6
jmp 0x2a6c
xorl %ebx, %ebx
jmp 0x2a6c
movl $0x30, %edi
callq 0x2190
movq %rax, %rbx
leaq 0x516a(%rip), %rax      # 0x7bc0
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movl %ebp, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x303c
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2700(%rip), %rdi      # 0x5185
leaq 0x2685(%rip), %rsi      # 0x5111
leaq 0x2686(%rip), %rcx      # 0x5119
movl $0x128, %edx            # imm = 0x128
callq 0x2110
leaq 0x2724(%rip), %rdi      # 0x51c8
leaq 0x2666(%rip), %rsi      # 0x5111
leaq 0x2728(%rip), %rcx      # 0x51da
movl $0x175, %edx            # imm = 0x175
callq 0x2110
jmp 0x2acc
movq %rax, %r14
movl $0x30, %esi
jmp 0x2b02
jmp 0x2acc
jmp 0x2acc
movq %rax, %r14
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2ae4
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x2afd
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movl $0x58, %esi
movq %rbx, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x22a0