	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1211_al2230_set_channel
_zd1211_al2230_set_channel:             ## @zd1211_al2230_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_zd1211_al2230_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	-8(%rax,%rcx,8), %rbx
	callq	_zd_rf_to_chip
	movq	%rax, %r14
	movq	_RF_RV_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_zd_rfwritev_locked
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	_zd1211_al2230_set_channel.ioreqs(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_zd_iowrite16a_locked           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_zd1211_al2230_table,8,3        ## @zd1211_al2230_table
	.section	__TEXT,__const
	.p2align	4                               ## @zd1211_al2230_set_channel.ioreqs
_zd1211_al2230_set_channel.ioreqs:
	.long	129                             ## 0x81
	.long	40                              ## 0x28
	.long	128                             ## 0x80
	.long	6                               ## 0x6

	.comm	_RF_RV_BITS,4,2                 ## @RF_RV_BITS
	.no_dead_strip	_zd1211_al2230_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1211_al2230_set_channel
_zd1211_al2230_set_channel:             ; @zd1211_al2230_set_channel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _zd1211_al2230_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zd1211_al2230_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	w9, w1, #1
	ldr	x20, [x8, w9, sxtw #3]
	bl	_zd_rf_to_chip
	mov	x19, x0
Lloh3:
	adrp	x8, _RF_RV_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF_RV_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x20
	mov	w2, #3
	bl	_zd_rfwritev_locked
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x20, _zd1211_al2230_set_channel.ioreqs@PAGE
Lloh7:
	add	x20, x20, _zd1211_al2230_set_channel.ioreqs@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_zd_iowrite16a_locked
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_zd1211_al2230_table,8,3        ; @zd1211_al2230_table
	.section	__TEXT,__const
	.p2align	2                               ; @zd1211_al2230_set_channel.ioreqs
_zd1211_al2230_set_channel.ioreqs:
	.long	129                             ; 0x81
	.long	40                              ; 0x28
	.long	128                             ; 0x80
	.long	6                               ; 0x6

	.comm	_RF_RV_BITS,4,2                 ; @RF_RV_BITS
	.no_dead_strip	_zd1211_al2230_set_channel
.subsections_via_symbols
