	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wl1271_op_remove_interface
___wl1271_op_remove_interface:          ## @__wl1271_op_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %rbx
	movq	(%rax), %r13
	movq	_BSS_TYPE_AP_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_WLVIF_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	144(%rbx), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_42
## %bb.1:
	movq	(%r14), %rax
	movq	_WLCORE_STATE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_42
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_info
	movq	88(%r14), %rax
	movq	_WL1271_SCAN_STATE_IDLE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_5
## %bb.3:
	cmpq	%rbx, 112(%r14)
	jne	LBB0_5
## %bb.4:
	movl	$1, -48(%rbp)
	movq	%r14, %rdi
	callq	_wl12xx_rearm_tx_watchdog_locked
	movq	(%r12), %rax
	movq	%rax, 88(%r14)
	movl	104(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 112(%r14)
	movq	$0, 96(%r14)
	movl	68(%r14), %edi
	leaq	-48(%rbp), %rsi
	callq	_ieee80211_scan_completed
LBB0_5:
	cmpq	%rbx, 80(%r14)
	je	LBB0_6
## %bb.7:
	cmpq	%r15, 72(%r14)
	je	LBB0_8
LBB0_9:
	movq	_WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_tx_reset_wlvif
	movq	_WL12XX_INVALID_LINK_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 136(%rbx)
	movq	(%rbx), %rcx
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_23
## %bb.22:
	movq	_BSS_TYPE_IBSS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_23
## %bb.24:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 88(%rbx)
	movq	%rax, 80(%rbx)
	leaq	76(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wl12xx_free_rate_policy
	leaq	72(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wl12xx_free_rate_policy
	movq	_CONF_TX_MAX_AC_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_27
## %bb.25:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%rbx), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	callq	_wl12xx_free_rate_policy
	incq	%r15
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %r15
	jl	LBB0_26
LBB0_27:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl1271_free_ap_keys
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_23:
	leaq	112(%rbx), %r12
	movq	%rax, 128(%rbx)
	leaq	124(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wl12xx_free_rate_policy
	leaq	120(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wl12xx_free_rate_policy
	leaq	116(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wl12xx_free_rate_policy
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %r12
	callq	_wlcore_free_klv_template
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_28:
	movq	104(%rbx), %rdi
	callq	_dev_kfree_skb
	movq	$0, 104(%rbx)
	cmpq	%rbx, 56(%r14)
	jne	LBB0_30
## %bb.29:
	movq	$0, 56(%r14)
LBB0_30:
	leaq	96(%rbx), %rdi
	callq	_list_del
	movl	56(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	32(%r14), %rax
	leaq	8(%r14), %rcx
	cmpq	%r15, %r13
	movq	_WL12XX_INVALID_ROLE_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 48(%rbx)
	movq	%rdx, 40(%rbx)
	cmovneq	%rax, %rcx
	decq	(%rcx)
	movq	_WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	_WL1271_FLAG_INTENDED_FW_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_41
LBB0_32:
	movq	8(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_35
## %bb.33:
	cmpq	%r15, %r13
	jne	LBB0_35
## %bb.34:
	movl	40(%r14), %eax
	notl	%eax
	andl	%eax, 44(%r14)
	movq	%r14, %rdi
	callq	_wl1271_event_unmask
	movq	8(%r14), %rax
LBB0_35:
	testq	%rax, %rax
	jne	LBB0_41
## %bb.36:
	cmpq	%r15, %r13
	jne	LBB0_41
## %bb.37:
	cmpq	$0, 32(%r14)
	je	LBB0_41
## %bb.38:
	movq	24(%r14), %rsi
	movq	_WL1271_PSM_ILLEGAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_40
## %bb.39:
	movq	_WL1271_PSM_ELP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_40:
	movq	%r14, %rdi
	callq	_wl1271_acx_sleep_auth
LBB0_41:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	32(%rbx), %rdi
	callq	_del_timer_sync
	leaq	28(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	24(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	20(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_cancel_delayed_work_sync
	movq	%r14, %rdi
	callq	_mutex_lock
LBB0_42:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	$0, 80(%r14)
	cmpq	%r15, 72(%r14)
	jne	LBB0_9
LBB0_8:
	movq	$0, 72(%r14)
	movl	68(%r14), %edi
	callq	_ieee80211_remain_on_channel_expired
	jmp	LBB0_9
LBB0_10:
	movl	64(%r14), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	(%rbx), %rax
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_BSS_TYPE_IBSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_14:
	movq	%rbx, %rdi
	callq	_wl12xx_dev_role_started
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_stop_dev
LBB0_16:
	movq	%rbx, %rdi
	callq	_wlcore_is_p2p_mgmt
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	leaq	40(%rbx), %rsi
	jmp	LBB0_19
LBB0_11:
	movl	64(%r14), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_21
LBB0_17:
	leaq	48(%rbx), %rsi
LBB0_19:
	movq	%r14, %rdi
	callq	_wl12xx_cmd_role_disable
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movl	64(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	64(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_AP_BSS,8,3            ## @BSS_TYPE_AP_BSS
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 remove interface"

	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ## @WLVIF_FLAG_INITIALIZED
	.comm	_WLCORE_STATE_OFF,8,3           ## @WLCORE_STATE_OFF
L_.str.1:                               ## @.str.1
	.asciz	"down"

	.comm	_WL1271_SCAN_STATE_IDLE,8,3     ## @WL1271_SCAN_STATE_IDLE
	.comm	_WL1271_FLAG_RECOVERY_IN_PROGRESS,4,2 ## @WL1271_FLAG_RECOVERY_IN_PROGRESS
	.comm	_BSS_TYPE_STA_BSS,8,3           ## @BSS_TYPE_STA_BSS
	.comm	_BSS_TYPE_IBSS,8,3              ## @BSS_TYPE_IBSS
	.comm	_WL12XX_INVALID_LINK_ID,8,3     ## @WL12XX_INVALID_LINK_ID
	.comm	_CONF_TX_MAX_AC_COUNT,4,2       ## @CONF_TX_MAX_AC_COUNT
	.comm	_WL12XX_INVALID_ROLE_ID,8,3     ## @WL12XX_INVALID_ROLE_ID
	.comm	_WL1271_FLAG_INTENDED_FW_RECOVERY,4,2 ## @WL1271_FLAG_INTENDED_FW_RECOVERY
	.comm	_WL1271_PSM_ILLEGAL,8,3         ## @WL1271_PSM_ILLEGAL
	.comm	_WL1271_PSM_ELP,8,3             ## @WL1271_PSM_ELP
	.no_dead_strip	___wl1271_op_remove_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wl1271_op_remove_interface
___wl1271_op_remove_interface:          ; @__wl1271_op_remove_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x19, x0
	mov	x22, x0
	ldr	x23, [x22], #144
Lloh0:
	adrp	x8, _BSS_TYPE_AP_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_TYPE_AP_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh8:
	adrp	x8, _WLVIF_FLAG_INITIALIZED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLVIF_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_clear_bit
	cbz	w0, LBB0_29
; %bb.1:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _WLCORE_STATE_OFF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WLCORE_STATE_OFF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_29
; %bb.2:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_info
	ldr	x8, [x20, #88]
Lloh16:
	adrp	x22, _WL1271_SCAN_STATE_IDLE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _WL1271_SCAN_STATE_IDLE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x20, #112]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x0, x20
	bl	_wl12xx_rearm_tx_watchdog_locked
	ldr	x8, [x22]
	str	x8, [x20, #88]
	ldr	w0, [x20, #104]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [x20, #112]
	str	xzr, [x20, #96]
	ldr	w0, [x20, #68]
	add	x1, sp, #8
	bl	_ieee80211_scan_completed
LBB0_5:
	ldr	x8, [x20, #80]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.6:
	str	xzr, [x20, #80]
LBB0_7:
	ldr	x8, [x20, #72]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x20, #72]
	ldr	w0, [x20, #68]
	bl	_ieee80211_remain_on_channel_expired
LBB0_9:
Lloh18:
	adrp	x25, _WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPAGE
Lloh19:
	ldr	x25, [x25, _WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x21, x20, #48
	mov	x1, x21
	bl	_test_bit
Lloh20:
	adrp	x26, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh21:
	ldr	x26, [x26, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh22:
	adrp	x22, _BSS_TYPE_IBSS@GOTPAGE
Lloh23:
	ldr	x22, [x22, _BSS_TYPE_IBSS@GOTPAGEOFF]
	cbz	x0, LBB0_30
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_tx_reset_wlvif
Lloh24:
	adrp	x8, _WL12XX_INVALID_LINK_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WL12XX_INVALID_LINK_ID@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19, #136]
	ldr	x9, [x19]
	ldr	x10, [x26]
	cmp	x9, x10
	b.eq	LBB0_16
; %bb.11:
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_16
; %bb.12:
	stp	x8, x8, [x19, #80]
	add	x1, x19, #76
	mov	x0, x20
	bl	_wl12xx_free_rate_policy
	add	x1, x19, #72
	mov	x0, x20
	bl	_wl12xx_free_rate_policy
Lloh27:
	adrp	x22, _CONF_TX_MAX_AC_COUNT@GOTPAGE
Lloh28:
	ldr	x22, [x22, _CONF_TX_MAX_AC_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x26, #0
	mov	x27, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	add	x1, x8, x26
	mov	x0, x20
	bl	_wl12xx_free_rate_policy
	add	x27, x27, #1
	ldrsw	x8, [x22]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_14
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_wl1271_free_ap_keys
	b	LBB0_17
LBB0_16:
	add	x22, x19, #112
	str	x8, [x19, #128]
	add	x1, x19, #124
	mov	x0, x20
	bl	_wl12xx_free_rate_policy
	add	x1, x19, #120
	mov	x0, x20
	bl	_wl12xx_free_rate_policy
	add	x1, x19, #116
	mov	x0, x20
	bl	_wl12xx_free_rate_policy
	mov	x0, x20
	mov	x1, x22
	bl	_wlcore_free_klv_template
LBB0_17:
	ldr	x0, [x19, #104]
	bl	_dev_kfree_skb
	str	xzr, [x19, #104]
	ldr	x8, [x20, #56]
	cmp	x8, x19
	b.ne	LBB0_19
; %bb.18:
	str	xzr, [x20, #56]
LBB0_19:
	add	x0, x19, #96
	bl	_list_del
	ldr	w0, [x19, #56]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh29:
	adrp	x8, _WL12XX_INVALID_ROLE_ID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WL12XX_INVALID_ROLE_ID@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #40]
	mov	w8, #32
	mov	w9, #8
	cmp	x23, x24
	csel	x8, x9, x8, eq
	ldr	x9, [x20, x8]
	sub	x9, x9, #1
	str	x9, [x20, x8]
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.20:
Lloh32:
	adrp	x8, _WL1271_FLAG_INTENDED_FW_RECOVERY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WL1271_FLAG_INTENDED_FW_RECOVERY@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_28
LBB0_21:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_24
; %bb.22:
	cmp	x23, x24
	b.ne	LBB0_24
; %bb.23:
	ldp	w8, w9, [x20, #40]
	bic	w8, w9, w8
	str	w8, [x20, #44]
	mov	x0, x20
	bl	_wl1271_event_unmask
	ldr	x8, [x20, #8]
LBB0_24:
	cbnz	x8, LBB0_28
; %bb.25:
	cmp	x23, x24
	b.ne	LBB0_28
; %bb.26:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_28
; %bb.27:
	ldr	x8, [x20, #24]
Lloh35:
	adrp	x9, _WL1271_PSM_ILLEGAL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _WL1271_PSM_ILLEGAL@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
Lloh38:
	adrp	x10, _WL1271_PSM_ELP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _WL1271_PSM_ELP@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x1, x10, x8, eq
	mov	x0, x20
	bl	_wl1271_acx_sleep_auth
LBB0_28:
	add	x20, x20, #16
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #32
	bl	_del_timer_sync
	add	x0, x19, #28
	bl	_cancel_work_sync
	add	x0, x19, #24
	bl	_cancel_work_sync
	add	x0, x19, #20
	bl	_cancel_work_sync
	add	x0, x19, #16
	bl	_cancel_delayed_work_sync
	add	x0, x19, #12
	bl	_cancel_delayed_work_sync
	add	x0, x19, #8
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	bl	_mutex_lock
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_30:
	ldr	w0, [x20, #64]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_37
; %bb.31:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_33
; %bb.32:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_35
LBB0_33:
	mov	x0, x19
	bl	_wl12xx_dev_role_started
	cbz	x0, LBB0_35
; %bb.34:
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_stop_dev
LBB0_35:
	mov	x0, x19
	bl	_wlcore_is_p2p_mgmt
	cbz	w0, LBB0_38
; %bb.36:
	add	x1, x19, #40
	b	LBB0_39
LBB0_37:
	ldr	w0, [x20, #64]
	bl	_pm_runtime_put_noidle
	b	LBB0_10
LBB0_38:
	add	x1, x19, #48
LBB0_39:
	mov	x0, x20
	bl	_wl12xx_cmd_role_disable
	tbnz	w0, #31, LBB0_10
; %bb.40:
	ldr	w0, [x20, #64]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #64]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_AP_BSS,8,3            ; @BSS_TYPE_AP_BSS
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 remove interface"

	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ; @WLVIF_FLAG_INITIALIZED
	.comm	_WLCORE_STATE_OFF,8,3           ; @WLCORE_STATE_OFF
l_.str.1:                               ; @.str.1
	.asciz	"down"

	.comm	_WL1271_SCAN_STATE_IDLE,8,3     ; @WL1271_SCAN_STATE_IDLE
	.comm	_WL1271_FLAG_RECOVERY_IN_PROGRESS,4,2 ; @WL1271_FLAG_RECOVERY_IN_PROGRESS
	.comm	_BSS_TYPE_STA_BSS,8,3           ; @BSS_TYPE_STA_BSS
	.comm	_BSS_TYPE_IBSS,8,3              ; @BSS_TYPE_IBSS
	.comm	_WL12XX_INVALID_LINK_ID,8,3     ; @WL12XX_INVALID_LINK_ID
	.comm	_CONF_TX_MAX_AC_COUNT,4,2       ; @CONF_TX_MAX_AC_COUNT
	.comm	_WL12XX_INVALID_ROLE_ID,8,3     ; @WL12XX_INVALID_ROLE_ID
	.comm	_WL1271_FLAG_INTENDED_FW_RECOVERY,4,2 ; @WL1271_FLAG_INTENDED_FW_RECOVERY
	.comm	_WL1271_PSM_ILLEGAL,8,3         ; @WL1271_PSM_ILLEGAL
	.comm	_WL1271_PSM_ELP,8,3             ; @WL1271_PSM_ELP
	.no_dead_strip	___wl1271_op_remove_interface
.subsections_via_symbols
