	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_remain_on_channel
_ath10k_remain_on_channel:              ## @ath10k_remain_on_channel
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	(%rsi), %r12
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ath10k_mac_tdls_vif_stations_count
	testq	%rax, %rax
	jle	LBB0_4
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	48(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	4(%r13), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.5:
	cmpl	$131, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.7:
	leaq	36(%r13), %rdi
	callq	_reinit_completion
	leaq	32(%r13), %rdi
	callq	_reinit_completion
	leaq	20(%r13), %rdi
	callq	_reinit_completion
	movabsq	$4294967424, %rax               ## imm = 0x100000080
	movq	%rax, 4(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movl	(%r14), %eax
	movl	%eax, 24(%r13)
	movl	$1, 12(%r13)
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_11
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	negl	%ebx
	jmp	LBB0_3
LBB0_11:
	movq	40(%r13), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rbx
	addq	%rbx, %rbx
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ath10k_wmi_start_scan_init
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_ATH10K_SCAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$1, -112(%rbp)
	movl	(%r14), %eax
	movq	-72(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, -80(%rbp)
	movq	%rbx, -88(%rbp)
	movq	%rbx, -96(%rbp)
	movq	_WMI_SCAN_FLAG_PASSIVE@GOTPCREL(%rip), %rax
	movl	-104(%rbp), %ecx
	orl	(%rax), %ecx
	movq	_WMI_SCAN_FILTER_PROBE_REQ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -104(%rbp)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, -108(%rbp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ath10k_start_scan
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	$130, 4(%r13)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_3
LBB0_13:
	leaq	20(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %esi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	40(%r13), %rbx
	leaq	16(%r13), %r15
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ieee80211_queue_delayed_work
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	%r13, %rdi
	callq	_ath10k_scan_stop
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_17:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ATH10K_SCAN_ID,4,2             ## @ATH10K_SCAN_ID
	.comm	_WMI_SCAN_FLAG_PASSIVE,4,2      ## @WMI_SCAN_FLAG_PASSIVE
	.comm	_WMI_SCAN_FILTER_PROBE_REQ,4,2  ## @WMI_SCAN_FILTER_PROBE_REQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to start roc scan: %d\n"

	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"failed to switch to channel for roc scan\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to stop scan: %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ath10k_remain_on_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ath10k_remain_on_channel
lCPI0_0:
	.long	128                             ; 0x80
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ath10k_remain_on_channel:              ; @ath10k_remain_on_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x19, [x0]
	ldr	x24, [x1]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x21
	bl	_ath10k_mac_tdls_vif_stations_count
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	add	x21, x19, #48
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	w8, [x19, #4]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_9
; %bb.5:
	cmp	w8, #131
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.7:
	add	x0, x19, #36
	bl	_reinit_completion
	add	x0, x19, #32
	bl	_reinit_completion
	add	x0, x19, #20
	bl	_reinit_completion
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	ldr	w8, [x24]
	str	w8, [x19, #28]
	ldr	w8, [x22]
	str	w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_11
LBB0_9:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_spin_unlock_bh
	cbz	w23, LBB0_11
; %bb.10:
	neg	w22, w23
	b	LBB0_3
LBB0_11:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	lsl	x23, x8, #1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_wmi_start_scan_init
	ldr	w8, [x24]
	str	w8, [sp, #60]
Lloh7:
	adrp	x8, _ATH10K_SCAN_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH10K_SCAN_ID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	w9, #1
	str	w8, [sp, #56]
	str	w9, [sp, #8]
	ldr	w8, [x22]
	ldr	x9, [sp, #48]
	str	w8, [x9]
	stp	x23, x23, [sp, #32]
	str	x23, [sp, #24]
Lloh10:
	adrp	x8, _WMI_SCAN_FLAG_PASSIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WMI_SCAN_FLAG_PASSIVE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _WMI_SCAN_FILTER_PROBE_REQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WMI_SCAN_FILTER_PROBE_REQ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w20, w8, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_start_scan
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
	str	x22, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	mov	x0, x21
	bl	_spin_lock_bh
	mov	w8, #130
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_3
LBB0_13:
	add	x0, x19, #20
Lloh18:
	adrp	x8, _HZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #1
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_15
; %bb.14:
	ldr	x21, [x19, #40]
	add	x22, x19, #16
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_ieee80211_queue_delayed_work
	mov	w22, #0
	b	LBB0_3
LBB0_15:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	mov	x0, x19
	bl	_ath10k_scan_stop
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_17
; %bb.16:
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_17:
Lloh25:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ATH10K_SCAN_ID,4,2             ; @ATH10K_SCAN_ID
	.comm	_WMI_SCAN_FLAG_PASSIVE,4,2      ; @WMI_SCAN_FLAG_PASSIVE
	.comm	_WMI_SCAN_FILTER_PROBE_REQ,4,2  ; @WMI_SCAN_FILTER_PROBE_REQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to start roc scan: %d\n"

	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"failed to switch to channel for roc scan\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to stop scan: %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ath10k_remain_on_channel
.subsections_via_symbols
