	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_start_radar_detection
_mwifiex_cfg80211_start_radar_detection: ## @mwifiex_cfg80211_start_radar_detection
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rdi
	callq	_mwifiex_netdev_get_priv
	movq	16(%rax), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mwifiex_is_11h_active
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, -40(%rbp)
	movl	%r14d, -48(%rbp)
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_HostCmd_CMD_CHAN_REPORT_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	movl	4(%rbx), %r15d
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	16(%rbx), %rdi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_mwifiex_dbg
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mwifiex_11h_activate
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_mwifiex_dbg
	movl	$-1, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, 12(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"radar detection: scan already in process...\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"Enable 11h extensions in FW\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to activate 11h extensions!!"

	.comm	_HostCmd_CMD_CHAN_REPORT_REQUEST,4,2 ## @HostCmd_CMD_CHAN_REPORT_REQUEST
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_cfg80211_start_radar_detection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_start_radar_detection
_mwifiex_cfg80211_start_radar_detection: ; @mwifiex_cfg80211_start_radar_detection
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x0, x1
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_mwifiex_is_11h_active
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x21, [sp, #8]
	str	w20, [sp]
	add	x0, x19, #8
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
Lloh8:
	adrp	x8, _HostCmd_CMD_CHAN_REPORT_REQUEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HostCmd_CMD_CHAN_REPORT_REQUEST@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w3, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_7
; %bb.4:
	mov	w0, #-1
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19, #16]
Lloh14:
	adrp	x8, _INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	bl	_mwifiex_11h_activate
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x0, [x19, #16]
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_queue_delayed_work
	mov	w0, #0
LBB0_8:
	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
LBB0_9:
	str	w22, [x19, #12]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radar detection: scan already in process...\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"Enable 11h extensions in FW\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to activate 11h extensions!!"

	.comm	_HostCmd_CMD_CHAN_REPORT_REQUEST,4,2 ; @HostCmd_CMD_CHAN_REPORT_REQUEST
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_cfg80211_start_radar_detection
.subsections_via_symbols
