// File: /workspace/github_cpp_makefile_star2_O2/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 0x2700
movl %eax, %ebx
movzbl %al, %edi
movl $0x3000, %esi           # imm = 0x3000
callq 0x2669
testq %rax, %rax
je 0x2865
addq $0x4, %rax
movq %rax, 0x59d4(%rip)      # 0x81b0
leaq 0x236(%rip), %rax       # 0x2a19
leaq 0x24f(%rip), %rcx       # 0x2a39
testb %bl, %bl
cmovneq %rax, %rcx
movq %rcx, 0x59a1(%rip)      # 0x8198
cmpl $0x40000, %ebp          # imm = 0x40000
jne 0x286c
pushq $0x58
popq %rdi
callq 0x2190
leaq 0x536a(%rip), %rcx      # 0x7b78
movq %rcx, (%rax)
leaq 0x8(%rax), %r15
leaq 0x20(%rax), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movq %rax, (%rsp)
movups %xmm0, 0x28(%rax)
xorl %ebp, %ebp
movl $0x3e8, %ebx            # imm = 0x3E8
leaq 0xc(%rsp), %r13
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %rbp
jae 0x2899
movl (%rax,%rbp,4), %eax
cltd
idivl %ebx
movl %eax, 0xc(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x2c46
incq %rbp
jmp 0x2838
xorl %ebx, %ebx
jmp 0x2991
pushq $0x30
popq %rdi
callq 0x2190
movq %rax, %rbx
leaq 0x5342(%rip), %rax      # 0x7bc0
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movl %ebp, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x2fa4
jmp 0x2991
movl (%rax), %ebp
callq 0x2700
movzbl %al, %r13d
movl $0x200000, %esi         # imm = 0x200000
movl %r13d, %edi
movq (%rsp), %rbx
callq 0x2669
movq %rax, 0x10(%rsp)
movl $0x20c000, %esi         # imm = 0x20C000
movl %r13d, %edi
callq 0x2669
movq %rax, 0x38(%rbx)
movl $0x101000, %esi         # imm = 0x101000
movl %r13d, %edi
callq 0x2669
movq %rax, %rcx
movq %rax, 0x48(%rbx)
movq 0x38(%rbx), %rsi
leaq 0x18(%rsi), %rax
movq %rax, 0x40(%rbx)
testq %rcx, %rcx
je 0x29a3
testq %rsi, %rsi
je 0x29a3
movl $0xf8ffffff, %eax       # imm = 0xF8FFFFFF
movq 0x10(%rsp), %rdx
andl 0x4(%rdx), %eax
orl $0x2000000, %eax        # imm = 0x2000000
movl %eax, 0x4(%rdx)
pushq $0x4
popq %rdi
movl %ebp, %eax
cltd
idivl %edi
cmpl $0x1000, %eax           # imm = 0x1000
jae 0x29c2
movl $0x70, (%rsi)
movl $0x5a000020, 0xa0(%rcx) # imm = 0x5A000020
movl $0x5a000006, 0xa0(%rcx) # imm = 0x5A000006
shll $0xc, %eax
orl $0x5a000000, %eax       # imm = 0x5A000000
movl %eax, 0xa4(%rcx)
movl $0x5a000016, 0xa0(%rcx) # imm = 0x5A000016
xorl %ebx, %ebx
leaq 0x8(%rsp), %r13
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %rbx
jae 0x298d
movl (%rax,%rbx,4), %eax
addl %eax, %eax
cltd
idivl %ebp
movl %eax, 0x8(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x2ddc
incq %rbx
jmp 0x295e
movq (%rsp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27db(%rip), %rdi      # 0x5185
leaq 0x2760(%rip), %rsi      # 0x5111
leaq 0x2761(%rip), %rcx      # 0x5119
movl $0x128, %edx            # imm = 0x128
callq 0x2110
leaq 0x27ff(%rip), %rdi      # 0x51c8
leaq 0x2741(%rip), %rsi      # 0x5111
leaq 0x2803(%rip), %rcx      # 0x51da
movl $0x175, %edx            # imm = 0x175
callq 0x2110
jmp 0x29f2
movq %rax, %r14
pushq $0x30
popq %rsi
movq %rbx, %rdi
jmp 0x2a0c
jmp 0x29f2
jmp 0x29f2
movq %rax, %r14
movq %r12, %rdi
callq 0x2f68
movq %r15, %rdi
callq 0x2f86
pushq $0x58
popq %rsi
movq (%rsp), %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x22a0