	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1211_al7230b_set_channel
_zd1211_al7230b_set_channel:            ## @zd1211_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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	%rax, %rdi
	movl	$87, %esi
	movl	$129, %edx
	callq	_zd_iowrite16_locked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	movl	$47, %esi
	movl	$128, %edx
	callq	_zd_iowrite16_locked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	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_8
## %bb.3:
	movq	%rbx, %rdi
	movl	$3969024, %esi                  ## imm = 0x3C9000
	callq	_zd_rfwrite_cr_locked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	movl	$15818072, %esi                 ## imm = 0xF15D58
	callq	_zd_rfwrite_cr_locked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	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_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_zd_rfwritev_cr_locked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$3969024, %esi                  ## imm = 0x3C9000
	callq	_zd_rfwrite_cr_locked
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	_zd1211_al7230b_set_channel.ioreqs(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zd_iowrite16a_locked           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_chan_rv,8,3                    ## @chan_rv
	.section	__TEXT,__const
	.p2align	4                               ## @zd1211_al7230b_set_channel.ioreqs
_zd1211_al7230b_set_channel.ioreqs:
	.long	128                             ## 0x80
	.long	63                              ## 0x3f
	.long	130                             ## 0x82
	.long	6                               ## 0x6
	.long	129                             ## 0x81
	.long	8                               ## 0x8

	.comm	_std_rv,8,3                     ## @std_rv
	.comm	_ioreqs_sw,8,3                  ## @ioreqs_sw
	.no_dead_strip	_zd1211_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 zd1211_al7230b_set_channel
_zd1211_al7230b_set_channel:            ; @zd1211_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
	mov	w1, #87
	mov	w2, #129
	bl	_zd_iowrite16_locked
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	mov	w1, #47
	mov	w2, #128
	bl	_zd_iowrite16_locked
	cbnz	w0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _std_rv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _std_rv@GOTPAGEOFF]
Lloh5:
	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_8
; %bb.3:
	mov	x0, x19
	mov	w1, #36864
	movk	w1, #60, lsl #16
	bl	_zd_rfwrite_cr_locked
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	w1, #23896
	movk	w1, #241, lsl #16
	bl	_zd_rfwrite_cr_locked
	cbnz	w0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _ioreqs_sw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ioreqs_sw@GOTPAGEOFF]
Lloh8:
	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_8
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_zd_rfwritev_cr_locked
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #36864
	movk	w1, #60, lsl #16
	bl	_zd_rfwrite_cr_locked
	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:
Lloh9:
	adrp	x20, _zd1211_al7230b_set_channel.ioreqs@PAGE
Lloh10:
	add	x20, x20, _zd1211_al7230b_set_channel.ioreqs@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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_iowrite16a_locked
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_chan_rv,8,3                    ; @chan_rv
	.section	__TEXT,__const
	.p2align	2                               ; @zd1211_al7230b_set_channel.ioreqs
_zd1211_al7230b_set_channel.ioreqs:
	.long	128                             ; 0x80
	.long	63                              ; 0x3f
	.long	130                             ; 0x82
	.long	6                               ; 0x6
	.long	129                             ; 0x81
	.long	8                               ; 0x8

	.comm	_std_rv,8,3                     ; @std_rv
	.comm	_ioreqs_sw,8,3                  ; @ioreqs_sw
	.no_dead_strip	_zd1211_al7230b_set_channel
.subsections_via_symbols
