	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_reset_all
_link_reset_all:                        ## @link_reset_all
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	%rbx, %rdi
	callq	_tipc_node_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_tipc_node_lock
	movl	8(%r12), %esi
	leaq	-64(%rbp), %rdi
	callq	_addr_string_fill
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warn
	movq	_MAX_BEARERS@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	movq	_TIPC_OUTPUT@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_link_print
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_tipc_link_reset
	movq	(%r15), %rax
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_tipc_node_unlock
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.2:
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_unlock_bh                 ## TAILCALL
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_net_lock,4,2              ## @tipc_net_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting all links to %s\n"

	.comm	_MAX_BEARERS,8,3                ## @MAX_BEARERS
	.comm	_TIPC_OUTPUT,4,2                ## @TIPC_OUTPUT
L_.str.1:                               ## @.str.1
	.asciz	"Resetting link\n"

	.no_dead_strip	_link_reset_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_reset_all
_link_reset_all:                        ; @link_reset_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_read_lock_bh
	mov	x0, x19
	bl	_tipc_node_find
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_tipc_node_lock
	ldr	w1, [x19, #8]
	add	x0, sp, #8
	bl	_addr_string_fill
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
Lloh7:
	adrp	x21, _MAX_BEARERS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MAX_BEARERS@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x22, #0
Lloh9:
	adrp	x23, _TIPC_OUTPUT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _TIPC_OUTPUT@GOTPAGEOFF]
Lloh11:
	adrp	x20, l_.str.1@PAGE
Lloh12:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	mov	x2, x20
	bl	_link_print
	ldr	x8, [x19]
	ldr	x0, [x8, x22, lsl #3]
	bl	_tipc_link_reset
	ldr	x8, [x21]
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	bl	_tipc_node_unlock
Lloh13:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
Lloh21:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_read_unlock_bh
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_net_lock,4,2              ; @tipc_net_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting all links to %s\n"

	.comm	_MAX_BEARERS,8,3                ; @MAX_BEARERS
	.comm	_TIPC_OUTPUT,4,2                ; @TIPC_OUTPUT
l_.str.1:                               ; @.str.1
	.asciz	"Resetting link\n"

	.no_dead_strip	_link_reset_all
.subsections_via_symbols
