	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_initChip              ## -- Begin function rtl8366s_initChip
	.p2align	4, 0x90
_rtl8366s_initChip:                     ## @rtl8366s_initChip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$920, %rsp                      ## imm = 0x398
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -952(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTL8366S_LED_GROUP_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -944(%rbp)                ## 8-byte Spill
	leaq	l___const.rtl8366s_initChip.chipB(%rip), %rsi
	leaq	-624(%rbp), %r14
	movl	$576, %edx                      ## imm = 0x240
	movq	%r14, %rdi
	callq	_memcpy
	leaq	l___const.rtl8366s_initChip.chipDefault(%rip), %rsi
	leaq	-928(%rbp), %rdi
	movl	$296, %edx                      ## imm = 0x128
	callq	_memcpy
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_RTL8366S_LEDCONF_LEDFORCE@GOTPCREL(%rip), %r15
	movq	-944(%rbp), %r13                ## 8-byte Reload
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_rtl8366s_getLedConfig
	testq	%rax, %rax
	jne	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_rtl8366s_setLedConfig
	testq	%rax, %rax
	jne	LBB0_24
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	_RTL8366S_LED_GROUP_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rtl8366s_setLedForceValue
	testq	%rax, %rax
	jne	LBB0_23
## %bb.6:
	movq	_RTL8366S_MODEL_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-932(%rbp), %rsi
	callq	_rtl8366_readRegister
	testq	%rax, %rax
	je	LBB0_7
LBB0_23:
	movl	$-1, %r12d
LBB0_24:
	movq	-952(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-932(%rbp), %esi
	cmpl	$128, %esi
	je	LBB0_10
## %bb.8:
	testl	%esi, %esi
	je	LBB0_11
## %bb.9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_23
LBB0_10:
	leaq	-928(%rbp), %r14
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBG
	movl	(%r14), %edi
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	je	LBB0_19
## %bb.12:
	addq	$8, %r14
	movq	_RTL8366S_PHY_ACCESS_CTRL_REG@GOTPCREL(%rip), %r13
	movq	_RTL8366S_PHY_CTRL_WRITE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r14), %esi
	cmpl	$43981, %esi                    ## imm = 0xABCD
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%edi, %eax
	notl	%eax
	testl	$48640, %eax                    ## imm = 0xBE00
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %edi
	movl	(%rbx), %esi
	callq	_rtl8366_writeRegister
	testq	%rax, %rax
	jne	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-8(%r14), %edi
	movl	-4(%r14), %esi
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_rtl8366_writeRegister
	testq	%rax, %rax
	jne	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r14), %edi
	addq	$8, %r14
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	jne	LBB0_14
LBB0_19:
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_udelay
	movq	_RTL8366S_LED_GROUP_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_24
## %bb.20:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-944(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	movl	%ebx, %edi
	callq	_rtl8366s_setLedConfig
	testq	%rax, %rax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rbx
	movq	_RTL8366S_LED_GROUP_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
	jmp	LBB0_24
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8366S_LED_GROUP_MAX,4,2     ## @RTL8366S_LED_GROUP_MAX
	.section	__TEXT,__const
	.p2align	4                               ## @__const.rtl8366s_initChip.chipB
