	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_destroy_interface
_ppp_destroy_interface:                 ## @ppp_destroy_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ppp_unit_count@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
	movl	44(%rbx), %ecx
	movq	56(%rbx), %r8
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.1:
	testq	%r8, %r8
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_ppp_ccp_closed
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_slhc_free
	movq	$0, 48(%rbx)
LBB0_4:
	leaq	36(%rbx), %r14
	leaq	40(%rbx), %rdi
	callq	_skb_queue_purge
	movq	%r14, %rdi
	callq	_skb_queue_purge
	movl	8(%rbx), %edi
	callq	_kfree_skb
	movl	4(%rbx), %edi
	callq	_free_percpu
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ppp_unit_count,4,2             ## @ppp_unit_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ppp: destroying ppp struct %p but dead=%d n_channels=%d !\n"

	.no_dead_strip	_ppp_destroy_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_destroy_interface
_ppp_destroy_interface:                 ; @ppp_destroy_interface
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _ppp_unit_count@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ppp_unit_count@GOTPAGEOFF]
	bl	_atomic_dec
	ldr	w3, [x19, #44]
	ldr	x4, [x19, #56]
	cmp	w3, #0
	ccmp	x4, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w0, [x19]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_2:
	mov	x0, x19
	bl	_ppp_ccp_closed
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_slhc_free
	str	xzr, [x19, #48]
LBB0_4:
	add	x20, x19, #36
	add	x0, x19, #40
	bl	_skb_queue_purge
	mov	x0, x20
	bl	_skb_queue_purge
	ldr	w0, [x19, #8]
	bl	_kfree_skb
	ldr	w0, [x19, #4]
	bl	_free_percpu
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_netdev
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ppp_unit_count,4,2             ; @ppp_unit_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ppp: destroying ppp struct %p but dead=%d n_channels=%d !\n"

	.no_dead_strip	_ppp_destroy_interface
.subsections_via_symbols
