	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_init_hw
_rtl8180_init_hw:                       ## @rtl8180_init_hw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$10, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_rtl8180_int_disable
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movq	_RTL818X_CMD_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$200, %edi
	callq	_msleep
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_26
LBB0_2:
	movq	32(%rbx), %rsi
	addq	$48, %rsi
	movq	_RTL818X_EEPROM_CMD_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	$200, %edi
	callq	_msleep
	movq	32(%rbx), %rsi
	addq	$52, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	testb	$8, %al
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_rtl8180_config_cardbus
LBB0_4:
	movq	_RTL818X_CHIP_FAMILY_RTL8187SE@GOTPCREL(%rip), %r15
	movq	(%rbx), %rax
	movq	32(%rbx), %rsi
	addq	$116, %rsi
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.5:
	movq	_RTL818X_MSR_ENEDCA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_6:
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rax
	movq	_RTL818X_CHIP_FAMILY_RTL8180@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	56(%rbx), %esi
	movq	%rbx, %rdi
	callq	_rtl8180_set_anaparam
LBB0_8:
	movq	32(%rbx), %rsi
	addq	$112, %rsi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	(%rbx), %rcx
	movq	32(%rbx), %rsi
	addq	$104, %rsi
	movq	48(%rbx), %rax
	cmpq	(%r15), %rcx
	jne	LBB0_9
