// File: /workspace/github_cpp_makefile_star2_O2/merelin[P]mediasmartserverd/src/led_hpex485.h
// Function: LedHpEx48X::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_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 0x9437
movl 0xc(%rbx), %edi
addl $0x70, %edi
pushq $0x1
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x9442
movl 0xc(%rbx), %edi
addl $0x71, %edi
pushq $0x1
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x9497
movl 0x8(%rbx), %edi
addl $0x18, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x94ec
movl 0x8(%rbx), %edi
addl $0x4, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x9541
movl 0x8(%rbx), %edi
addl $0x34, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x9596
movl 0x8(%rbx), %edi
addl $0xc, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x95eb
movl 0x8(%rbx), %edi
addl $0x38, %edi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
callq 0x44e0
testl %eax, %eax
jne 0x963d
movq %rbx, %rdi
callq 0x97f4
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x16b6(%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 0x625d(%rip), %rsi      # 0xf6e0
movq 0x6b16(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x968d
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x1661(%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 0x6208(%rip), %rsi      # 0xf6e0
movq 0x6ac1(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x968d
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x160c(%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 0x61b3(%rip), %rsi      # 0xf6e0
movq 0x6a6c(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x968d
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x15b7(%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 0x615e(%rip), %rsi      # 0xf6e0
movq 0x6a17(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x968d
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x1562(%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 0x6109(%rip), %rsi      # 0xf6e0
movq 0x69c2(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x968d
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x150d(%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 0x60b4(%rip), %rsi      # 0xf6e0
movq 0x696d(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x968d
pushq $0x10
popq %rdi
callq 0x4160
movq %rax, %rbx
leaq 0x14bb(%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 0x6062(%rip), %rsi      # 0xf6e0
movq 0x691b(%rip), %rdx      # 0xffa0
movq %rbx, %rdi
callq 0x4530
jmp 0x96a5
jmp 0x96b9
jmp 0x96a5
jmp 0x96b9
jmp 0x96a5
jmp 0x96b9
jmp 0x96a5
jmp 0x96b9
jmp 0x96a5
jmp 0x96b9
jmp 0x96a5
jmp 0x96b9
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4150
testb %bpl, %bpl
jne 0x96bc
jmp 0x96c4
movq %rax, %r14
movq %rbx, %rdi
callq 0x4220
movq %r14, %rdi
callq 0x4550