	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_del_iface
_wil_cfg80211_del_iface:                ## @wil_cfg80211_del_iface
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_wdev_to_vif
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_dbg_misc
	movl	4(%r12), %eax
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	cmpq	%r12, (%r14)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wil_err
	jmp	LBB0_6
LBB0_4:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.7:
	movq	%r15, %rdi
	callq	_wil_vif_prepare_stop
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	(%r15), %rdx
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_info
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_wil_vif_remove
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wil_cfg80211_stop_p2p_device
	movq	%r14, %rdi
	callq	_wil_p2p_wdev_free
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"del_iface\n"

	.comm	_NL80211_IFTYPE_P2P_DEVICE,4,2  ## @NL80211_IFTYPE_P2P_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"delete of incorrect interface 0x%p\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"cannot remove the main interface\n"

L_.str.3:                               ## @.str.3
	.asciz	"deleted VIF, mid %d iftype %d MAC %pM\n"

	.no_dead_strip	_wil_cfg80211_del_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_del_iface
_wil_cfg80211_del_iface:                ; @wil_cfg80211_del_iface
	.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, x1
	mov	x22, x0
	bl	_wiphy_to_wil
	mov	x19, x0
	mov	x1, x20
	bl	_wdev_to_vif
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	ldr	w8, [x20, #4]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x20
	b.eq	LBB0_6
; %bb.2:
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_wil_vif_prepare_stop
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x2, [x21]
	ldp	w4, w3, [x20]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_info
	ldr	x1, [x21]
	mov	x0, x19
	bl	_wil_vif_remove
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	bl	_wil_cfg80211_stop_p2p_device
	mov	x0, x19
	bl	_wil_p2p_wdev_free
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_wil_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"del_iface\n"

	.comm	_NL80211_IFTYPE_P2P_DEVICE,4,2  ; @NL80211_IFTYPE_P2P_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"delete of incorrect interface 0x%p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"cannot remove the main interface\n"

l_.str.3:                               ; @.str.3
	.asciz	"deleted VIF, mid %d iftype %d MAC %pM\n"

	.no_dead_strip	_wil_cfg80211_del_iface
.subsections_via_symbols
