	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connection_migrate
_connection_migrate:                    ## @connection_migrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	$0, -24(%rbp)
	movslq	28(%rdi), %rbx
	movq	(%rdi), %rdi
	callq	_role2str
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pjdlog_prefix_set
	movq	(%r14), %rax
	movq	_ADIST_ROLE_SENDER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movl	16(%r14), %edi
	leaq	-24(%rbp), %rsi
	movl	$8, %edx
	callq	_proto_recv
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	24(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_proto_set
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpb	$0, (%rax)
	cmovneq	%rax, %rdi
	movl	20(%r14), %esi
	leaq	-32(%rbp), %rcx
	movl	$-1, %edx
	callq	_proto_connect
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	$0, -24(%rbp)
	jmp	LBB0_7
LBB0_1:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	jmp	LBB0_13
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	jmp	LBB0_7
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
LBB0_7:
	movl	16(%r14), %edi
	leaq	-24(%rbp), %rsi
	movl	$8, %edx
	callq	_proto_send
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	cmpq	$0, -24(%rbp)
	jne	LBB0_12
	jmp	LBB0_10
LBB0_8:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	cmpq	$0, -24(%rbp)
	jne	LBB0_12
LBB0_10:
	movl	16(%r14), %edi
	movq	-32(%rbp), %rsi
	callq	_proto_connection_send
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
LBB0_12:
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_prefix_set
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%s] (%s) "

	.comm	_ADIST_ROLE_SENDER,8,3          ## @ADIST_ROLE_SENDER
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unable to receive connection command"

L_.str.2:                               ## @.str.2
	.asciz	"tls:fingerprint"

	.comm	_errno,8,3                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"Unable to set fingerprint"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to connect to %s"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to send reply to connection request"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to send connection"

L_.str.7:                               ## @.str.7
	.asciz	"%s"

L_.str.8:                               ## @.str.8
	.space	1

	.no_dead_strip	_connection_migrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connection_migrate
_connection_migrate:                    ; @connection_migrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #16]
	ldrsw	x20, [x0, #28]
	ldr	x0, [x0]
	bl	_role2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pjdlog_prefix_set
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _ADIST_ROLE_SENDER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADIST_ROLE_SENDER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	w0, [x19, #16]
	add	x1, sp, #16
	mov	w2, #8
	bl	_proto_recv
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w1, [x19, #24]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_proto_set
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x0, xzr, x8, eq
	ldr	w1, [x19, #20]
	add	x3, sp, #24
	mov	w2, #-1
	bl	_proto_connect
	tbnz	x0, #63, LBB0_6
; %bb.3:
	str	xzr, [sp, #16]
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pjdlog_errno
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh15:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh23:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w8, [x19, #20]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_7:
	bl	_pjdlog_errno
LBB0_8:
	ldr	w0, [x19, #16]
	add	x1, sp, #16
	mov	w2, #8
	bl	_proto_send
	tbnz	x0, #63, LBB0_10
; %bb.9:
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_13
	b	LBB0_11
LBB0_10:
Lloh28:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_pjdlog_errno
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_13
LBB0_11:
	ldr	w0, [x19, #16]
	ldr	x1, [sp, #24]
	bl	_proto_connection_send
	tbz	x0, #63, LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_pjdlog_errno
LBB0_13:
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_pjdlog_prefix_set
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%s] (%s) "

	.comm	_ADIST_ROLE_SENDER,8,3          ; @ADIST_ROLE_SENDER
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unable to receive connection command"

l_.str.2:                               ; @.str.2
	.asciz	"tls:fingerprint"

	.comm	_errno,8,3                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"Unable to set fingerprint"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to connect to %s"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to send reply to connection request"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to send connection"

l_.str.7:                               ; @.str.7
	.asciz	"%s"

l_.str.8:                               ; @.str.8
	.space	1

	.no_dead_strip	_connection_migrate
.subsections_via_symbols
