	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_delete               ## -- Begin function tipc_link_delete
	.p2align	4, 0x90
_tipc_link_delete:                      ## @tipc_link_delete
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg
	movq	%rbx, %rdi
	callq	_k_cancel_timer
	movl	4(%rbx), %edi
	callq	_tipc_node_lock
	movq	%rbx, %rdi
	callq	_tipc_link_reset
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_tipc_node_detach_link
	movq	%rbx, %rdi
	callq	_tipc_link_stop
	leaq	16(%rbx), %rdi
	callq	_list_del_init
	movq	_LINK_LOG_BUF_SIZE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_3:
	movl	4(%rbx), %edi
	callq	_tipc_node_unlock
	movq	%rbx, %rdi
	callq	_k_term_timer
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to delete non-existent link\n"

L_.str.1:                               ## @.str.1
	.asciz	"tipc_link_delete()\n"

	.comm	_LINK_LOG_BUF_SIZE,8,3          ## @LINK_LOG_BUF_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_delete               ; -- Begin function tipc_link_delete
	.p2align	2
_tipc_link_delete:                      ; @tipc_link_delete
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	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, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	mov	x0, x19
	bl	_k_cancel_timer
	ldr	w0, [x19, #4]
	bl	_tipc_node_lock
	mov	x0, x19
	bl	_tipc_link_reset
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_tipc_node_detach_link
	mov	x0, x19
	bl	_tipc_link_stop
	add	x0, x19, #16
	bl	_list_del_init
Lloh2:
	adrp	x8, _LINK_LOG_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LINK_LOG_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_tipc_node_unlock
	mov	x0, x19
	bl	_k_term_timer
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to delete non-existent link\n"

l_.str.1:                               ; @.str.1
	.asciz	"tipc_link_delete()\n"

	.comm	_LINK_LOG_BUF_SIZE,8,3          ; @LINK_LOG_BUF_SIZE
.subsections_via_symbols
