	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_init_rfcsr_3390
_rt2800_init_rfcsr_3390:                ## @rt2800_init_rfcsr_3390
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$30, %esi
	callq	_rt2800_rf_init_calibration
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$160, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$225, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$241, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$98, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$64, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$139, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$66, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$52, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$192, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$97, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$11, %esi
	movl	$33, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$12, %esi
	movl	$59, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$13, %esi
	movl	$224, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$14, %esi
	movl	$144, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$15, %esi
	movl	$83, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$224, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$17, %esi
	movl	$148, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$92, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$74, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$178, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$246, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$22, %esi
	xorl	%edx, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$20, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$8, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$25, %esi
	movl	$61, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$26, %esi
	movl	$133, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$27, %esi
	xorl	%edx, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$28, %esi
	movl	$65, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$143, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$32, %edx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	$15, %edx
	callq	_rt2800_rfcsr_write
	movq	_GPIO_SWITCH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rt2800_register_read
	movl	%eax, -20(%rbp)
	movq	_GPIO_SWITCH_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2800_register_write
	movq	%rbx, %rdi
	callq	_rt2800_rx_filter_calibration
	movq	_RT3390@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REV_RT3390E@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_rt_rev_lt
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$27, %esi
	movl	$3, %edx
	callq	_rt2800_rfcsr_write
LBB0_2:
	movq	%rbx, %rdi
	callq	_rt2800_led_open_drain_enable
	movq	%rbx, %rdi
	callq	_rt2800_normal_mode_setup_3xxx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_SWITCH,4,2                ## @GPIO_SWITCH
	.comm	_GPIO_SWITCH_5,4,2              ## @GPIO_SWITCH_5
	.comm	_RT3390,4,2                     ## @RT3390
	.comm	_REV_RT3390E,4,2                ## @REV_RT3390E
	.no_dead_strip	_rt2800_init_rfcsr_3390
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_init_rfcsr_3390
_rt2800_init_rfcsr_3390:                ; @rt2800_init_rfcsr_3390
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #30
	bl	_rt2800_rf_init_calibration
	mov	x0, x19
	mov	w1, #0
	mov	w2, #160
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #225
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #2
	mov	w2, #241
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #3
	mov	w2, #98
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #64
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #5
	mov	w2, #139
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #6
	mov	w2, #66
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #7
	mov	w2, #52
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #9
	mov	w2, #192
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #10
	mov	w2, #97
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #11
	mov	w2, #33
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #12
	mov	w2, #59
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #13
	mov	w2, #224
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #14
	mov	w2, #144
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #15
	mov	w2, #83
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #16
	mov	w2, #224
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #17
	mov	w2, #148
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #18
	mov	w2, #92
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #19
	mov	w2, #74
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #20
	mov	w2, #178
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #246
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #22
	mov	w2, #0
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #20
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #24
	mov	w2, #8
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #25
	mov	w2, #61
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #26
	mov	w2, #133
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #27
	mov	w2, #0
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #28
	mov	w2, #65
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #29
	mov	w2, #143
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #30
	mov	w2, #32
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #31
	mov	w2, #15
	bl	_rt2800_rfcsr_write
Lloh0:
	adrp	x20, _GPIO_SWITCH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GPIO_SWITCH@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _GPIO_SWITCH_5@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_SWITCH_5@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2800_register_write
	mov	x0, x19
	bl	_rt2800_rx_filter_calibration
Lloh5:
	adrp	x8, _RT3390@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RT3390@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _REV_RT3390E@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REV_RT3390E@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rt2x00_rt_rev_lt
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #27
	mov	w2, #3
	bl	_rt2800_rfcsr_write
LBB0_2:
	mov	x0, x19
	bl	_rt2800_led_open_drain_enable
	mov	x0, x19
	bl	_rt2800_normal_mode_setup_3xxx
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_SWITCH,4,2                ; @GPIO_SWITCH
	.comm	_GPIO_SWITCH_5,4,2              ; @GPIO_SWITCH_5
	.comm	_RT3390,4,2                     ; @RT3390
	.comm	_REV_RT3390E,4,2                ; @REV_RT3390E
	.no_dead_strip	_rt2800_init_rfcsr_3390
.subsections_via_symbols
