	.file	"extr_grf5101.c_grf5101_rf_set_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	grf5101_rf_set_channel, @function
grf5101_rf_set_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR [rsi]
	mov	rbp, rdi
	mov	r13, QWORD PTR [rdi]
	mov	edi, DWORD PTR [rax]
	call	ieee80211_frequency_to_channel@PLT
	mov	rdi, rbp
	mov	esi, 21
	movsx	rdx, eax
	mov	rax, QWORD PTR 0[r13]
	mov	r12, rdx
	movzx	r13d, BYTE PTR -4[rax+rdx*4]
	xor	edx, edx
	call	write_grf5101@PLT
	mov	rdi, rbp
	mov	esi, 6
	mov	edx, r13d
	call	write_grf5101@PLT
	mov	rdi, rbp
	mov	edx, 16
	mov	esi, 21
	call	write_grf5101@PLT
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 21
	call	write_grf5101@PLT
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 7
	call	write_grf5101@PLT
	lea	edx, -1[r12]
	mov	rdi, rbp
	mov	esi, 11
	call	write_grf5101@PLT
	mov	rdi, rbp
	mov	esi, 7
	mov	edx, 4096
	call	write_grf5101@PLT
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	grf5101_write_phy_antenna@PLT
	.cfi_endproc
.LFE0:
	.size	grf5101_rf_set_channel, .-grf5101_rf_set_channel
	.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_grf5101.c_grf5101_rf_set_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grf5101_rf_set_channel, %function
grf5101_rf_set_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, [r0]
	ldr	r0, [r3]
	bl	ieee80211_frequency_to_channel
	mov	r5, r0
	ldr	r3, [r6]
	sub	r2, r0, #-1073741823
	ldrb	r6, [r3, r2, lsl #2]	@ zero_extendqisi2
	mov	r0, r4
	mov	r2, #0
	mov	r1, #21
	bl	write_grf5101
	mov	r2, r6
	mov	r0, r4
	mov	r1, #6
	bl	write_grf5101
	mov	r0, r4
	mov	r2, #16
	mov	r1, #21
	bl	write_grf5101
	mov	r0, r4
	mov	r2, #0
	mov	r1, #21
	bl	write_grf5101
	mov	r0, r4
	mov	r2, #0
	mov	r1, #7
	bl	write_grf5101
	sub	r2, r5, #1
	mov	r0, r4
	mov	r1, #11
	bl	write_grf5101
	mov	r0, r4
	mov	r1, #7
	mov	r2, #4096
	bl	write_grf5101
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	grf5101_write_phy_antenna
	.size	grf5101_rf_set_channel, .-grf5101_rf_set_channel
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
