	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_select_next_hop      ## -- Begin function tipc_node_select_next_hop
	.p2align	4, 0x90
_tipc_node_select_next_hop:             ## @tipc_node_select_next_hop
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_tipc_addr_domain_valid
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%r15, %rdi
	callq	_tipc_node_find
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_tipc_node_has_active_links
	testq	%rax, %rax
	jne	LBB0_11
LBB0_3:
	movq	%r15, %rdi
	callq	_is_slave
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tipc_node_select_router
	testq	%rax, %rax
	je	LBB0_6
LBB0_12:
	movq	%rax, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tipc_node_select               ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	callq	_in_own_cluster
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_is_slave
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_tipc_zone
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_tipc_cluster
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_tipc_addr
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_tipc_net_select_remote_node
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tipc_node_has_active_links
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tipc_net_select_router
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_select_next_hop      ; -- Begin function tipc_node_select_next_hop
	.p2align	2
_tipc_node_select_next_hop:             ; @tipc_node_select_next_hop
	.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	x19, x1
	mov	x20, x0
	bl	_tipc_addr_domain_valid
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_tipc_node_find
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_tipc_node_has_active_links
	cbnz	x0, LBB0_9
LBB0_3:
	mov	x0, x20
	bl	_is_slave
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_tipc_node_select_router
	cbz	x0, LBB0_7
LBB0_5:
	mov	x1, 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	_tipc_node_select
LBB0_6:
	mov	x0, x20
	bl	_in_own_cluster
	cbnz	x0, LBB0_8
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_is_slave
	cbz	x0, LBB0_10
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	mov	x0, x20
	bl	_tipc_zone
	mov	x21, x0
	mov	x0, x20
	bl	_tipc_cluster
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_tipc_addr
	mov	x20, x0
	mov	x1, x19
	bl	_tipc_net_select_remote_node
	cbz	x0, LBB0_12
; %bb.11:
	mov	x21, x0
	bl	_tipc_node_has_active_links
	cbnz	x0, LBB0_9
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_tipc_net_select_router
	cbnz	x0, LBB0_5
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