## %bb.10:
	movl	16(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	movq	48(%rbx), %rax
	addq	$100, %rsi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	movq	48(%rbx), %rax
	addq	$96, %rsi
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	movq	48(%rbx), %rax
	addq	$92, %rsi
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	addq	$88, %rsi
	movl	$3, %eax
	jmp	LBB0_11
LBB0_9:
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	addq	$108, %rsi
	xorl	%eax, %eax
LBB0_11:
	movq	48(%rbx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	addq	$48, %rsi
	movq	_RTL818X_EEPROM_CMD_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$84, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movq	32(%rbx), %rsi
	addq	$84, %rsi
	andl	$-9, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rax
	movq	_RTL818X_CHIP_FAMILY_RTL8185@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.12:
	movq	32(%rbx), %rsi
	addq	$84, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movq	32(%rbx), %rsi
	addq	$84, %rsi
	orl	$16, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
LBB0_13:
	movq	32(%rbx), %rsi
	addq	$48, %rsi
	movq	_RTL818X_EEPROM_CMD_NORMAL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$80, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite32
	movq	(%rbx), %rax
	movq	32(%rbx), %rsi
	movq	_RTL818X_CHIP_FAMILY_RTL8180@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	addq	$68, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$64, %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$60, %rsi
	movq	%rbx, %rdi
	movl	$76, %edx
	jmp	LBB0_16
LBB0_14:
	addq	$76, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$72, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_16:
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	movq	%r15, %r12
	jne	LBB0_21
## %bb.17:
	movq	32(%rbx), %rsi
	addq	$56, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movq	32(%rbx), %rsi
	addq	$56, %rsi
	andl	$-65, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$48, %rsi
	movq	_RTL818X_EEPROM_CMD_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$52, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movq	32(%rbx), %rsi
	addq	$52, %rsi
	orl	$4, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$48, %rsi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	cmpq	$0, 40(%rbx)
	je	LBB0_19
## %bb.18:
	movq	32(%rbx), %rsi
	addq	$24, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	%eax, %r15d
	movq	32(%rbx), %rsi
	addq	$24, %rsi
	movl	%eax, %edx
	orl	$1, %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movl	$255, %edi
	callq	_REG_ADDR1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$53, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$24, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	jmp	LBB0_20
LBB0_19:
	movl	$511, %edi                      ## imm = 0x1FF
	callq	_REG_ADDR1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$53, %edx
LBB0_20:
	callq	_rtl818x_iowrite8
LBB0_21:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.22:
	movq	_ARFR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_rtl818x_iowrite16
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	movq	32(%rbx), %rsi
	addq	$44, %rsi
	movq	_RTL818x_TPPOLL_STOP_MG@GOTPCREL(%rip), %rax
	movq	_RTL818x_TPPOLL_STOP_HI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$36, %rsi
	movq	%rbx, %rdi
	movl	$64080, %edx                    ## imm = 0xFA50
	callq	_rtl818x_iowrite16
	movq	32(%rbx), %rsi
	addq	$32, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite16
	movq	%r14, %rdi
	callq	_rtl8187se_mac_config
	movq	_RFSW_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movl	$22170, %edx                    ## imm = 0x569A
	callq	_rtl818x_iowrite16
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread16
	movq	_RTL8225SE_ANAPARAM_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8180_set_anaparam
	movq	_RTL8225SE_ANAPARAM2_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8180_set_anaparam2
	movq	_RTL8225SE_ANAPARAM3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl8180_set_anaparam3
	movq	32(%rbx), %r15
	addq	$28, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rtl818x_ioread8
	andl	$127, %eax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %r15
	addq	$24, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rtl818x_ioread8
	orl	$8, %eax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	32(%rbx), %rsi
	addq	$20, %rsi
	movq	%rbx, %rdi
	movl	$1152, %edx                     ## imm = 0x480
	callq	_rtl818x_iowrite16
	movq	32(%rbx), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movl	$7167, %edx                     ## imm = 0x1BFF
	callq	_rtl818x_iowrite16
	movq	32(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	movl	$9352, %edx                     ## imm = 0x2488
	callq	_rtl818x_iowrite16
	movq	32(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	$16387, %edx                    ## imm = 0x4003
	callq	_rtl818x_iowrite32
	movq	32(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread32
                                        ## kill: def $eax killed $eax def $rax
	andl	$16776960, %eax                 ## imm = 0xFFFF00
	leal	-1207959468(%rax), %edx
	movq	32(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite32
	jmp	LBB0_24
LBB0_23:
	movq	32(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_rtl818x_iowrite8
LBB0_24:
	movq	24(%rbx), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	(%rbx), %rax
	movq	_RTL818X_CHIP_FAMILY_RTL8180@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$3, %eax
	movl	$499, %esi                      ## imm = 0x1F3
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_rtl8180_conf_basic_rates
	movq	(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	(%r12), %rax
	jne	LBB0_26
## %bb.25:
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtl8187se_set_antenna_config
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_CMD_RESET,4,2          ## @RTL818X_CMD_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset timeout!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_RTL818X_EEPROM_CMD_LOAD,4,2    ## @RTL818X_EEPROM_CMD_LOAD
	.comm	_RTL818X_CHIP_FAMILY_RTL8187SE,8,3 ## @RTL818X_CHIP_FAMILY_RTL8187SE
	.comm	_RTL818X_MSR_ENEDCA,4,2         ## @RTL818X_MSR_ENEDCA
	.comm	_RTL818X_CHIP_FAMILY_RTL8180,8,3 ## @RTL818X_CHIP_FAMILY_RTL8180
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ## @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_CHIP_FAMILY_RTL8185,8,3 ## @RTL818X_CHIP_FAMILY_RTL8185
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ## @RTL818X_EEPROM_CMD_NORMAL
	.comm	_ARFR,8,3                       ## @ARFR
	.comm	_RTL818x_TPPOLL_STOP_MG,4,2     ## @RTL818x_TPPOLL_STOP_MG
	.comm	_RTL818x_TPPOLL_STOP_HI,4,2     ## @RTL818x_TPPOLL_STOP_HI
	.comm	_RFSW_CTRL,8,3                  ## @RFSW_CTRL
	.comm	_RTL8225SE_ANAPARAM_ON,4,2      ## @RTL8225SE_ANAPARAM_ON
	.comm	_RTL8225SE_ANAPARAM2_ON,4,2     ## @RTL8225SE_ANAPARAM2_ON
	.comm	_RTL8225SE_ANAPARAM3,4,2        ## @RTL8225SE_ANAPARAM3
	.no_dead_strip	_rtl8180_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_init_hw
_rtl8180_init_hw:                       ; @rtl8180_init_hw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_ioread8
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_rtl8180_int_disable
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_ioread8
Lloh0:
	adrp	x21, _RTL818X_CMD_RESET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RTL818X_CMD_RESET@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_ioread8
	mov	w0, #200
	bl	_msleep
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
Lloh4:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_2:
	ldr	x8, [x20, #32]
	add	x1, x8, #48
Lloh7:
	adrp	x8, _RTL818X_EEPROM_CMD_LOAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_LOAD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #120
	mov	x0, x20
	bl	_rtl818x_ioread8
	mov	w0, #200
	bl	_msleep
	ldr	x8, [x20, #32]
	add	x1, x8, #52
	mov	x0, x20
	bl	_rtl818x_ioread8
	tbz	w0, #3, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rtl8180_config_cardbus
LBB0_4:
	ldr	x8, [x20]
Lloh10:
	adrp	x22, _RTL818X_CHIP_FAMILY_RTL8187SE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _RTL818X_CHIP_FAMILY_RTL8187SE@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x10, [x20, #32]
	add	x1, x10, #116
Lloh12:
	adrp	x10, _RTL818X_MSR_ENEDCA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RTL818X_MSR_ENEDCA@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w2, w10, wzr, eq
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
Lloh15:
	adrp	x23, _RTL818X_CHIP_FAMILY_RTL8180@GOTPAGE
Lloh16:
	ldr	x23, [x23, _RTL818X_CHIP_FAMILY_RTL8180@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x20, #56]
	mov	x0, x20
	bl	_rtl8180_set_anaparam
LBB0_6:
	ldr	x8, [x20, #32]
	add	x1, x8, #112
	ldr	w2, [x20, #8]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	ldr	x9, [x20]
	ldr	x10, [x22]
	ldr	x8, [x20, #32]
	add	x1, x8, #104
	ldr	x8, [x20, #48]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	ldr	w2, [x8, #16]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	ldr	x8, [x20, #32]
	add	x1, x8, #100
	ldr	x8, [x20, #48]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	ldr	x8, [x20, #32]
	add	x1, x8, #96
	ldr	x8, [x20, #48]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	ldr	x8, [x20, #32]
	add	x1, x8, #92
	ldr	x8, [x20, #48]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	ldr	x8, [x20, #32]
	add	x1, x8, #88
	mov	w8, #3
	b	LBB0_9
LBB0_8:
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	mov	x8, #0
	ldr	x9, [x20, #32]
	add	x1, x9, #108
LBB0_9:
	ldr	x9, [x20, #48]
	ldr	w2, [x9, x8, lsl #2]
	mov	x0, x20
	bl	_rtl818x_iowrite32
	ldr	x8, [x20, #32]
	add	x1, x8, #48
Lloh17:
	adrp	x21, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGE
Lloh18:
	ldr	x21, [x21, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #84
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	x8, [x20, #32]
	add	x1, x8, #84
	and	w2, w0, #0xfffffff7
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
Lloh19:
	adrp	x25, _RTL818X_CHIP_FAMILY_RTL8185@GOTPAGE
Lloh20:
	ldr	x25, [x25, _RTL818X_CHIP_FAMILY_RTL8185@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x20, #32]
	add	x1, x8, #84
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	x8, [x20, #32]
	add	x1, x8, #84
	orr	w2, w0, #0x10
	mov	x0, x20
	bl	_rtl818x_iowrite8
LBB0_11:
	ldr	x8, [x20, #32]
	add	x1, x8, #48
Lloh21:
	adrp	x24, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGE
Lloh22:
	ldr	x24, [x24, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #80
	mov	x0, x20
	mov	w2, #0
	bl	_rtl818x_iowrite32
	ldr	x9, [x20]
	ldr	x10, [x23]
	ldr	x8, [x20, #32]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
	add	x1, x8, #68
	mov	x0, x20
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #64
	mov	x0, x20
	mov	w2, #6
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #60
	mov	x0, x20
	mov	w2, #76
	b	LBB0_14
LBB0_13:
	add	x1, x8, #76
	mov	x0, x20
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #72
	mov	x0, x20
	mov	w2, #0
LBB0_14:
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.15:
	ldr	x8, [x20, #32]
	add	x1, x8, #56
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	x8, [x20, #32]
	add	x1, x8, #56
	and	w2, w0, #0xffffffbf
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #48
	ldr	w2, [x21]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #52
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	x8, [x20, #32]
	add	x1, x8, #52
	orr	w2, w0, #0x4
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #48
	ldr	w2, [x24]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	x8, [x20, #32]
	add	x1, x8, #24
	mov	x0, x20
	bl	_rtl818x_ioread8
	mov	x21, x0
	ldr	x8, [x20, #32]
	add	x1, x8, #24
	orr	w2, w0, #0x1
	mov	x0, x20
	bl	_rtl818x_iowrite8
	mov	w0, #255
	bl	_REG_ADDR1
	mov	x1, x0
	mov	x0, x20
	mov	w2, #53
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #24
	mov	x0, x20
	mov	x2, x21
	b	LBB0_18
LBB0_17:
	mov	w0, #511
	bl	_REG_ADDR1
	mov	x1, x0
	mov	x0, x20
	mov	w2, #53
LBB0_18:
	bl	_rtl818x_iowrite8
LBB0_19:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
Lloh23:
	adrp	x21, _ARFR@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ARFR@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x20
	mov	w2, #4095
	bl	_rtl818x_iowrite16
	ldr	x1, [x21]
	mov	x0, x20
	bl	_rtl818x_ioread16
	ldr	x8, [x20, #32]
Lloh25:
	adrp	x9, _RTL818x_TPPOLL_STOP_MG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RTL818x_TPPOLL_STOP_MG@GOTPAGEOFF]
	add	x1, x8, #44
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _RTL818x_TPPOLL_STOP_HI@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RTL818x_TPPOLL_STOP_HI@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #40
	mov	x0, x20
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #36
	mov	x0, x20
	mov	w2, #64080
	bl	_rtl818x_iowrite16
	ldr	x8, [x20, #32]
	add	x1, x8, #32
	mov	x0, x20
	mov	w2, #0
	bl	_rtl818x_iowrite16
	mov	x0, x19
	bl	_rtl8187se_mac_config
Lloh31:
	adrp	x21, _RFSW_CTRL@GOTPAGE
Lloh32:
	ldr	x21, [x21, _RFSW_CTRL@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x20
	mov	w2, #22170
	bl	_rtl818x_iowrite16
	ldr	x1, [x21]
	mov	x0, x20
	bl	_rtl818x_ioread16
Lloh33:
	adrp	x8, _RTL8225SE_ANAPARAM_ON@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTL8225SE_ANAPARAM_ON@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl8180_set_anaparam
Lloh36:
	adrp	x8, _RTL8225SE_ANAPARAM2_ON@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RTL8225SE_ANAPARAM2_ON@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl8180_set_anaparam2
Lloh39:
	adrp	x8, _RTL8225SE_ANAPARAM3@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RTL8225SE_ANAPARAM3@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl8180_set_anaparam3
	ldr	x8, [x20, #32]
	add	x21, x8, #28
	mov	x0, x20
	mov	x1, x21
	bl	_rtl818x_ioread8
	and	w2, w0, #0x7f
	mov	x0, x20
	mov	x1, x21
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x21, x8, #24
	mov	x0, x20
	mov	x1, x21
	bl	_rtl818x_ioread8
	orr	w2, w0, #0x8
	mov	x0, x20
	mov	x1, x21
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #32]
	add	x1, x8, #20
	mov	x0, x20
	mov	w2, #1152
	bl	_rtl818x_iowrite16
	ldr	x8, [x20, #32]
	add	x1, x8, #16
	mov	x0, x20
	mov	w2, #7167
	bl	_rtl818x_iowrite16
	ldr	x8, [x20, #32]
	add	x1, x8, #12
	mov	x0, x20
	mov	w2, #9352
	bl	_rtl818x_iowrite16
	ldr	x8, [x20, #32]
	add	x1, x8, #8
	mov	x0, x20
	mov	w2, #16387
	bl	_rtl818x_iowrite32
	ldr	x8, [x20, #32]
	add	x1, x8, #4
	mov	x0, x20
	bl	_rtl818x_ioread32
	and	w8, w0, #0xffff00
	mov	w9, #84
	movk	w9, #47104, lsl #16
	orr	w2, w8, w9
	ldr	x8, [x20, #32]
	add	x1, x8, #4
	mov	x0, x20
	bl	_rtl818x_iowrite32
	b	LBB0_22
LBB0_21:
	ldr	x1, [x20, #32]
	mov	x0, x20
	mov	w2, #6
	bl	_rtl818x_iowrite8
LBB0_22:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	mov	w8, #499
	mov	w9, #3
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_rtl8180_conf_basic_rates
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	ldp	w2, w1, [x20, #12]
	mov	x0, x19
	bl	_rtl8187se_set_antenna_config
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL818X_CMD_RESET,4,2          ; @RTL818X_CMD_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset timeout!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_RTL818X_EEPROM_CMD_LOAD,4,2    ; @RTL818X_EEPROM_CMD_LOAD
	.comm	_RTL818X_CHIP_FAMILY_RTL8187SE,8,3 ; @RTL818X_CHIP_FAMILY_RTL8187SE
	.comm	_RTL818X_MSR_ENEDCA,4,2         ; @RTL818X_MSR_ENEDCA
	.comm	_RTL818X_CHIP_FAMILY_RTL8180,8,3 ; @RTL818X_CHIP_FAMILY_RTL8180
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ; @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_CHIP_FAMILY_RTL8185,8,3 ; @RTL818X_CHIP_FAMILY_RTL8185
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ; @RTL818X_EEPROM_CMD_NORMAL
	.comm	_ARFR,8,3                       ; @ARFR
	.comm	_RTL818x_TPPOLL_STOP_MG,4,2     ; @RTL818x_TPPOLL_STOP_MG
	.comm	_RTL818x_TPPOLL_STOP_HI,4,2     ; @RTL818x_TPPOLL_STOP_HI
	.comm	_RFSW_CTRL,8,3                  ; @RFSW_CTRL
	.comm	_RTL8225SE_ANAPARAM_ON,4,2      ; @RTL8225SE_ANAPARAM_ON
	.comm	_RTL8225SE_ANAPARAM2_ON,4,2     ; @RTL8225SE_ANAPARAM2_ON
	.comm	_RTL8225SE_ANAPARAM3,4,2        ; @RTL8225SE_ANAPARAM3
	.no_dead_strip	_rtl8180_init_hw
.subsections_via_symbols
