	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_zone_select_remote_node   ## -- Begin function tipc_zone_select_remote_node
	.p2align	4, 0x90
_tipc_zone_select_remote_node:          ## @tipc_zone_select_remote_node
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_tipc_cluster
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movq	%r14, %rsi
	callq	_tipc_cltr_select_node
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movq	_tipc_max_clusters@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.4:
	movl	$1, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rsi
	callq	_tipc_cltr_select_node
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jbe	LBB0_5
	jmp	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rax, %r15
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_max_clusters,8,3          ## @tipc_max_clusters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_zone_select_remote_node   ; -- Begin function tipc_zone_select_remote_node
	.p2align	2
_tipc_zone_select_remote_node:          ; @tipc_zone_select_remote_node
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_tipc_cluster
	ldr	x0, [x21, x0, lsl #3]
	cbz	x0, LBB0_9
; %bb.2:
	mov	x1, x19
	bl	_tipc_cltr_select_node
	cbnz	x0, LBB0_9
; %bb.3:
Lloh0:
	adrp	x21, _tipc_max_clusters@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tipc_max_clusters@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.4:
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x19
	bl	_tipc_cltr_select_node
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.ls	LBB0_5
LBB0_8:
	mov	x0, #0
LBB0_9:
	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	_tipc_max_clusters,8,3          ; @tipc_max_clusters
.subsections_via_symbols