l___const.rtl8366s_initChip.chipB:
	.long	0                               ## 0x0
	.long	56                              ## 0x38
	.long	33024                           ## 0x8100
	.long	6967                            ## 0x1b37
	.long	48686                           ## 0xbe2e
	.long	31647                           ## 0x7b9f
	.long	48683                           ## 0xbe2b
	.long	42184                           ## 0xa4c8
	.long	48756                           ## 0xbe74
	.long	44308                           ## 0xad14
	.long	48684                           ## 0xbe2c
	.long	56320                           ## 0xdc00
	.long	48745                           ## 0xbe69
	.long	53775                           ## 0xd20f
	.long	48699                           ## 0xbe3b
	.long	46100                           ## 0xb414
	.long	48676                           ## 0xbe24
	.long	0                               ## 0x0
	.long	48675                           ## 0xbe23
	.long	161                             ## 0xa1
	.long	48674                           ## 0xbe22
	.long	8                               ## 0x8
	.long	48673                           ## 0xbe21
	.long	288                             ## 0x120
	.long	48672                           ## 0xbe20
	.long	4096                            ## 0x1000
	.long	48676                           ## 0xbe24
	.long	2048                            ## 0x800
	.long	48676                           ## 0xbe24
	.long	0                               ## 0x0
	.long	48676                           ## 0xbe24
	.long	61440                           ## 0xf000
	.long	48675                           ## 0xbe23
	.long	57089                           ## 0xdf01
	.long	48674                           ## 0xbe22
	.long	57120                           ## 0xdf20
	.long	48673                           ## 0xbe21
	.long	4122                            ## 0x101a
	.long	48672                           ## 0xbe20
	.long	41215                           ## 0xa0ff
	.long	48676                           ## 0xbe24
	.long	63488                           ## 0xf800
	.long	48676                           ## 0xbe24
	.long	61440                           ## 0xf000
	.long	578                             ## 0x242
	.long	703                             ## 0x2bf
	.long	581                             ## 0x245
	.long	703                             ## 0x2bf
	.long	584                             ## 0x248
	.long	703                             ## 0x2bf
	.long	587                             ## 0x24b
	.long	703                             ## 0x2bf
	.long	590                             ## 0x24e
	.long	703                             ## 0x2bf
	.long	593                             ## 0x251
	.long	703                             ## 0x2bf
	.long	560                             ## 0x230
	.long	2610                            ## 0xa32
	.long	563                             ## 0x233
	.long	2610                            ## 0xa32
	.long	566                             ## 0x236
	.long	2610                            ## 0xa32
	.long	569                             ## 0x239
	.long	2610                            ## 0xa32
	.long	572                             ## 0x23c
	.long	2610                            ## 0xa32
	.long	575                             ## 0x23f
	.long	2610                            ## 0xa32
	.long	596                             ## 0x254
	.long	2623                            ## 0xa3f
	.long	597                             ## 0x255
	.long	100                             ## 0x64
	.long	598                             ## 0x256
	.long	2623                            ## 0xa3f
	.long	599                             ## 0x257
	.long	100                             ## 0x64
	.long	600                             ## 0x258
	.long	2623                            ## 0xa3f
	.long	601                             ## 0x259
	.long	100                             ## 0x64
	.long	602                             ## 0x25a
	.long	2623                            ## 0xa3f
	.long	603                             ## 0x25b
	.long	100                             ## 0x64
	.long	604                             ## 0x25c
	.long	2623                            ## 0xa3f
	.long	605                             ## 0x25d
	.long	100                             ## 0x64
	.long	606                             ## 0x25e
	.long	2623                            ## 0xa3f
	.long	607                             ## 0x25f
	.long	100                             ## 0x64
	.long	608                             ## 0x260
	.long	376                             ## 0x178
	.long	609                             ## 0x261
	.long	500                             ## 0x1f4
	.long	610                             ## 0x262
	.long	800                             ## 0x320
	.long	611                             ## 0x263
	.long	20                              ## 0x14
	.long	541                             ## 0x21d
	.long	37449                           ## 0x9249
	.long	542                             ## 0x21e
	.long	0                               ## 0x0
	.long	256                             ## 0x100
	.long	4                               ## 0x4
	.long	48714                           ## 0xbe4a
	.long	41140                           ## 0xa0b4
	.long	48704                           ## 0xbe40
	.long	39936                           ## 0x9c00
	.long	48705                           ## 0xbe41
	.long	20509                           ## 0x501d
	.long	48712                           ## 0xbe48
	.long	13826                           ## 0x3602
	.long	48711                           ## 0xbe47
	.long	32849                           ## 0x8051
	.long	48716                           ## 0xbe4c
	.long	25701                           ## 0x6465
	.long	32768                           ## 0x8000
	.long	7936                            ## 0x1f00
	.long	32769                           ## 0x8001
	.long	12                              ## 0xc
	.long	32776                           ## 0x8008
	.long	0                               ## 0x0
	.long	32775                           ## 0x8007
	.long	0                               ## 0x0
	.long	32780                           ## 0x800c
	.long	165                             ## 0xa5
	.long	33025                           ## 0x8101
	.long	700                             ## 0x2bc
	.long	48723                           ## 0xbe53
	.long	5                               ## 0x5
	.long	36421                           ## 0x8e45
	.long	45032                           ## 0xafe8
	.long	32787                           ## 0x8013
	.long	5                               ## 0x5
	.long	48715                           ## 0xbe4b
	.long	26368                           ## 0x6700
	.long	32779                           ## 0x800b
	.long	28672                           ## 0x7000
	.long	48649                           ## 0xbe09
	.long	3584                            ## 0xe00
	.long	65535                           ## 0xffff
	.long	43981                           ## 0xabcd

	.p2align	4                               ## @__const.rtl8366s_initChip.chipDefault
