	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_disconnect_channel
_ppp_disconnect_channel:                ## @ppp_disconnect_channel
	.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	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_bh
	movq	8(%r12), %r14
	movq	$0, 8(%r12)
	movq	%rbx, %rdi
	callq	_write_unlock_bh
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_ppp_lock
	movq	%r12, %rdi
	callq	_list_del
	decq	(%r14)
	jne	LBB0_3
## %bb.2:
	leaq	12(%r14), %rdi
	callq	_wake_up_interruptible
LBB0_3:
	movq	%r14, %rdi
	callq	_ppp_unlock
	leaq	8(%r14), %rdi
	callq	_refcount_dec_and_test
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_ppp_destroy_interface
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ppp_disconnect_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_disconnect_channel
_ppp_disconnect_channel:                ; @ppp_disconnect_channel
	.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, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x21, x0, #4
	mov	x0, x21
	bl	_write_lock_bh
	ldr	x19, [x20, #8]
	str	xzr, [x20, #8]
	mov	x0, x21
	bl	_write_unlock_bh
	cbz	x19, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ppp_lock
	mov	x0, x20
	bl	_list_del
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #12
	bl	_wake_up_interruptible
LBB0_3:
	mov	x0, x19
	bl	_ppp_unlock
	add	x0, x19, #8
	bl	_refcount_dec_and_test
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_ppp_destroy_interface
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	neg	w0, w22
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ppp_disconnect_channel
.subsections_via_symbols
