// File: /workspace/github_cpp_makefile_star2_O2/merelin[P]mediasmartserverd/src/led_acerh340.h
// Function: LedAcerH340::Init()
virtual bool Init( ) {
		// initialise SCH5127
		if ( !LedControlSCH5127Base::Init() ) return false;
		
		// set up io permissions to other ports we may use
		if ( ioperm(io_sch5127_regs_ + REG_HWM_INDEX, 1, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_HWM_DATA,  1, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_GP1,       4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_GP2,       4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_GP3,       4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_GP4,       4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_GP5,       4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_sch5127_regs_ + REG_GP6,       4, 1) ) throw ErrnoException("ioperm");
		
		//
		if ( ioperm(io_lpc_gpiobase_ + GPO_BLINK,	4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_lpc_gpiobase_ + GP_IO_SEL,	4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_lpc_gpiobase_ + GP_IO_SEL2,	4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_lpc_gpiobase_ + GP_LVL,		4, 1) ) throw ErrnoException("ioperm");
		if ( ioperm(io_lpc_gpiobase_ + GP_LVL2,		4, 1) ) throw ErrnoException("ioperm");
		
		enableLeds_( );
		
		return true;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
callq 0x7a5a
movl %eax, %ebp
testb %al, %al
je 0x747f
movl 0xc(%rbx), %edi
addl $0x70, %edi
pushq $0x1
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x748a
movl 0xc(%rbx), %edi
addl $0x71, %edi
pushq $0x1
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x74df
movl 0xc(%rbx), %edi
addl $0x4b, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7534
movl 0xc(%rbx), %edi
addl $0x4c, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7589
movl 0xc(%rbx), %edi
addl $0x4d, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x75de
movl 0xc(%rbx), %edi
addl $0x4e, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7633
movl 0xc(%rbx), %edi
addl $0x4f, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7688
movl 0xc(%rbx), %edi
addl $0x50, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x76dd
movl 0x8(%rbx), %edi
addl $0x18, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7732
movl 0x8(%rbx), %edi
addl $0x4, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7787
movl 0x8(%rbx), %edi
addl $0x34, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x77dc
movl 0x8(%rbx), %edi
addl $0xc, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7831
movl 0x8(%rbx), %edi
addl $0x38, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x7883
movq %rbx, %rdi
callq 0x804e
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x366e(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x8215(%rip), %rsi      # 0xf6e0
movq 0x8ace(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x3619(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x81c0(%rip), %rsi      # 0xf6e0
movq 0x8a79(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x35c4(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x816b(%rip), %rsi      # 0xf6e0
movq 0x8a24(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x356f(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x8116(%rip), %rsi      # 0xf6e0
movq 0x89cf(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x351a(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x80c1(%rip), %rsi      # 0xf6e0
movq 0x897a(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x34c5(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x806c(%rip), %rsi      # 0xf6e0
movq 0x8925(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x3470(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x8017(%rip), %rsi      # 0xf6e0
movq 0x88d0(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x341b(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x7fc2(%rip), %rsi      # 0xf6e0
movq 0x887b(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x33c6(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x7f6d(%rip), %rsi      # 0xf6e0
movq 0x8826(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x3371(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x7f18(%rip), %rsi      # 0xf6e0
movq 0x87d1(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x331c(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x7ec3(%rip), %rsi      # 0xf6e0
movq 0x877c(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x32c7(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x7e6e(%rip), %rsi      # 0xf6e0
movq 0x8727(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x78d3
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x3275(%rip), %rsi      # 0xab0a
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5694
callq 0x4030
movl (%rax), %edx
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x56d0
xorl %ebp, %ebp
leaq 0x7e1c(%rip), %rsi      # 0xf6e0
movq 0x86d5(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
jmp 0x7903
jmp 0x7917
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4150
testb %bpl, %bpl
jne 0x791a
jmp 0x7922
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
movq %r14, %rdi
callq 0x4550