	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fr_del_pvc
_fr_del_pvc:                            ## @fr_del_pvc
	.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
	movl	%edx, %r15d
	movq	%rdi, %r14
	callq	_find_pvc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_get_dev_p
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_unregister_netdevice
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_get_dev_p
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_pvc_is_used
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_state
	decl	4(%rax)
	movq	%r14, %rdi
	callq	_state
	movl	$1, (%rax)
LBB0_8:
	movq	%r14, %rdi
	callq	_delete_unused_pvcs
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_fr_del_pvc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fr_del_pvc
_fr_del_pvc:                            ; @fr_del_pvc
	.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	x20, x2
	mov	x19, x0
	bl	_find_pvc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x1, x20
	bl	_get_dev_p
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	bl	_unregister_netdevice
	mov	x0, x21
	mov	x1, x20
	bl	_get_dev_p
	str	xzr, [x0]
	mov	x0, x21
	bl	_pvc_is_used
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_state
	ldr	w8, [x0, #4]
	sub	w8, w8, #1
	str	w8, [x0, #4]
	mov	x0, x19
	bl	_state
	mov	w8, #1
	str	w8, [x0]
LBB0_9:
	mov	x0, x19
	bl	_delete_unused_pvcs
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_fr_del_pvc
.subsections_via_symbols
