	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dfs_check_chans_radar
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dfs_check_chans_radar:                 ## @dfs_check_chans_radar
	.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:
	movq	(%rdi), %rax
	movq	(%rax), %r9
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movslq	%esi, %r8
	movl	%edx, %esi
	cmpl	$8, %edx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%esi, %edx
	andl	$-8, %edx
	movd	%r11d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rax
	movq	%rax, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r10, %rax
	andq	$-2, %rax
	leaq	(%r9,%r8,4), %rcx
	addq	$48, %rcx
	pxor	%xmm3, %xmm3
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [2,2,2,2]
	pxor	%xmm6, %xmm6
	pxor	%xmm5, %xmm5
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rcx,%rdi,4), %xmm7
	movdqu	-32(%rcx,%rdi,4), %xmm4
	movdqu	-16(%rcx,%rdi,4), %xmm1
	movdqu	(%rcx,%rdi,4), %xmm2
	pand	%xmm0, %xmm7
	pand	%xmm0, %xmm4
	pcmpeqd	%xmm3, %xmm7
	paddd	%xmm6, %xmm7
	pcmpeqd	%xmm3, %xmm4
	paddd	%xmm5, %xmm4
	pand	%xmm0, %xmm1
	pcmpeqd	%xmm3, %xmm1
	pand	%xmm0, %xmm2
	pcmpeqd	%xmm3, %xmm2
	paddd	%xmm8, %xmm1
	paddd	%xmm7, %xmm1
	paddd	%xmm8, %xmm2
	paddd	%xmm4, %xmm2
	addq	$16, %rdi
	movdqa	%xmm1, %xmm6
	movdqa	%xmm2, %xmm5
	addq	$-2, %rax
	jne	LBB0_7
## %bb.8:
	testb	$1, %r10b
	je	LBB0_10
LBB0_9:
	addq	%r8, %rdi
	movdqu	(%r9,%rdi,4), %xmm3
	movdqu	16(%r9,%rdi,4), %xmm4
	pand	%xmm0, %xmm3
	pand	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm0, %xmm3
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm0, %xmm4
	paddd	%xmm4, %xmm2
	pcmpeqd	%xmm0, %xmm0
	psubd	%xmm0, %xmm1
	psubd	%xmm0, %xmm2
LBB0_10:
	paddd	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%rsi, %rdx
	je	LBB0_13
LBB0_11:
	leaq	(%r9,%r8,4), %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	andl	%r11d, %edi
	cmpl	$1, %edi
	sbbl	$-1, %eax
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_12
LBB0_13:
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	pxor	%xmm2, %xmm2
	testb	$1, %r10b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.no_dead_strip	_dfs_check_chans_radar
.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_radar
_dfs_check_chans_radar:                 ; @dfs_check_chans_radar
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x8, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sxtw	x11, w1
	mov	w10, w2
	cmp	w2, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x12, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	x12, x10, #0xfffffff0
	dup.4s	v0, w8
	add	x13, x9, x11, lsl #2
	add	x13, x13, #32
	movi.2d	v1, #0000000000000000
	mov	x14, x12
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x13, #-32]
	ldp	q7, q16, [x13], #64
	cmtst.4s	v5, v0, v5
	cmtst.4s	v6, v0, v6
	cmtst.4s	v7, v0, v7
	cmtst.4s	v16, v0, v16
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	sub.4s	v4, v4, v16
	subs	x14, x14, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v2, v1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w0, s0
	cmp	x12, x10
	b.eq	LBB0_9
LBB0_7:
	add	x11, x12, x11
	add	x9, x9, x11, lsl #2
	sub	x10, x10, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	tst	w8, w11
	cinc	w0, w0, ne
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.no_dead_strip	_dfs_check_chans_radar
.subsections_via_symbols
