	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1211b_al7230b_set_channel
_zd1211b_al7230b_set_channel:           ## @zd1211b_al7230b_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
	movq	_chan_rv@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	-8(%rax,%rcx,8), %r14
	callq	_zd_rf_to_chip
	movq	%rax, %rbx
	movq	_ZD_CR240@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$87, %esi
	callq	_zd_iowrite16_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	_ZD_CR9@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$228, %esi
	callq	_zd_iowrite16_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_ZD_CR251@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_zd_iowrite16_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_std_rv@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_zd_rfwritev_cr_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	movl	$3969024, %esi                  ## imm = 0x3C9000
	callq	_zd_rfwrite_cr_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	movl	$15818072, %esi                 ## imm = 0xF15D58
	callq	_zd_rfwrite_cr_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	_ioreqs_sw@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite16a_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_zd_rfwritev_cr_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movl	$3969024, %esi                  ## imm = 0x3C9000
	callq	_zd_rfwrite_cr_locked
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$127, %esi
	callq	_zd_iowrite16_locked
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zd1211b_al7230b_finalize       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_chan_rv,8,3                    ## @chan_rv
	.comm	_ZD_CR240,4,2                   ## @ZD_CR240
	.comm	_ZD_CR9,4,2                     ## @ZD_CR9
	.comm	_ZD_CR251,4,2                   ## @ZD_CR251
	.comm	_std_rv,8,3                     ## @std_rv
	.comm	_ioreqs_sw,8,3                  ## @ioreqs_sw
	.no_dead_strip	_zd1211b_al7230b_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1211b_al7230b_set_channel
_zd1211b_al7230b_set_channel:           ; @zd1211b_al7230b_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
Lloh0:
	adrp	x8, _chan_rv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chan_rv@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, _ZD_CR240@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZD_CR240@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #87
	bl	_zd_iowrite16_locked
	cbnz	w0, LBB0_10
; %bb.1:
Lloh6:
	adrp	x8, _ZD_CR9@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZD_CR9@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #228
	bl	_zd_iowrite16_locked
	cbnz	w0, LBB0_10
; %bb.2:
Lloh9:
	adrp	x22, _ZD_CR251@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ZD_CR251@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #47
	bl	_zd_iowrite16_locked
	cbnz	w0, LBB0_10
; %bb.3:
Lloh11:
	adrp	x8, _std_rv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _std_rv@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_zd_rfwritev_cr_locked
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	mov	w1, #36864
	movk	w1, #60, lsl #16
	bl	_zd_rfwrite_cr_locked
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	w1, #23896
	movk	w1, #241, lsl #16
	bl	_zd_rfwrite_cr_locked
	cbnz	w0, LBB0_10
; %bb.6:
Lloh14:
	adrp	x8, _ioreqs_sw@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ioreqs_sw@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_zd_iowrite16a_locked
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_zd_rfwritev_cr_locked
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	w1, #36864
	movk	w1, #60, lsl #16
	bl	_zd_rfwrite_cr_locked
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #127
	bl	_zd_iowrite16_locked
	cbz	w0, LBB0_11
LBB0_10:
	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_11:
	mov	x0, x19
	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	_zd1211b_al7230b_finalize
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_chan_rv,8,3                    ; @chan_rv
	.comm	_ZD_CR240,4,2                   ; @ZD_CR240
	.comm	_ZD_CR9,4,2                     ; @ZD_CR9
	.comm	_ZD_CR251,4,2                   ; @ZD_CR251
	.comm	_std_rv,8,3                     ; @std_rv
	.comm	_ioreqs_sw,8,3                  ; @ioreqs_sw
	.no_dead_strip	_zd1211b_al7230b_set_channel
.subsections_via_symbols
