	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppp_unregister_channel         ## -- Begin function ppp_unregister_channel
	.p2align	4, 0x90
_ppp_unregister_channel:                ## @ppp_unregister_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rdi)
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_down_write
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	$0, 32(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_ppp_disconnect_channel
	movl	16(%rbx), %edi
	callq	_ppp_pernet
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_bh
	leaq	12(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	$1, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	4(%rbx), %rdi
	callq	_refcount_dec_and_test
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ppp_destroy_channel            ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppp_unregister_channel         ; -- Begin function ppp_unregister_channel
	.p2align	2
_ppp_unregister_channel:                ; @ppp_unregister_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
	ldr	x19, [x0]
	cbz	x19, LBB0_3
; %bb.1:
	str	xzr, [x0]
	add	x20, x19, #20
	mov	x0, x20
	bl	_down_write
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_bh
	str	xzr, [x19, #32]
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_up_write
	mov	x0, x19
	bl	_ppp_disconnect_channel
	ldr	w0, [x19, #16]
	bl	_ppp_pernet
	mov	x20, x0
	bl	_spin_lock_bh
	add	x0, x19, #12
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #8
	bl	_wake_up_interruptible
	add	x0, x19, #4
	bl	_refcount_dec_and_test
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	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
	b	_ppp_destroy_channel
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
