	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uw2453_switch_radio_on
_uw2453_switch_radio_on:                ## @uw2453_switch_radio_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_zd_rf_to_chip
	movq	%rax, %rbx
	movq	_ZD_CR11@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -44(%rbp)
	movq	_ZD_CR251@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	$63, -32(%rbp)
	xorl	%edi, %edi
	movl	$155540, %esi                   ## imm = 0x25F94
	callq	_UW2453_REGWRITE
	movq	_RF_RV_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_zd_rfwrite_locked
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_zd_chip_is_zd1211b
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$127, -32(%rbp)
LBB0_3:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite16a_locked
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD_CR11,4,2                    ## @ZD_CR11
	.comm	_ZD_CR251,4,2                   ## @ZD_CR251
	.comm	_RF_RV_BITS,4,2                 ## @RF_RV_BITS
	.no_dead_strip	_uw2453_switch_radio_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function uw2453_switch_radio_on
lCPI0_0:
	.long	63                              ; 0x3f
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_uw2453_switch_radio_on:                ; @uw2453_switch_radio_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_zd_rf_to_chip
	mov	x19, x0
Lloh3:
	adrp	x8, _ZD_CR11@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZD_CR11@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [sp]
Lloh6:
	adrp	x8, _ZD_CR251@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZD_CR251@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	mov	w0, #0
	mov	w1, #24468
	movk	w1, #2, lsl #16
	bl	_UW2453_REGWRITE
	mov	x1, x0
Lloh11:
	adrp	x8, _RF_RV_BITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RF_RV_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_zd_rfwrite_locked
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_zd_chip_is_zd1211b
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #127
	str	w8, [sp, #16]
LBB0_3:
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_zd_iowrite16a_locked
LBB0_4:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD_CR11,4,2                    ; @ZD_CR11
	.comm	_ZD_CR251,4,2                   ; @ZD_CR251
	.comm	_RF_RV_BITS,4,2                 ; @RF_RV_BITS
	.no_dead_strip	_uw2453_switch_radio_on
.subsections_via_symbols
