	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_sync_close
_ppp_sync_close:                        ## @ppp_sync_close
	.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
	movq	_disc_data_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_write_lock_irq
	movq	(%rbx), %r14
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_write_unlock_irq
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	leaq	20(%r14), %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	16(%r14), %rdi
	callq	_wait_for_completion
LBB0_3:
	leaq	12(%r14), %rdi
	callq	_tasklet_kill
	leaq	8(%r14), %rdi
	callq	_ppp_unregister_channel
	leaq	4(%r14), %rdi
	callq	_skb_queue_purge
	movl	(%r14), %edi
	callq	_kfree_skb
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disc_data_lock,4,2             ## @disc_data_lock
	.no_dead_strip	_ppp_sync_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_sync_close
_ppp_sync_close:                        ; @ppp_sync_close
	.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	x21, _disc_data_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _disc_data_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_write_lock_irq
	ldr	x19, [x20]
	str	xzr, [x20]
	mov	x0, x21
	bl	_write_unlock_irq
	cbz	x19, LBB0_4
; %bb.1:
	add	x0, x19, #20
	bl	_atomic_dec_and_test
	cbnz	w0, LBB0_3
; %bb.2:
	add	x0, x19, #16
	bl	_wait_for_completion
LBB0_3:
	add	x0, x19, #12
	bl	_tasklet_kill
	add	x0, x19, #8
	bl	_ppp_unregister_channel
	add	x0, x19, #4
	bl	_skb_queue_purge
	ldr	w0, [x19]
	bl	_kfree_skb
	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	_kfree
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_disc_data_lock,4,2             ; @disc_data_lock
	.no_dead_strip	_ppp_sync_close
.subsections_via_symbols
