	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_is_dfs_required        ## -- Begin function hostapd_is_dfs_required
	.p2align	4, 0x90
_hostapd_is_dfs_required:               ## @hostapd_is_dfs_required
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%rax), %rax
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dfs_get_start_chan_idx
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.4:
	movl	%eax, %r14d
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dfs_get_used_n_chans
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dfs_check_chans_radar
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movl	-20(%rbp), %esi
	testl	%esi, %esi
	js	LBB0_8
## %bb.6:
	movl	-24(%rbp), %edx
	movl	$0, %eax
	testl	%edx, %edx
	jle	LBB0_12
## %bb.7:
	movq	%rbx, %rdi
	callq	_dfs_check_chans_radar
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_is_dfs_required        ; -- Begin function hostapd_is_dfs_required
	.p2align	2
_hostapd_is_dfs_required:               ; @hostapd_is_dfs_required
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_dfs_get_start_chan_idx
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_dfs_get_used_n_chans
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dfs_check_chans_radar
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w1, [sp, #8]
	tbnz	w1, #31, LBB0_9
; %bb.6:
	ldr	w2, [sp, #12]
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_dfs_check_chans_radar
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
.subsections_via_symbols
