	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dfs_state_freq
_set_dfs_state_freq:                    ## @set_dfs_state_freq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.3:
	movq	8(%rax), %rax
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax,%rdx,8)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rax,%rdx,8), %edi
	testl	%edi, %esi
	je	LBB0_7
## %bb.6:
	movq	_HOSTAPD_CHAN_DFS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %edi
	orl	%r14d, %edi
	movl	%edi, 4(%rax,%rdx,8)
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_8:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_dfs_state 0x%X for %d MHz"

	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_DFS_MASK,4,2      ## @HOSTAPD_CHAN_DFS_MASK
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Can't set DFS state for freq %d MHz"

	.no_dead_strip	_set_dfs_state_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dfs_state_freq
_set_dfs_state_freq:                    ; @set_dfs_state_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x9, [x21]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	ldr	x9, [x9, #8]
Lloh5:
	adrp	x10, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	add	x9, x9, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-4]
	cmp	w11, w19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x9]
	tst	w10, w11
	b.eq	LBB0_3
; %bb.6:
Lloh8:
	adrp	x8, _HOSTAPD_CHAN_DFS_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HOSTAPD_CHAN_DFS_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w11, w8
	orr	w8, w8, w20
	str	w8, [x9]
	mov	w0, #1
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_dfs_state 0x%X for %d MHz"

	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_DFS_MASK,4,2      ; @HOSTAPD_CHAN_DFS_MASK
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Can't set DFS state for freq %d MHz"

	.no_dead_strip	_set_dfs_state_freq
.subsections_via_symbols