l___const.rtl8366s_initChip.chipDefault:
	.long	578                             ## 0x242
	.long	703                             ## 0x2bf
	.long	581                             ## 0x245
	.long	703                             ## 0x2bf
	.long	584                             ## 0x248
	.long	703                             ## 0x2bf
	.long	587                             ## 0x24b
	.long	703                             ## 0x2bf
	.long	590                             ## 0x24e
	.long	703                             ## 0x2bf
	.long	593                             ## 0x251
	.long	703                             ## 0x2bf
	.long	596                             ## 0x254
	.long	2623                            ## 0xa3f
	.long	598                             ## 0x256
	.long	2623                            ## 0xa3f
	.long	600                             ## 0x258
	.long	2623                            ## 0xa3f
	.long	602                             ## 0x25a
	.long	2623                            ## 0xa3f
	.long	604                             ## 0x25c
	.long	2623                            ## 0xa3f
	.long	606                             ## 0x25e
	.long	2623                            ## 0xa3f
	.long	611                             ## 0x263
	.long	124                             ## 0x7c
	.long	256                             ## 0x100
	.long	4                               ## 0x4
	.long	48731                           ## 0xbe5b
	.long	13568                           ## 0x3500
	.long	32782                           ## 0x800e
	.long	8207                            ## 0x200f
	.long	48669                           ## 0xbe1d
	.long	3840                            ## 0xf00
	.long	32769                           ## 0x8001
	.long	20497                           ## 0x5011
	.long	32778                           ## 0x800a
	.long	41716                           ## 0xa2f4
	.long	32779                           ## 0x800b
	.long	6051                            ## 0x17a3
	.long	48715                           ## 0xbe4b
	.long	6051                            ## 0x17a3
	.long	48705                           ## 0xbe41
	.long	20497                           ## 0x5011
	.long	48663                           ## 0xbe17
	.long	8448                            ## 0x2100
	.long	32768                           ## 0x8000
	.long	33540                           ## 0x8304
	.long	48704                           ## 0xbe40
	.long	33540                           ## 0x8304
	.long	48714                           ## 0xbe4a
	.long	41716                           ## 0xa2f4
	.long	32780                           ## 0x800c
	.long	43221                           ## 0xa8d5
	.long	32788                           ## 0x8014
	.long	21760                           ## 0x5500
	.long	32789                           ## 0x8015
	.long	4                               ## 0x4
	.long	48716                           ## 0xbe4c
	.long	43221                           ## 0xa8d5
	.long	48729                           ## 0xbe59
	.long	8                               ## 0x8
	.long	48649                           ## 0xbe09
	.long	3584                            ## 0xe00
	.long	48694                           ## 0xbe36
	.long	4150                            ## 0x1036
	.long	48695                           ## 0xbe37
	.long	4150                            ## 0x1036
	.long	32781                           ## 0x800d
	.long	255                             ## 0xff
	.long	48717                           ## 0xbe4d
	.long	255                             ## 0xff
	.long	65535                           ## 0xffff
	.long	43981                           ## 0xabcd

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8366s_initChip\n"

	.comm	_RTL8366S_LEDCONF_LEDFORCE,4,2  ## @RTL8366S_LEDCONF_LEDFORCE
	.comm	_RTL8366S_MODEL_ID_REG,4,2      ## @RTL8366S_MODEL_ID_REG
L_.str.2:                               ## @.str.2
	.asciz	"rtl8366s_initChip: found %x chip\n"

	.comm	_RTL8366S_PHY_ACCESS_CTRL_REG,4,2 ## @RTL8366S_PHY_ACCESS_CTRL_REG
	.comm	_RTL8366S_PHY_CTRL_WRITE,4,2    ## @RTL8366S_PHY_CTRL_WRITE
L_str:                                  ## @str
	.asciz	"rtl8366s_initChip: unsupported chip found!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_initChip              ; -- Begin function rtl8366s_initChip
	.p2align	2
_rtl8366s_initChip:                     ; @rtl8366s_initChip
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #896
	mov	x19, sp
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x23, _RTL8366S_LED_GROUP_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RTL8366S_LED_GROUP_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh7:
	adrp	x1, l___const.rtl8366s_initChip.chipB@PAGE
