	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8225se_rf_init              ## -- Begin function rtl8225se_rf_init
	.p2align	4, 0x90
_rtl8225se_rf_init:                     ## @rtl8225se_rf_init
	.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, %r13
	movq	8(%rdi), %r14
	xorl	%esi, %esi
	movl	$319, %edx                      ## imm = 0x13F
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_rtl8187se_rf_readreg
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$9, %esi
	callq	_rtl8187se_rf_readreg
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_mdelay
	xorl	$2072, %r12d                    ## imm = 0x818
	xorl	$1804, %ebx                     ## imm = 0x70C
	xorl	%r15d, %r15d
	orl	%r12d, %ebx
	sete	%r15b
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_info
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$159, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1760, %edx                     ## imm = 0x6E0
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$77, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$3, %esi
	movl	$2033, %edx                     ## imm = 0x7F1
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$2421, %edx                     ## imm = 0x975
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$5, %esi
	movl	$3186, %edx                     ## imm = 0xC72
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$6, %esi
	movl	$2790, %edx                     ## imm = 0xAE6
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	movl	$202, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$3612, %edx                     ## imm = 0xE1C
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$9, %esi
	movl	$752, %edx                      ## imm = 0x2F0
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$10, %esi
	movl	$2512, %edx                     ## imm = 0x9D0
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$11, %esi
	movl	$442, %edx                      ## imm = 0x1BA
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$12, %esi
	movl	$1600, %edx                     ## imm = 0x640
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$13, %esi
	movl	$2271, %edx                     ## imm = 0x8DF
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$14, %esi
	movl	$32, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$15, %esi
	movl	$2448, %edx                     ## imm = 0x990
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$319, %edx                      ## imm = 0x13F
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$3, %esi
	movl	$2054, %edx                     ## imm = 0x806
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$935, %edx                      ## imm = 0x3A7
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$5, %esi
	movl	$1435, %edx                     ## imm = 0x59B
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$6, %esi
	movl	$129, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	movl	$416, %edx                      ## imm = 0x1A0
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$10, %esi
	movl	$1, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$11, %esi
	movl	$1048, %edx                     ## imm = 0x418
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$12, %esi
	movl	$4030, %edx                     ## imm = 0xFBE
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$13, %esi
	movl	$8, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	orl	$2054, %r15d                    ## imm = 0x806
	movq	%r13, %rdi
	movl	$14, %esi
	movl	%r15d, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$15, %esi
	movl	$2764, %edx                     ## imm = 0xACC
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$471, %edx                      ## imm = 0x1D7
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$3, %esi
	movl	$3584, %edx                     ## imm = 0xE00
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$3664, %edx                     ## imm = 0xE50
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	callq	_rtl8187se_write_rf_gain
	movq	%r13, %rdi
	movl	$5, %esi
	movl	$515, %edx                      ## imm = 0x203
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$6, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$311, %edx                      ## imm = 0x137
	callq	_rtl8187se_rf_writereg
	movl	$11, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$13, %esi
	movl	$8, %edx
	callq	_rtl8187se_rf_writereg
	movl	$11, %edi
	callq	_mdelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$55, %edx
	callq	_rtl8187se_rf_writereg
	movl	$11, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$352, %edx                      ## imm = 0x160
	callq	_rtl8187se_rf_writereg
	movl	$11, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	movl	$128, %edx
	callq	_rtl8187se_rf_writereg
	movl	$11, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$2189, %edx                     ## imm = 0x88D
	callq	_rtl8187se_rf_writereg
	movl	$221, %edi
	callq	_msleep
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$311, %edx                      ## imm = 0x137
	callq	_rtl8187se_rf_writereg
	movl	$11, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	movl	$544, %edx                      ## imm = 0x220
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$7, %esi
	movl	$992, %edx                      ## imm = 0x3E0
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$6, %esi
	movl	$193, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$10, %esi
	movl	$1, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movl	4(%r14), %edx
	shll	$4, %eax
	addl	%edx, %edx
	orl	%eax, %edx
	orl	$2560, %edx                     ## imm = 0xA00
	movq	%r13, %rdi
	movl	$15, %esi
	callq	_rtl8187se_rf_writereg
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_info
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_info
	movq	%r13, %rdi
	movl	$15, %esi
	movl	$2764, %edx                     ## imm = 0xACC
	callq	_rtl8187se_rf_writereg
