	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_channelfreq_set
_ctrl_channelfreq_set:                  ## @ctrl_channelfreq_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.1:
	movq	_FREQTABLE_SIZE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	ja	LBB0_7
## %bb.2:
	movq	8(%rax), %rsi
	leal	-1(%rcx), %edi
	movl	%edx, (%rsi,%rdi,4)
	cmpq	$0, 24(%rax)
	je	LBB0_5
## %bb.3:
	cmpl	%ecx, 16(%rax)
	jne	LBB0_7
## %bb.4:
	movl	$0, 16(%rax)
	jmp	LBB0_7
LBB0_5:
	cmpl	%ecx, 20(%rax)
	jne	LBB0_7
## %bb.6:
	movl	$0, 20(%rax)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREQTABLE_SIZE,4,2             ## @FREQTABLE_SIZE
	.no_dead_strip	_ctrl_channelfreq_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_channelfreq_set
_ctrl_channelfreq_set:                  ; @ctrl_channelfreq_set
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _FREQTABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FREQTABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w9, w10, #2, ne
	b.hi	LBB0_6
; %bb.1:
	ldr	x10, [x8, #8]
	sub	w11, w9, #1
	str	w2, [x10, w11, uxtw #2]
	ldr	x10, [x8, #24]
	cbz	x10, LBB0_4
; %bb.2:
	ldr	w10, [x8, #16]
	cmp	w10, w9
	b.ne	LBB0_6
; %bb.3:
	str	wzr, [x8, #16]
	mov	w0, #0
	ret
LBB0_4:
	ldr	w10, [x8, #20]
	cmp	w10, w9
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x8, #20]
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FREQTABLE_SIZE,4,2             ; @FREQTABLE_SIZE
	.no_dead_strip	_ctrl_channelfreq_set
.subsections_via_symbols