Lloh8:
	add	x1, x1, l___const.rtl8366s_initChip.chipB@PAGEOFF
	add	x0, x19, #304
	mov	w2, #576
	bl	_memcpy
Lloh9:
	adrp	x1, l___const.rtl8366s_initChip.chipDefault@PAGE
Lloh10:
	add	x1, x1, l___const.rtl8366s_initChip.chipDefault@PAGEOFF
	add	x0, x19, #8
	mov	w2, #296
	bl	_memcpy
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
Lloh13:
	adrp	x25, _RTL8366S_LEDCONF_LEDFORCE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _RTL8366S_LEDCONF_LEDFORCE@GOTPAGEOFF]
	mov	x21, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_rtl8366s_getLedConfig
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_rtl8366s_setLedConfig
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x23]
	add	x21, x21, #4
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_5:
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_rtl8366s_setLedForceValue
	cbnz	x0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _RTL8366S_MODEL_ID_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTL8366S_MODEL_ID_REG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_rtl8366_readRegister
	cbz	x0, LBB0_10
LBB0_7:
	mov	w0, #-1
LBB0_8:
	mov	sp, x22
	ldur	x8, [x29, #-96]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.9:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.11:
	cbnz	w8, LBB0_26
; %bb.12:
	add	x21, x19, #304
	b	LBB0_14
LBB0_13:
	add	x21, x19, #8
LBB0_14:
	str	x8, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	add	sp, sp, #16
	ldr	w0, [x21]
	mov	w20, #65535
	cmp	w0, w20
	b.eq	LBB0_22
; %bb.15:
	add	x21, x21, #4
	mov	w25, #43981
	mov	w26, #48640
Lloh23:
	adrp	x27, _RTL8366S_PHY_ACCESS_CTRL_REG@GOTPAGE
Lloh24:
	ldr	x27, [x27, _RTL8366S_PHY_ACCESS_CTRL_REG@GOTPAGEOFF]
Lloh25:
	adrp	x28, _RTL8366S_PHY_CTRL_WRITE@GOTPAGE
Lloh26:
	ldr	x28, [x28, _RTL8366S_PHY_CTRL_WRITE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	cmp	w1, w25
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bics	wzr, w26, w0
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x27]
	ldr	w1, [x28]
	bl	_rtl8366_writeRegister
	cbnz	x0, LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldp	w0, w1, [x21, #-4]
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_rtl8366_writeRegister
	cbnz	x0, LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x21, #4]
	add	x21, x21, #8
	cmp	w0, w20
	b.ne	LBB0_16
LBB0_22:
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_udelay
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.23:
	mov	x20, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24, x20, lsl #2]
	mov	x0, x20
	bl	_rtl8366s_setLedConfig
	cbnz	x0, LBB0_7
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x23]
	cmp	x20, x8
	b.lt	LBB0_24
	b	LBB0_8
LBB0_26:
Lloh27:
	adrp	x0, l_str@PAGE
Lloh28:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_7
LBB0_27:
	mov	w0, #0
	b	LBB0_8
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8366S_LED_GROUP_MAX,4,2     ; @RTL8366S_LED_GROUP_MAX
	.section	__TEXT,__const
	.p2align	2                               ; @__const.rtl8366s_initChip.chipB
l___const.rtl8366s_initChip.chipB:
	.long	0                               ; 0x0
	.long	56                              ; 0x38
	.long	33024                           ; 0x8100
	.long	6967                            ; 0x1b37
	.long	48686                           ; 0xbe2e
	.long	31647                           ; 0x7b9f
	.long	48683                           ; 0xbe2b
	.long	42184                           ; 0xa4c8
	.long	48756                           ; 0xbe74
	.long	44308                           ; 0xad14
	.long	48684                           ; 0xbe2c
	.long	56320                           ; 0xdc00
	.long	48745                           ; 0xbe69
	.long	53775                           ; 0xd20f
	.long	48699                           ; 0xbe3b
	.long	46100                           ; 0xb414
	.long	48676                           ; 0xbe24
	.long	0                               ; 0x0
	.long	48675                           ; 0xbe23
	.long	161                             ; 0xa1
	.long	48674                           ; 0xbe22
	.long	8                               ; 0x8
	.long	48673                           ; 0xbe21
	.long	288                             ; 0x120
	.long	48672                           ; 0xbe20
	.long	4096                            ; 0x1000
	.long	48676                           ; 0xbe24
	.long	2048                            ; 0x800
	.long	48676                           ; 0xbe24
	.long	0                               ; 0x0
	.long	48676                           ; 0xbe24
	.long	61440                           ; 0xf000
	.long	48675                           ; 0xbe23
	.long	57089                           ; 0xdf01
	.long	48674                           ; 0xbe22
	.long	57120                           ; 0xdf20
	.long	48673                           ; 0xbe21
	.long	4122                            ; 0x101a
	.long	48672                           ; 0xbe20
	.long	41215                           ; 0xa0ff
	.long	48676                           ; 0xbe24
	.long	63488                           ; 0xf800
	.long	48676                           ; 0xbe24
	.long	61440                           ; 0xf000
	.long	578                             ; 0x242
	.long	703                             ; 0x2bf
	.long	581                             ; 0x245
	.long	703                             ; 0x2bf
	.long	584                             ; 0x248
	.long	703                             ; 0x2bf
	.long	587                             ; 0x24b
	.long	703                             ; 0x2bf
	.long	590                             ; 0x24e
	.long	703                             ; 0x2bf
	.long	593                             ; 0x251
	.long	703                             ; 0x2bf
	.long	560                             ; 0x230
	.long	2610                            ; 0xa32
	.long	563                             ; 0x233
	.long	2610                            ; 0xa32
	.long	566                             ; 0x236
	.long	2610                            ; 0xa32
	.long	569                             ; 0x239
	.long	2610                            ; 0xa32
	.long	572                             ; 0x23c
	.long	2610                            ; 0xa32
	.long	575                             ; 0x23f
	.long	2610                            ; 0xa32
	.long	596                             ; 0x254
	.long	2623                            ; 0xa3f
	.long	597                             ; 0x255
	.long	100                             ; 0x64
	.long	598                             ; 0x256
	.long	2623                            ; 0xa3f
	.long	599                             ; 0x257
	.long	100                             ; 0x64
	.long	600                             ; 0x258
	.long	2623                            ; 0xa3f
	.long	601                             ; 0x259
	.long	100                             ; 0x64
	.long	602                             ; 0x25a
	.long	2623                            ; 0xa3f
	.long	603                             ; 0x25b
	.long	100                             ; 0x64
	.long	604                             ; 0x25c
	.long	2623                            ; 0xa3f
	.long	605                             ; 0x25d
	.long	100                             ; 0x64
	.long	606                             ; 0x25e
	.long	2623                            ; 0xa3f
	.long	607                             ; 0x25f
	.long	100                             ; 0x64
	.long	608                             ; 0x260
	.long	376                             ; 0x178
	.long	609                             ; 0x261
	.long	500                             ; 0x1f4
	.long	610                             ; 0x262
	.long	800                             ; 0x320
	.long	611                             ; 0x263
	.long	20                              ; 0x14
	.long	541                             ; 0x21d
	.long	37449                           ; 0x9249
	.long	542                             ; 0x21e
	.long	0                               ; 0x0
	.long	256                             ; 0x100
	.long	4                               ; 0x4
	.long	48714                           ; 0xbe4a
	.long	41140                           ; 0xa0b4
	.long	48704                           ; 0xbe40
	.long	39936                           ; 0x9c00
	.long	48705                           ; 0xbe41
	.long	20509                           ; 0x501d
	.long	48712                           ; 0xbe48
	.long	13826                           ; 0x3602
	.long	48711                           ; 0xbe47
	.long	32849                           ; 0x8051
	.long	48716                           ; 0xbe4c
	.long	25701                           ; 0x6465
	.long	32768                           ; 0x8000
	.long	7936                            ; 0x1f00
	.long	32769                           ; 0x8001
	.long	12                              ; 0xc
	.long	32776                           ; 0x8008
	.long	0                               ; 0x0
	.long	32775                           ; 0x8007
	.long	0                               ; 0x0
	.long	32780                           ; 0x800c
	.long	165                             ; 0xa5
	.long	33025                           ; 0x8101
	.long	700                             ; 0x2bc
	.long	48723                           ; 0xbe53
	.long	5                               ; 0x5
	.long	36421                           ; 0x8e45
	.long	45032                           ; 0xafe8
	.long	32787                           ; 0x8013
	.long	5                               ; 0x5
	.long	48715                           ; 0xbe4b
	.long	26368                           ; 0x6700
	.long	32779                           ; 0x800b
	.long	28672                           ; 0x7000
	.long	48649                           ; 0xbe09
	.long	3584                            ; 0xe00
	.long	65535                           ; 0xffff
	.long	43981                           ; 0xabcd

	.p2align	2                               ; @__const.rtl8366s_initChip.chipDefault
l___const.rtl8366s_initChip.chipDefault:
	.long	578                             ; 0x242
	.long	703                             ; 0x2bf
	.long	581                             ; 0x245
	.long	703                             ; 0x2bf
	.long	584                             ; 0x248
	.long	703                             ; 0x2bf
	.long	587                             ; 0x24b
	.long	703                             ; 0x2bf
	.long	590                             ; 0x24e
	.long	703                             ; 0x2bf
	.long	593                             ; 0x251
	.long	703                             ; 0x2bf
	.long	596                             ; 0x254
	.long	2623                            ; 0xa3f
	.long	598                             ; 0x256
	.long	2623                            ; 0xa3f
	.long	600                             ; 0x258
	.long	2623                            ; 0xa3f
	.long	602                             ; 0x25a
	.long	2623                            ; 0xa3f
	.long	604                             ; 0x25c
	.long	2623                            ; 0xa3f
	.long	606                             ; 0x25e
	.long	2623                            ; 0xa3f
	.long	611                             ; 0x263
	.long	124                             ; 0x7c
	.long	256                             ; 0x100
	.long	4                               ; 0x4
	.long	48731                           ; 0xbe5b
	.long	13568                           ; 0x3500
	.long	32782                           ; 0x800e
	.long	8207                            ; 0x200f
	.long	48669                           ; 0xbe1d
	.long	3840                            ; 0xf00
	.long	32769                           ; 0x8001
	.long	20497                           ; 0x5011
	.long	32778                           ; 0x800a
	.long	41716                           ; 0xa2f4
	.long	32779                           ; 0x800b
	.long	6051                            ; 0x17a3
	.long	48715                           ; 0xbe4b
	.long	6051                            ; 0x17a3
	.long	48705                           ; 0xbe41
	.long	20497                           ; 0x5011
	.long	48663                           ; 0xbe17
	.long	8448                            ; 0x2100
	.long	32768                           ; 0x8000
	.long	33540                           ; 0x8304
	.long	48704                           ; 0xbe40
	.long	33540                           ; 0x8304
	.long	48714                           ; 0xbe4a
	.long	41716                           ; 0xa2f4
	.long	32780                           ; 0x800c
	.long	43221                           ; 0xa8d5
	.long	32788                           ; 0x8014
	.long	21760                           ; 0x5500
	.long	32789                           ; 0x8015
	.long	4                               ; 0x4
	.long	48716                           ; 0xbe4c
	.long	43221                           ; 0xa8d5
	.long	48729                           ; 0xbe59
	.long	8                               ; 0x8
	.long	48649                           ; 0xbe09
	.long	3584                            ; 0xe00
	.long	48694                           ; 0xbe36
	.long	4150                            ; 0x1036
	.long	48695                           ; 0xbe37
	.long	4150                            ; 0x1036
	.long	32781                           ; 0x800d
	.long	255                             ; 0xff
	.long	48717                           ; 0xbe4d
	.long	255                             ; 0xff
	.long	65535                           ; 0xffff
	.long	43981                           ; 0xabcd

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8366s_initChip\n"

	.comm	_RTL8366S_LEDCONF_LEDFORCE,4,2  ; @RTL8366S_LEDCONF_LEDFORCE
	.comm	_RTL8366S_MODEL_ID_REG,4,2      ; @RTL8366S_MODEL_ID_REG
l_.str.2:                               ; @.str.2
	.asciz	"rtl8366s_initChip: found %x chip\n"

	.comm	_RTL8366S_PHY_ACCESS_CTRL_REG,4,2 ; @RTL8366S_PHY_ACCESS_CTRL_REG
	.comm	_RTL8366S_PHY_CTRL_WRITE,4,2    ; @RTL8366S_PHY_CTRL_WRITE
l_str:                                  ; @str
	.asciz	"rtl8366s_initChip: unsupported chip found!"

.subsections_via_symbols
