	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_remove_interface
_ath10k_remove_interface:               ## @ath10k_remove_interface
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r12
	leaq	32(%r12), %rdi
	callq	_cancel_work_sync
	leaq	28(%r12), %rdi
	callq	_cancel_delayed_work_sync
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_ath10k_spectral_vif_stop
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_2:
	movb	(%r12), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	orq	%rax, (%r15)
	leaq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	24(%r12), %rdi
	callq	_list_del
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	8(%r12), %rax
	movq	_WMI_VDEV_TYPE_AP@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	_WMI_VDEV_TYPE_IBSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_4:
	movl	20(%r12), %edi
	movq	(%r12), %rsi
	movl	12(%rbx), %edx
	callq	_ath10k_wmi_peer_delete
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_6:
	movq	(%r12), %rsi
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_ath10k_wait_for_peer_delete_done
	movl	16(%r12), %edi
	callq	_kfree
LBB0_7:
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath10k_dbg
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_ath10k_wmi_vdev_delete
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	(%r12), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_9:
	movq	_WMI_SERVICE_SYNC_DELETE_CMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	44(%r15), %rdi
	movq	_ATH10K_VDEV_DELETE_TIMEOUT_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movq	8(%r12), %rax
	cmpq	(%r14), %rax
	je	LBB0_14