LBB0_3:
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$191, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$13, %esi
	movl	$2271, %edx                     ## imm = 0x8DF
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$77, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$2421, %edx                     ## imm = 0x975
	callq	_rtl8187se_rf_writereg
	movl	$31, %edi
	callq	_msleep
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$407, %edx                      ## imm = 0x197
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$5, %esi
	movl	$1451, %edx                     ## imm = 0x5AB
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$159, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movq	%r13, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_rtl8187se_rf_writereg
	movl	$1, %edi
	callq	_mdelay
	movl	$590, %edi                      ## imm = 0x24E
	callq	_REG_ADDR1
	movq	%rax, %rbx
	movl	$590, %edi                      ## imm = 0x24E
	callq	_REG_ADDR1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_rtl818x_ioread8
	andl	$159, %eax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$200, %edx
	callq	_rtl8225se_write_phy_cck
	movq	%r13, %rdi
	movl	$6, %esi
	movl	$28, %edx
	callq	_rtl8225se_write_phy_cck
	movq	%r13, %rdi
	movl	$16, %esi
	movl	$120, %edx
	callq	_rtl8225se_write_phy_cck
	movq	%r13, %rdi
	movl	$46, %esi
	movl	$208, %edx
	callq	_rtl8225se_write_phy_cck
	movq	%r13, %rdi
	movl	$47, %esi
	movl	$6, %edx
	callq	_rtl8225se_write_phy_cck
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$70, %edx
	callq	_rtl8225se_write_phy_cck
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_rtl818x_iowrite8
	movq	8(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$27, %edx
	callq	_rtl818x_iowrite8
	movq	8(%r14), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_rtl818x_iowrite8
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	callq	_rtl8225se_write_phy_ofdm
	movq	%r13, %rdi
	callq	_rtl8225se_write_zebra_agc
	movq	%r13, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_rtl8225se_write_phy_ofdm
	movq	%r13, %rdi
	callq	_rtl8187se_write_ofdm_config
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$159, %edx
	callq	_rtl8187se_rf_writereg
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$2418, %edx                     ## imm = 0x972
	callq	_rtl8187se_rf_writereg
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$159, %edx
	callq	_rtl8187se_rf_writereg
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$2418, %edx                     ## imm = 0x972
	callq	_rtl8187se_rf_writereg
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movq	%r13, %rdi
	movl	$16, %esi
	movl	$64, %edx
	callq	_rtl8225se_write_phy_ofdm
	movq	%r13, %rdi
	movl	$18, %esi
	movl	$64, %edx
	callq	_rtl8225se_write_phy_ofdm
	movq	%r13, %rdi
	movl	$4, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8187se_write_initial_gain   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTL8225-SE version %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"D"

L_.str.2:                               ## @.str.2
	.asciz	"not-D"

L_.str.3:                               ## @.str.3
	.asciz	"Xtal cal\n"

L_.str.4:                               ## @.str.4
	.asciz	"NO Xtal cal\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8225se_rf_init              ; -- Begin function rtl8225se_rf_init
	.p2align	2
_rtl8225se_rf_init:                     ; @rtl8225se_rf_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	w1, #0
	mov	w2, #319
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #8
	bl	_rtl8187se_rf_readreg
	mov	x21, x0
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #9
	bl	_rtl8187se_rf_readreg
	mov	x22, x0
	mov	w0, #1
	bl	_mdelay
	cmp	w21, #2072
	cset	w8, eq
	cmp	w22, #1804
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
	cset	w10, eq
Lloh2:
	adrp	x11, l_.str.1@PAGE
Lloh3:
	add	x11, x11, l_.str.1@PAGEOFF
	tst	w8, w10
	csel	x8, x11, x9, ne
	ldr	w0, [x19]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w8, #2054
	cinc	w21, w8, ne
	bl	_wiphy_info
	mov	x0, x19
	mov	w1, #0
	mov	w2, #159
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1760
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #2
	mov	w2, #77
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #3
	mov	w2, #2033
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #2421
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #5
	mov	w2, #3186
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #6
	mov	w2, #2790
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #202
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #8
	mov	w2, #3612
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #9
	mov	w2, #752
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #10
	mov	w2, #2512
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #11
	mov	w2, #442
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #12
	mov	w2, #1600
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #13
	mov	w2, #2271
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #14
	mov	w2, #32
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #15
	mov	w2, #2448
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #319
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #3
	mov	w2, #2054
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #935
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #5
	mov	w2, #1435
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #6
	mov	w2, #129
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #416
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #10
	mov	w2, #1
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #11
	mov	w2, #1048
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #12
	mov	w2, #4030
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #13
	mov	w2, #8
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #14
	mov	x2, x21
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #15
	mov	w2, #2764
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #471
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #3
	mov	w2, #3584
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #3664
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	bl	_rtl8187se_write_rf_gain
	mov	x0, x19
	mov	w1, #5
	mov	w2, #515
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #6
	mov	w2, #512
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #311
	bl	_rtl8187se_rf_writereg
	mov	w0, #11
	bl	_mdelay
	mov	x0, x19
	mov	w1, #13
	mov	w2, #8
	bl	_rtl8187se_rf_writereg
	mov	w0, #11
	bl	_mdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #55
	bl	_rtl8187se_rf_writereg
	mov	w0, #11
	bl	_mdelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #352
	bl	_rtl8187se_rf_writereg
	mov	w0, #11
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #128
	bl	_rtl8187se_rf_writereg
	mov	w0, #11
	bl	_mdelay
	mov	x0, x19
	mov	w1, #2
	mov	w2, #2189
	bl	_rtl8187se_rf_writereg
	mov	w0, #221
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #311
	bl	_rtl8187se_rf_writereg
	mov	w0, #11
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #384
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #544
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #7
	mov	w2, #992
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #6
	mov	w2, #193
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #10
	mov	w2, #1
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w8, w9, [x20]
	lsl	w8, w8, #4
	orr	w8, w8, w9, lsl #1
	mov	w9, #2560
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #15
	bl	_rtl8187se_rf_writereg
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wiphy_info
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wiphy_info
	mov	x0, x19
	mov	w1, #15
	mov	w2, #2764
	bl	_rtl8187se_rf_writereg
LBB0_3:
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #191
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #13
	mov	w2, #2271
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #2
	mov	w2, #77
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #2421
	bl	_rtl8187se_rf_writereg
	mov	w0, #31
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #407
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #5
	mov	w2, #1451
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	w22, #159
	mov	x0, x19
	mov	w1, #0
	mov	w2, #159
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_rtl8187se_rf_writereg
	mov	w0, #1
	bl	_mdelay
	mov	w0, #590
	bl	_REG_ADDR1
	mov	x21, x0
	mov	w0, #590
	bl	_REG_ADDR1
	mov	x1, x0
	mov	x0, x20
	bl	_rtl818x_ioread8
	and	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #200
	bl	_rtl8225se_write_phy_cck
	mov	x0, x19
	mov	w1, #6
	mov	w2, #28
	bl	_rtl8225se_write_phy_cck
	mov	x0, x19
	mov	w1, #16
	mov	w2, #120
	bl	_rtl8225se_write_phy_cck
	mov	x0, x19
	mov	w1, #46
	mov	w2, #208
	bl	_rtl8225se_write_phy_cck
	mov	x0, x19
	mov	w1, #47
	mov	w2, #6
	bl	_rtl8225se_write_phy_cck
	mov	x0, x19
	mov	w1, #1
	mov	w2, #70
	bl	_rtl8225se_write_phy_cck
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	mov	x0, x20
	mov	w2, #16
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #27
	bl	_rtl818x_iowrite8
	ldr	x1, [x20, #8]
	mov	x0, x20
	mov	w2, #3
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	bl	_rtl8225se_write_phy_ofdm
	mov	x0, x19
	bl	_rtl8225se_write_zebra_agc
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_rtl8225se_write_phy_ofdm
	mov	x0, x19
	bl	_rtl8187se_write_ofdm_config
	mov	x0, x19
	mov	w1, #0
	mov	w2, #159
	bl	_rtl8187se_rf_writereg
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #2418
	bl	_rtl8187se_rf_writereg
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #159
	bl	_rtl8187se_rf_writereg
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	mov	w1, #4
	mov	w2, #2418
	bl	_rtl8187se_rf_writereg
	mov	w0, #500
	bl	_udelay
	mov	x0, x19
	mov	w1, #16
	mov	w2, #64
	bl	_rtl8225se_write_phy_ofdm
	mov	x0, x19
	mov	w1, #18
	mov	w2, #64
	bl	_rtl8225se_write_phy_ofdm
	mov	x0, x19
	mov	w1, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_rtl8187se_write_initial_gain
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTL8225-SE version %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"D"

l_.str.2:                               ; @.str.2
	.asciz	"not-D"

l_.str.3:                               ; @.str.3
	.asciz	"Xtal cal\n"

l_.str.4:                               ; @.str.4
	.asciz	"NO Xtal cal\n"

.subsections_via_symbols
