	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_del_virtual_intf          ## -- Begin function qtnf_del_virtual_intf
	.p2align	4, 0x90
_qtnf_del_virtual_intf:                 ## @qtnf_del_virtual_intf
	.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	(%rsi), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	movq	(%rbx), %rdi
	callq	_qtnf_netdev_get_priv
	movq	%rax, %r14
	movq	24(%rax), %rdi
	movl	$1, %esi
	callq	_qtnf_scan_done
	movq	%r15, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_netif_carrier_off
LBB0_4:
	leaq	36(%r14), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	addq	$32, %rdi
	callq	_cancel_work_sync
	movq	(%r15), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_unregister_netdevice
LBB0_9:
	movq	%r14, %rdi
	callq	_qtnf_cmd_send_del_intf
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_11:
	movq	8(%r14), %rax
	movq	$0, (%rax)
	movq	$0, 8(%r14)
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIF%u.%u: failed to delete VIF\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_del_virtual_intf          ; -- Begin function qtnf_del_virtual_intf
	.p2align	2
_qtnf_del_virtual_intf:                 ; @qtnf_del_virtual_intf
	.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	x19, x1
	ldr	x20, [x1]
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	ldr	x0, [x19]
	bl	_qtnf_netdev_get_priv
	mov	x19, x0
	ldr	x0, [x0, #24]
	mov	w1, #1
	bl	_qtnf_scan_done
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	mov	x0, x20
	bl	_netif_carrier_ok
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_netif_carrier_off
LBB0_4:
	add	x21, x19, #36
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_dequeue
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_dev_kfree_skb_any
	b	LBB0_5
LBB0_7:
	add	x0, x19, #32
	bl	_cancel_work_sync
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_unregister_netdevice
LBB0_9:
	mov	x0, x19
	bl	_qtnf_cmd_send_del_intf
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_11:
	mov	w0, #0
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	str	xzr, [x19, #8]
Lloh8:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_12:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIF%u.%u: failed to delete VIF\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
.subsections_via_symbols
