	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_start_dfs_cac          ## -- Begin function hostapd_start_dfs_cac
	.p2align	4, 0x90
_hostapd_start_dfs_cac:                 ## @hostapd_start_dfs_cac
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	movq	8(%r14), %rdi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.6:
	movl	48(%rbp), %r13d
	movl	40(%rbp), %r10d
	movl	32(%rbp), %r11d
	movl	8(%rdi), %eax
	movq	_IEEE80211_MODE_AP@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	shlq	$2, %rbx
	addq	(%rdi), %rbx
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	pushq	%rbx
	pushq	%rax
	pushq	%r13
	pushq	%r10
	pushq	%r11
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_hostapd_set_freq_params
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_5:
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%r14), %rax
	movl	(%r14), %edi
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	$1, (%r15)
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_os_get_reltime
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't start DFS CAC, DFS functionality is not enabled"

	.comm	_IEEE80211_MODE_AP,8,3          ## @IEEE80211_MODE_AP
L_.str.1:                               ## @.str.1
	.asciz	"Can't set freq params"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_start_dfs_cac          ; -- Begin function hostapd_start_dfs_cac
	.p2align	2
_hostapd_start_dfs_cac:                 ; @hostapd_start_dfs_cac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_6
; %bb.4:
	ldp	w10, w9, [x29, #20]
	ldr	w11, [x29, #16]
	ldr	w12, [x8, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x13, _IEEE80211_MODE_AP@GOTPAGE
Lloh1:
	ldr	x13, [x13, _IEEE80211_MODE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x13]
	add	x8, x8, x13, lsl #2
	str	x8, [sp, #16]
	add	x0, sp, #24
	stp	w9, w12, [sp, #8]
	stp	w11, w10, [sp]
	bl	_hostapd_set_freq_params
	cbz	x0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	add	x1, sp, #24
	blr	x8
	cbnz	w0, LBB0_8
; %bb.10:
	mov	w8, #1
	str	w8, [x19], #4
	mov	x0, x19
	bl	_os_get_reltime
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't start DFS CAC, DFS functionality is not enabled"

	.comm	_IEEE80211_MODE_AP,8,3          ; @IEEE80211_MODE_AP
l_.str.1:                               ; @.str.1
	.asciz	"Can't set freq params"

.subsections_via_symbols
