	.file	"extr_zd_rf_uw2453.c_uw2453_set_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uw2453_set_channel, @function
uw2453_set_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	UW2453_PRIV@PLT
	mov	rdi, rbp
	movsx	rbx, DWORD PTR [rax]
	call	zd_rf_to_chip@PLT
	xor	edx, edx
	mov	esi, r12d
	cmp	ebx, -1
	mov	rdi, rax
	mov	rbp, rax
	sete	dl
	call	uw2453_synth_set_channel@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR UW2453_AUTOCAL_VCO_CFG[rip]
	cmp	ebx, -1
	jne	.L7
	mov	rdi, rbp
	call	uw2453_write_vco_cfg@PLT
	test	eax, eax
	je	.L8
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	uw2453_init_mode@PLT
	test	eax, eax
	jne	.L1
	lea	rdi, ioreqs.1967[rip]
	call	ARRAY_SIZE@PLT
	lea	rsi, ioreqs.1967[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	zd_iowrite16a_locked@PLT
	test	eax, eax
	jne	.L1
	mov	esi, r12d
	mov	rdi, rbp
	call	uw2453_set_tx_gain_level@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR ZD_CR203[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, 6
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	zd_iowrite16_locked@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR uw2453_std_vco_cfg[rip]
	mov	edi, r12d
	mov	rbx, QWORD PTR [rax+rbx*8]
	call	CHAN_TO_PAIRIDX@PLT
	mov	rdi, rbp
	mov	esi, DWORD PTR [rbx+rax*4]
	call	uw2453_write_vco_cfg@PLT
	test	eax, eax
	jne	.L1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	uw2453_set_channel, .-uw2453_set_channel
	.section	.rodata
	.align 32
	.type	ioreqs.1967, @object
	.size	ioreqs.1967, 48
ioreqs.1967:
	.long	129
	.long	48
	.long	128
	.long	48
	.long	130
	.long	88
	.long	133
	.long	240
	.long	132
	.long	27
	.long	131
	.long	88
	.comm	uw2453_std_vco_cfg,8,8
	.comm	ZD_CR203,4,4
	.comm	UW2453_AUTOCAL_VCO_CFG,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_zd_rf_uw2453.c_uw2453_set_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uw2453_set_channel, %function
uw2453_set_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	bl	UW2453_PRIV
	mov	r3, r0
	mov	r0, r5
	ldr	r6, [r3]
	bl	zd_rf_to_chip
	cmn	r6, #1
	movne	r2, #0
	moveq	r2, #1
	mov	r1, r4
	mov	r5, r0
	bl	uw2453_synth_set_channel
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	cmn	r6, #1
	bne	.L3
	ldr	r3, .L7
	ldr	r1, [r3]
.L4:
	mov	r0, r5
	bl	uw2453_write_vco_cfg
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	bl	uw2453_init_mode
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r0, .L7+4
	bl	ARRAY_SIZE
	ldr	r1, .L7+4
	mov	r2, r0
	mov	r0, r5
	bl	zd_iowrite16a_locked
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r1, r4
	mov	r0, r5
	bl	uw2453_set_tx_gain_level
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L7+8
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #6
	ldr	r2, [r3]
	b	zd_iowrite16_locked
.L3:
	ldr	r3, .L7+12
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r6, [r3, r6, lsl #2]
	bl	CHAN_TO_PAIRIDX
	ldr	r1, [r6, r0, lsl #2]
	b	.L4
.L8:
	.align	2
.L7:
	.word	UW2453_AUTOCAL_VCO_CFG
	.word	.LANCHOR0
	.word	ZD_CR203
	.word	uw2453_std_vco_cfg
	.size	uw2453_set_channel, .-uw2453_set_channel
	.comm	uw2453_std_vco_cfg,4,4
	.comm	ZD_CR203,4,4
	.comm	UW2453_AUTOCAL_VCO_CFG,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ioreqs.4251, %object
	.size	ioreqs.4251, 48
ioreqs.4251:
	.word	129
	.word	48
	.word	128
	.word	48
	.word	130
	.word	88
	.word	133
	.word	240
	.word	132
	.word	27
	.word	131
	.word	88
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
