	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_rf_lp_config
_rt2800_rf_lp_config:                   ## @rt2800_rf_lp_config
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	testl	%esi, %esi
	setne	%al
	movq	_RF_CONTROL0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	(%rax,%rax), %edx
	addl	$2, %edx
	callq	_rt2800_register_write
	movq	_RF_BYPASS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_rt2800_register_write
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$17, %edx
	callq	_rt2800_rfcsr_read_bank
	orl	$128, %eax
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$17, %edx
	movl	%eax, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$18, %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	$193, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$19, %edx
	movl	$32, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$20, %edx
	movl	$2, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$3, %edx
	callq	_rt2800_rfcsr_read_bank
	orl	$63, %eax
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$3, %edx
	movl	%eax, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$4, %edx
	callq	_rt2800_rfcsr_read_bank
	orl	$63, %eax
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$4, %edx
	movl	%eax, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$5, %edx
	movl	$49, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	$241, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$19, %edx
	movl	$24, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$20, %edx
	movl	$2, %ecx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$3, %edx
	callq	_rt2800_rfcsr_read_bank
                                        ## kill: def $eax killed $eax def $rax
	andl	$-64, %eax
	leal	52(%rax), %ecx
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$3, %edx
	callq	_rt2800_rfcsr_write_bank
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$4, %edx
	callq	_rt2800_rfcsr_read_bank
                                        ## kill: def $eax killed $eax def $rax
	andl	$-64, %eax
	leal	52(%rax), %ecx
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$4, %edx
LBB0_3:
	callq	_rt2800_rfcsr_write_bank
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_CONTROL0,4,2                ## @RF_CONTROL0
	.comm	_RF_BYPASS0,4,2                 ## @RF_BYPASS0
	.no_dead_strip	_rt2800_rf_lp_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_rf_lp_config
_rt2800_rf_lp_config:                   ; @rt2800_rf_lp_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RF_CONTROL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_CONTROL0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #4
	mov	w9, #2
	cmp	w20, #0
	csel	w2, w9, w8, eq
	bl	_rt2800_register_write
Lloh3:
	adrp	x8, _RF_BYPASS0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF_BYPASS0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	_rt2800_register_write
	mov	x0, x19
	mov	w1, #5
	mov	w2, #17
	bl	_rt2800_rfcsr_read_bank
	orr	w3, w0, #0x80
	mov	x0, x19
	mov	w1, #5
	mov	w2, #17
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #18
	cbz	w20, LBB0_2
; %bb.1:
	mov	w3, #193
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #19
	mov	w3, #32
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #20
	mov	w3, #2
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #3
	bl	_rt2800_rfcsr_read_bank
	orr	w3, w0, #0x3f
	mov	x0, x19
	mov	w1, #5
	mov	w2, #3
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #4
	bl	_rt2800_rfcsr_read_bank
	orr	w3, w0, #0x3f
	mov	x0, x19
	mov	w1, #5
	mov	w2, #4
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #5
	mov	w3, #49
	b	LBB0_3
LBB0_2:
	mov	w3, #241
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #19
	mov	w3, #24
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #20
	mov	w3, #2
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #3
	bl	_rt2800_rfcsr_read_bank
	mov	x3, x0
	mov	w20, #52
	bfxil	w3, w20, #0, #6
	mov	x0, x19
	mov	w1, #5
	mov	w2, #3
	bl	_rt2800_rfcsr_write_bank
	mov	x0, x19
	mov	w1, #5
	mov	w2, #4
	bl	_rt2800_rfcsr_read_bank
	mov	x3, x0
	bfxil	w3, w20, #0, #6
	mov	x0, x19
	mov	w1, #5
	mov	w2, #4
LBB0_3:
	bl	_rt2800_rfcsr_write_bank
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_CONTROL0,4,2                ; @RF_CONTROL0
	.comm	_RF_BYPASS0,4,2                 ; @RF_BYPASS0
	.no_dead_strip	_rt2800_rf_lp_config
.subsections_via_symbols
