	.file	"extr_rt2500usb.c_rt2500usb_config_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rt2500usb_config_channel, @function
rt2500usb_config_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	TXPOWER_TO_DEV@PLT
	mov	esi, DWORD PTR RF3_TXPOWER[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RF2525E[rip]
	mov	rdi, rbp
	call	rt2x00_rf@PLT
	test	rax, rax
	jne	.L11
.L3:
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, 1
	mov	rdi, rbp
	call	rt2500usb_rf_write@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, 2
	mov	rdi, rbp
	call	rt2500usb_rf_write@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, 3
	mov	rdi, rbp
	call	rt2500usb_rf_write@PLT
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	jne	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbx]
	lea	rdx, vals.1944[rip]
	mov	esi, 2
	mov	rdi, rbp
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	call	rt2500usb_rf_write@PLT
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	je	.L3
	mov	esi, 4
	mov	rdi, rbp
	call	rt2500usb_rf_write@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, 4
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rt2500usb_rf_write@PLT
	.cfi_endproc
.LFE0:
	.size	rt2500usb_config_channel, .-rt2500usb_config_channel
	.section	.rodata
	.align 32
	.type	vals.1944, @object
	.size	vals.1944, 56
vals.1944:
	.long	2218
	.long	2222
	.long	2222
	.long	2226
	.long	2226
	.long	2230
	.long	2230
	.long	2234
	.long	2234
	.long	2238
	.long	2231
	.long	2306
	.long	2306
	.long	2310
	.comm	RF3_TXPOWER,4,4
	.comm	RF2525E,4,4
	.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_rt2500usb.c_rt2500usb_config_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2500usb_config_channel, %function
rt2500usb_config_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r2
	ldr	r6, [r3]
	mov	r4, r1
	bl	TXPOWER_TO_DEV
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	rt2x00_set_field32
	ldr	r3, .L12+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	rt2x00_rf
	cmp	r0, #0
	bne	.L11
.L3:
	mov	r1, #1
	ldr	r2, [r4, #12]
	mov	r0, r5
	bl	rt2500usb_rf_write
	mov	r1, #2
	ldr	r2, [r4, #16]
	mov	r0, r5
	bl	rt2500usb_rf_write
	ldr	r2, [r4]
	mov	r1, #3
	mov	r0, r5
	bl	rt2500usb_rf_write
	ldr	r2, [r4, #8]
	cmp	r2, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #4
	b	rt2500usb_rf_write
.L11:
	ldr	r3, [r4, #4]
	ldr	r2, .L12+8
	sub	r3, r3, #1
	ldr	r2, [r2, r3, lsl #2]
	mov	r1, #2
	mov	r0, r5
	bl	rt2500usb_rf_write
	ldr	r2, [r4, #8]
	cmp	r2, #0
	beq	.L3
	mov	r1, #4
	mov	r0, r5
	bl	rt2500usb_rf_write
	b	.L3
.L13:
	.align	2
.L12:
	.word	RF3_TXPOWER
	.word	RF2525E
	.word	.LANCHOR0
	.size	rt2500usb_config_channel, .-rt2500usb_config_channel
	.comm	RF3_TXPOWER,4,4
	.comm	RF2525E,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	vals.4228, %object
	.size	vals.4228, 56
vals.4228:
	.word	2218
	.word	2222
	.word	2222
	.word	2226
	.word	2226
	.word	2230
	.word	2230
	.word	2234
	.word	2234
	.word	2238
	.word	2231
	.word	2306
	.word	2306
	.word	2310
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
