	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_send_join                  ## -- Begin function rpc_send_join
	.p2align	4, 0x90
_rpc_send_join:                         ## @rpc_send_join
	.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
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r14, %rdx
	callq	_vkprintf
	movq	_max_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	movq	_Clusters@GOTPCREL(%rip), %r13
	movq	_STATS@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	movq	_BINLOG_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	(%r15), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rpc_send_query
	movq	_max_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	$0, (%rcx,%r12,8)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_RPC_TYPE_JOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$24, %esi
	movq	%r14, %rdx
	callq	_rpc_create_query
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movq	_CC@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	_host@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_port@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_NODE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CLUSTER_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpc_send_join: c = %p\n"

	.comm	_max_cluster,4,2                ## @max_cluster
	.comm	_Clusters,8,3                   ## @Clusters
	.comm	_Q,8,3                          ## @Q
	.comm	_RPC_TYPE_JOIN,4,2              ## @RPC_TYPE_JOIN
	.comm	_CC,8,3                         ## @CC
	.comm	_host,4,2                       ## @host
	.comm	_port,4,2                       ## @port
	.comm	_NODE_ID,8,3                    ## @NODE_ID
	.comm	_CLUSTER_ID,8,3                 ## @CLUSTER_ID
	.comm	_BINLOG_POSITION,4,2            ## @BINLOG_POSITION
	.comm	_PROTOCOL_VERSION,4,2           ## @PROTOCOL_VERSION
	.comm	_STATS,8,3                      ## @STATS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_send_join                  ; -- Begin function rpc_send_join
	.p2align	2
_rpc_send_join:                         ; @rpc_send_join
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_vkprintf
Lloh2:
	adrp	x21, _max_cluster@GOTPAGE
Lloh3:
	ldr	x21, [x21, _max_cluster@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
Lloh4:
	adrp	x23, _Clusters@GOTPAGE
Lloh5:
	ldr	x23, [x23, _Clusters@GOTPAGEOFF]
Lloh6:
	adrp	x24, _NODE_ID@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NODE_ID@GOTPAGEOFF]
Lloh8:
	adrp	x26, _CLUSTER_ID@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CLUSTER_ID@GOTPAGEOFF]
Lloh10:
	adrp	x25, _BINLOG_POSITION@GOTPAGE
Lloh11:
	ldr	x25, [x25, _BINLOG_POSITION@GOTPAGEOFF]
Lloh12:
	adrp	x27, _PROTOCOL_VERSION@GOTPAGE
Lloh13:
	ldr	x27, [x27, _PROTOCOL_VERSION@GOTPAGEOFF]
Lloh14:
	adrp	x28, _STATS@GOTPAGE
Lloh15:
	ldr	x28, [x28, _STATS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _Q@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh18:
	ldr	x20, [x8]
Lloh19:
	adrp	x8, _RPC_TYPE_JOIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RPC_TYPE_JOIN@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #24
	mov	x2, x19
	bl	_rpc_create_query
	tbnz	x0, #63, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
Lloh22:
	adrp	x9, _CC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CC@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
	ldr	w8, [x19]
Lloh25:
	adrp	x9, _host@GOTPAGE
Lloh26:
	ldr	x9, [x9, _host@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
Lloh28:
	adrp	x9, _port@GOTPAGE
Lloh29:
	ldr	x9, [x9, _port@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [x20, #8]
	ldr	w8, [x25]
	ldr	w9, [x27]
	stp	w9, w8, [x20]
	ldr	x8, [x28]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_rpc_send_query
	ldr	w8, [x21]
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpc_send_join: c = %p\n"

	.comm	_max_cluster,4,2                ; @max_cluster
	.comm	_Clusters,8,3                   ; @Clusters
	.comm	_Q,8,3                          ; @Q
	.comm	_RPC_TYPE_JOIN,4,2              ; @RPC_TYPE_JOIN
	.comm	_CC,8,3                         ; @CC
	.comm	_host,4,2                       ; @host
	.comm	_port,4,2                       ; @port
	.comm	_NODE_ID,8,3                    ; @NODE_ID
	.comm	_CLUSTER_ID,8,3                 ; @CLUSTER_ID
	.comm	_BINLOG_POSITION,4,2            ; @BINLOG_POSITION
	.comm	_PROTOCOL_VERSION,4,2           ; @PROTOCOL_VERSION
	.comm	_STATS,8,3                      ; @STATS
.subsections_via_symbols
