	.file	"extr_r8180_rtl8225z2.c_rtl8225z2_rf_set_chan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtl8225z2_rf_set_chan
	.type	rtl8225z2_rf_set_chan, @function
rtl8225z2_rf_set_chan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movsx	rbx, si
	movsx	esi, si
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	rtl8225z2_SetTXPowerLevel@PLT
	mov	rax, QWORD PTR rtl8225_chan[rip]
	mov	esi, 7
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax+rbx*4]
	call	RF_WriteReg@PLT
	mov	esi, 7
	mov	rdi, rbp
	call	RF_ReadReg@PLT
	mov	rdx, QWORD PTR rtl8225_chan[rip]
	and	eax, 3968
	mov	edx, DWORD PTR [rdx+rbx*4]
	cmp	eax, edx
	je	.L2
	mov	esi, 7
	mov	rdi, rbp
	call	RF_WriteReg@PLT
.L2:
	mov	edi, 1
	call	mdelay@PLT
	mov	rdi, rbp
	call	force_pci_posting@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edi, 10
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mdelay@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8225z2_rf_set_chan, .-rtl8225z2_rf_set_chan
	.comm	rtl8225_chan,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_r8180_rtl8225z2.c_rtl8225z2_rf_set_chan.c"
	.text
	.align	2
	.global	rtl8225z2_rf_set_chan
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8225z2_rf_set_chan, %function
rtl8225z2_rf_set_chan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r6, .L5
	bl	rtl8225z2_SetTXPowerLevel
	ldr	r3, [r6]
	mov	r1, #7
	ldr	r2, [r3, r5, lsl #2]
	mov	r0, r4
	bl	RF_WriteReg
	mov	r0, r4
	mov	r1, #7
	bl	RF_ReadReg
	ldr	r3, [r6]
	and	r0, r0, #3968
	ldr	r2, [r3, r5, lsl #2]
	cmp	r0, r2
	beq	.L2
	mov	r1, #7
	mov	r0, r4
	bl	RF_WriteReg
.L2:
	mov	r0, #1
	bl	mdelay
	mov	r0, r4
	bl	force_pci_posting
	pop	{r4, r5, r6, lr}
	mov	r0, #10
	b	mdelay
.L6:
	.align	2
.L5:
	.word	rtl8225_chan
	.size	rtl8225z2_rf_set_chan, .-rtl8225z2_rf_set_chan
	.comm	rtl8225_chan,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
