	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfs_chan_range_available
_dfs_chan_range_available:              ## @dfs_chan_range_available
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	%edx, %edi
	callq	_num_chan_to_bw
	leal	(%r14,%r15), %edx
	xorl	%ecx, %ecx
	cmpl	(%r13), %edx
	jg	LBB0_11
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%r15d, %r12
	shlq	$3, %r12
	addq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_chan_pri_allowed
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	movq	(%r12), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dfs_get_chan_data
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	xorl	%ecx, %ecx
	testq	%r14, %r14
	sete	%cl
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_chan_bw_allowed
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %ebx
	movl	%r15d, %esi
	callq	_dfs_channel_available
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$20, %r14
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_10:
	movl	$1, %ecx
	jmp	LBB0_11
LBB0_9:
	xorl	%ecx, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dfs_chan_range_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfs_chan_range_available
_dfs_chan_range_available:              ; @dfs_chan_range_available
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_num_chan_to_bw
	ldr	w8, [x21]
	add	w9, w24, w20
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x22, x0
	ldr	x8, [x21, #8]
	add	x23, x8, w20, sxtw #3
	mov	x0, x23
	bl	_chan_pri_allowed
	cbz	w0, LBB0_10
; %bb.3:
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x25, #0
	mov	w8, #20
	umull	x26, w24, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x25, x8
	mov	x0, x21
	mov	x2, x20
	bl	_dfs_get_chan_data
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	cmp	x25, #0
	cset	w3, eq
	mov	x1, x22
	mov	w2, #1
	bl	_chan_bw_allowed
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_dfs_channel_available
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #20
	cmp	x26, x25
	b.ne	LBB0_5
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dfs_chan_range_available
.subsections_via_symbols