## %bb.13:
	movq	_WMI_VDEV_TYPE_IBSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_14:
	movq	(%r12), %rsi
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_ath10k_wait_for_peer_deleted
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	(%r12), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	decl	40(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_bh
	movq	32(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_23
## %bb.18:
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jge	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	movq	(%rdi,%r13,8), %r14
	testq	%r14, %r14
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	%rbx, (%r14)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	12(%rbx), %edx
	movq	(%r12), %rcx
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	$0, (%r14)
	movq	32(%r15), %rdi
	jmp	LBB0_22
LBB0_23:
	movq	%r12, %rdi
	callq	_ath10k_mac_vif_beacon_cleanup
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_ath10k_peer_cleanup
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_ath10k_mac_txq_unref
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.24:
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_ath10k_monitor_recalc
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_26:
	movq	%r15, %rdi
	callq	_ath10k_mac_txpower_recalc
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_28
## %bb.27:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_28:
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r12, %rdi
	callq	_ath10k_mac_vif_tx_unlock_all
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_ath10k_mac_txq_unref
	jmp	LBB0_29
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_29:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to stop spectral for vdev %i: %d\n"

	.comm	_WMI_VDEV_TYPE_AP,8,3           ## @WMI_VDEV_TYPE_AP
	.comm	_WMI_VDEV_TYPE_IBSS,8,3         ## @WMI_VDEV_TYPE_IBSS
L_.str.1:                               ## @.str.1
	.asciz	"failed to submit AP/IBSS self-peer removal on vdev %i: %d\n"

	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
L_.str.2:                               ## @.str.2
	.asciz	"mac vdev %i delete (remove interface)\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to delete WMI vdev %i: %d\n"

	.comm	_WMI_SERVICE_SYNC_DELETE_CMDS,4,2 ## @WMI_SERVICE_SYNC_DELETE_CMDS
	.comm	_ATH10K_VDEV_DELETE_TIMEOUT_HZ,4,2 ## @ATH10K_VDEV_DELETE_TIMEOUT_HZ
L_.str.4:                               ## @.str.4
	.asciz	"Timeout in receiving vdev delete response\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to remove AP self-peer on vdev %i: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"found vif peer %pM entry on vdev %i after it was supposedly removed\n"

	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
L_.str.7:                               ## @.str.7
	.asciz	"failed to recalc monitor: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to recalc tx power: %d\n"

	.no_dead_strip	_ath10k_remove_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_remove_interface
_ath10k_remove_interface:               ; @ath10k_remove_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x22, [x1, #16]
	add	x0, x22, #32
	bl	_cancel_work_sync
	add	x0, x22, #28
	bl	_cancel_delayed_work_sync
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x22
	bl	_ath10k_spectral_vif_stop
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	stp	x8, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_2:
	ldr	x8, [x22]
	mov	w9, #1
	lsl	x8, x9, x8
	ldr	x9, [x19]
	orr	x8, x9, x8
	mov	x23, x19
	str	x8, [x23], #24
	mov	x0, x23
	bl	_spin_lock_bh
	add	x0, x22, #24
	bl	_list_del
	mov	x0, x23
	bl	_spin_unlock_bh
	ldr	x8, [x22, #8]
Lloh2:
	adrp	x25, _WMI_VDEV_TYPE_AP@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WMI_VDEV_TYPE_AP@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh4:
	adrp	x24, _WMI_VDEV_TYPE_IBSS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WMI_VDEV_TYPE_IBSS@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x22, #20]
	ldr	x1, [x22]
	ldr	w2, [x20, #12]
	bl	_ath10k_wmi_peer_delete
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x22]
	stp	x8, x0, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_5:
	ldr	x1, [x22]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_ath10k_wait_for_peer_delete_done
	ldr	w0, [x22, #16]
	bl	_kfree
LBB0_6:
Lloh8:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x3, [x22]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	ldr	x1, [x22]
	mov	x0, x19
	bl	_ath10k_wmi_vdev_delete
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x22]
	stp	x8, x0, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_8:
Lloh15:
	adrp	x8, _WMI_SERVICE_SYNC_DELETE_CMDS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WMI_SERVICE_SYNC_DELETE_CMDS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.9:
	add	x0, x19, #44
Lloh18:
	adrp	x8, _ATH10K_VDEV_DELETE_TIMEOUT_HZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATH10K_VDEV_DELETE_TIMEOUT_HZ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_27
LBB0_10:
	ldr	x8, [x22, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_12:
	ldr	x1, [x22]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_ath10k_wait_for_peer_deleted
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_14
; %bb.13:
	ldr	x8, [x22]
	stp	x8, x0, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_14:
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	w8, [x19, #40]
	sub	w8, w8, #1
	str	w8, [x19, #40]
	mov	x0, x23
	bl	_spin_unlock_bh
LBB0_15:
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.16:
	mov	x25, #0
Lloh23:
	adrp	x24, l_.str.6@PAGE
Lloh24:
	add	x24, x24, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.ge	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	ldr	x26, [x0, x25, lsl #3]
	cbz	x26, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x26]
	cmp	x8, x20
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x22]
	ldr	w9, [x20, #12]
	stp	x9, x8, [sp]
	mov	x0, x19
	mov	x1, x24
	bl	_ath10k_warn
	str	xzr, [x26]
	ldr	x0, [x19, #32]
	b	LBB0_17
LBB0_21:
	mov	x0, x22
	bl	_ath10k_mac_vif_beacon_cleanup
	mov	x0, x23
	bl	_spin_unlock_bh
	ldr	x1, [x22]
	mov	x0, x19
	bl	_ath10k_peer_cleanup
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_ath10k_mac_txq_unref
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_ath10k_monitor_recalc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_24
; %bb.23:
	str	x0, [sp]
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_24:
	mov	x0, x19
	bl	_ath10k_mac_txpower_recalc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_26
; %bb.25:
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_26:
	add	x23, x19, #12
	mov	x0, x23
	bl	_spin_lock_bh
	mov	x0, x22
	bl	_ath10k_mac_vif_tx_unlock_all
	mov	x0, x23
	bl	_spin_unlock_bh
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_ath10k_mac_txq_unref
	b	LBB0_28
LBB0_27:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_28:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to stop spectral for vdev %i: %d\n"

	.comm	_WMI_VDEV_TYPE_AP,8,3           ; @WMI_VDEV_TYPE_AP
	.comm	_WMI_VDEV_TYPE_IBSS,8,3         ; @WMI_VDEV_TYPE_IBSS
l_.str.1:                               ; @.str.1
	.asciz	"failed to submit AP/IBSS self-peer removal on vdev %i: %d\n"

	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
l_.str.2:                               ; @.str.2
	.asciz	"mac vdev %i delete (remove interface)\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to delete WMI vdev %i: %d\n"

	.comm	_WMI_SERVICE_SYNC_DELETE_CMDS,4,2 ; @WMI_SERVICE_SYNC_DELETE_CMDS
	.comm	_ATH10K_VDEV_DELETE_TIMEOUT_HZ,4,2 ; @ATH10K_VDEV_DELETE_TIMEOUT_HZ
l_.str.4:                               ; @.str.4
	.asciz	"Timeout in receiving vdev delete response\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to remove AP self-peer on vdev %i: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"found vif peer %pM entry on vdev %i after it was supposedly removed\n"

	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
l_.str.7:                               ; @.str.7
	.asciz	"failed to recalc monitor: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to recalc tx power: %d\n"

	.no_dead_strip	_ath10k_remove_interface
.subsections_via_symbols
