	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfs_check_chans_available
_dfs_check_chans_available:             ## @dfs_check_chans_available
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r8d
	movq	(%rdi), %rcx
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HOSTAPD_CHAN_DFS_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r9d
	movq	_HOSTAPD_CHAN_DFS_AVAILABLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r10d
	movslq	%esi, %rsi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %edi
	testl	%edi, %r11d
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%edi, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	%r9d, %edi
	cmpl	%r10d, %edi
	je	LBB0_6
	jmp	LBB0_8
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_7:
	movl	%r8d, %ecx
LBB0_8:
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	sete	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_DFS_MASK,4,2      ## @HOSTAPD_CHAN_DFS_MASK
	.comm	_HOSTAPD_CHAN_DFS_AVAILABLE,4,2 ## @HOSTAPD_CHAN_DFS_AVAILABLE
	.no_dead_strip	_dfs_check_chans_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfs_check_chans_available
_dfs_check_chans_available:             ; @dfs_check_chans_available
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
	mov	w9, w2
	ldr	x10, [x0]
Lloh0:
	adrp	x11, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x11, [x11, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	ldr	x14, [x10]
Lloh2:
	ldr	w10, [x11]
Lloh3:
	adrp	x11, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
Lloh5:
	adrp	x12, _HOSTAPD_CHAN_DFS_MASK@GOTPAGE
Lloh6:
	ldr	x12, [x12, _HOSTAPD_CHAN_DFS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
Lloh8:
	ldr	w12, [x12]
Lloh9:
	adrp	x13, _HOSTAPD_CHAN_DFS_AVAILABLE@GOTPAGE
Lloh10:
	ldr	x13, [x13, _HOSTAPD_CHAN_DFS_AVAILABLE@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	add	x14, x14, w1, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14, x8, lsl #2]
	tst	w10, w15
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w16, w11, w15
	and	w15, w12, w15
	cmp	w16, #0
	ccmp	w15, w13, #4, ne
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.5:
	mov	x8, x9
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	cmp	w8, w2
	cset	w0, eq
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_DFS_MASK,4,2      ; @HOSTAPD_CHAN_DFS_MASK
	.comm	_HOSTAPD_CHAN_DFS_AVAILABLE,4,2 ; @HOSTAPD_CHAN_DFS_AVAILABLE
	.no_dead_strip	_dfs_check_chans_available
.subsections_via_symbols
