	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_start_scan
_ath10k_start_scan:                     ## @ath10k_start_scan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	addq	$24, %rdi
	callq	_lockdep_assert_held
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ath10k_wmi_start_scan
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	leaq	16(%r14), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_timeout
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	callq	_spin_lock_bh
	movq	8(%r14), %r15
	movq	_ATH10K_SCAN_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	cmpq	%rbx, %r15
	jne	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	callq	_ath10k_scan_stop
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to stop scan: %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ATH10K_SCAN_IDLE,8,3           ## @ATH10K_SCAN_IDLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath10k_start_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_start_scan
_ath10k_start_scan:                     ; @ath10k_start_scan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #24
	bl	_lockdep_assert_held
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_wmi_start_scan
	cbnz	w0, LBB0_9
; %bb.1:
	add	x0, x19, #16
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x8, _ATH10K_SCAN_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_SCAN_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_spin_unlock_bh
	cmp	x20, x21
	b.ne	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_ath10k_scan_stop
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_6:
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to stop scan: %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ATH10K_SCAN_IDLE,8,3           ; @ATH10K_SCAN_IDLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath10k_start_scan
.subsections_via_symbols
