	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uw2453_set_channel
_uw2453_set_channel:                    ## @uw2453_set_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_UW2453_PRIV
	movslq	(%rax), %r12
	xorl	%ebx, %ebx
	cmpq	$-1, %r12
	sete	%bl
	movq	%r15, %rdi
	callq	_zd_rf_to_chip
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_uw2453_synth_set_channel
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	cmpl	$-1, %r12d
	je	LBB0_2
## %bb.3:
	movq	_uw2453_std_vco_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rbx
	movl	%r14d, %edi
	callq	_CHAN_TO_PAIRIDX
	leaq	(%rbx,%rax,4), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_UW2453_AUTOCAL_VCO_CFG@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_uw2453_write_vco_cfg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_uw2453_init_mode
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	_uw2453_set_channel.ioreqs(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite16a_locked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_uw2453_set_tx_gain_level
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ZD_CR203@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$6, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zd_iowrite16_locked            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @uw2453_set_channel.ioreqs
_uw2453_set_channel.ioreqs:
	.long	129                             ## 0x81
	.long	48                              ## 0x30
	.long	128                             ## 0x80
	.long	48                              ## 0x30
	.long	130                             ## 0x82
	.long	88                              ## 0x58
	.long	133                             ## 0x85
	.long	240                             ## 0xf0
	.long	132                             ## 0x84
	.long	27                              ## 0x1b
	.long	131                             ## 0x83
	.long	88                              ## 0x58

	.comm	_UW2453_AUTOCAL_VCO_CFG,4,2     ## @UW2453_AUTOCAL_VCO_CFG
	.comm	_uw2453_std_vco_cfg,8,3         ## @uw2453_std_vco_cfg
	.comm	_ZD_CR203,4,2                   ## @ZD_CR203
	.no_dead_strip	_uw2453_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uw2453_set_channel
_uw2453_set_channel:                    ; @uw2453_set_channel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_UW2453_PRIV
	ldrsw	x22, [x0]
	cmn	x22, #1
	cset	w21, eq
	mov	x0, x20
	bl	_zd_rf_to_chip
	mov	x20, x0
	mov	x1, x19
	mov	x2, x21
	bl	_uw2453_synth_set_channel
	cbnz	w0, LBB0_8
; %bb.1:
	cmn	w22, #1
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _uw2453_std_vco_cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uw2453_std_vco_cfg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8, x22, lsl #3]
	mov	x0, x19
	bl	_CHAN_TO_PAIRIDX
	add	x8, x21, x0, lsl #2
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _UW2453_AUTOCAL_VCO_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UW2453_AUTOCAL_VCO_CFG@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_uw2453_write_vco_cfg
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_uw2453_init_mode
	cbnz	w0, LBB0_8
; %bb.6:
Lloh5:
	adrp	x21, _uw2453_set_channel.ioreqs@PAGE
Lloh6:
	add	x21, x21, _uw2453_set_channel.ioreqs@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_zd_iowrite16a_locked
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_uw2453_set_tx_gain_level
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh7:
	adrp	x8, _ZD_CR203@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZD_CR203@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #6
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_zd_iowrite16_locked
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @uw2453_set_channel.ioreqs
_uw2453_set_channel.ioreqs:
	.long	129                             ; 0x81
	.long	48                              ; 0x30
	.long	128                             ; 0x80
	.long	48                              ; 0x30
	.long	130                             ; 0x82
	.long	88                              ; 0x58
	.long	133                             ; 0x85
	.long	240                             ; 0xf0
	.long	132                             ; 0x84
	.long	27                              ; 0x1b
	.long	131                             ; 0x83
	.long	88                              ; 0x58

	.comm	_UW2453_AUTOCAL_VCO_CFG,4,2     ; @UW2453_AUTOCAL_VCO_CFG
	.comm	_uw2453_std_vco_cfg,8,3         ; @uw2453_std_vco_cfg
	.comm	_ZD_CR203,4,2                   ; @ZD_CR203
	.no_dead_strip	_uw2453_set_channel
.subsections_via_symbols
