	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_to_master
_connect_to_master:                     ## @connect_to_master
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_IPROP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_snprintf
	movq	%r12, %rbx
LBB0_2:
	leaq	-104(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_3
## %bb.15:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_krb5_warnx
	movl	$-1, %r15d
	jmp	LBB0_13
LBB0_3:
	movq	-72(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rsp
	movq	24(%r14), %r14
	testq	%r14, %r14
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r13
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r12, %rdx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_strlcpy
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r14), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	callq	_socket
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r15d
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.3(%rip), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_krb5_warn
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_10
LBB0_11:
	movl	$-1, %r15d
	jmp	LBB0_12
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_krb5_warnx
	movq	%r13, %rsp
LBB0_12:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.14:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

	.comm	_IPROP_PORT,4,2                 ## @IPROP_PORT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get address of to %s: %s"

	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
L_.str.2:                               ## @.str.2
	.asciz	"[unknown-addr]"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"connection failed to %s[%s]"

L_.str.4:                               ## @.str.4
	.asciz	"connection successful to master: %s[%s]"

	.no_dead_strip	_connect_to_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_to_master
_connect_to_master:                     ; @connect_to_master
	.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
	sub	sp, sp, #48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	sub	x0, x29, #128
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh8:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	w8, [x29, #-116]
	cbnz	x21, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _IPROP_PORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPROP_PORT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	bl	_snprintf
	mov	x21, x23
LBB0_2:
	sub	x2, x29, #128
	sub	x3, x29, #96
	mov	x0, x19
	mov	x1, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_4
; %bb.3:
	bl	_gai_strerror
	mov	x3, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_krb5_warnx
	mov	w24, #-1
	b	LBB0_15
LBB0_4:
	ldur	x25, [x29, #-96]
	cbz	x25, LBB0_12
; %bb.5:
Lloh18:
	adrp	x26, _NI_MAXHOST@GOTPAGE
Lloh19:
	ldr	x26, [x26, _NI_MAXHOST@GOTPAGEOFF]
Lloh20:
	adrp	x27, _NI_NUMERICHOST@GOTPAGE
Lloh21:
	ldr	x27, [x27, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh22:
	adrp	x21, l_.str.3@PAGE
Lloh23:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh24:
	adrp	x22, l_.str.2@PAGE
Lloh25:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	sp, x28
	ldr	x25, [x25, #24]
	cbz	x25, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, sp
	ldr	w24, [x26]
	mov	x9, x24
Lloh26:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh27:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	ldp	w1, w0, [x25]
	ldr	w6, [x27]
	mov	x2, x23
	mov	x3, x24
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_strlcpy
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldp	w1, w0, [x25, #12]
	ldr	w2, [x25, #8]
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldp	w2, w1, [x25]
	bl	_connect
	tbz	x0, #63, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	mov	x4, x23
	bl	_krb5_warn
	mov	x0, x24
	bl	_close
	b	LBB0_6
LBB0_12:
	mov	w24, #-1
	b	LBB0_14
LBB0_13:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	bl	_krb5_warnx
	mov	sp, x28
LBB0_14:
	ldur	x0, [x29, #-96]
	bl	_freeaddrinfo
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x24
	sub	sp, x29, #80
	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
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

	.comm	_IPROP_PORT,4,2                 ; @IPROP_PORT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get address of to %s: %s"

	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
l_.str.2:                               ; @.str.2
	.asciz	"[unknown-addr]"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"connection failed to %s[%s]"

l_.str.4:                               ; @.str.4
	.asciz	"connection successful to master: %s[%s]"

	.no_dead_strip	_connect_to_master
.subsections_via_symbols
