	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_host_on_connect            ## -- Begin function get_host_on_connect
	.p2align	4, 0x90
_get_host_on_connect:                   ## @get_host_on_connect
	.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	%r9, %r13
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	$0, (%r9)
	movq	%rdx, %rdi
	movl	$1, %esi
	callq	_get_host_by_random_tag
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rsi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpq	%r14, 8(%rbx)
	jne	LBB0_3
## %bb.4:
	movl	24(%rbx), %edi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_COPYEXEC_ERR_HOSTNAME_MISMATCHED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	%r14, 8(%rbx)
	movq	$0, 32(%rbx)
	movq	%r15, %rdi
	callq	_zstrdup
	movl	%eax, 24(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movl	12(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	_CONN_FD_HOST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%rbx, (%r13)
	movq	_COPYEXEC_RESULT_NEW_HOST@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_COPYEXEC_ERR_VOLUME_ID_MISMATCHED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	12(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	_CONN_FD_HOST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%rbx, (%r13)
	cmpl	%r15d, (%rbx)
	jne	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, 16(%rbx)
	je	LBB0_11
## %bb.9:
	movl	%r15d, 16(%rbx)
	movq	_COPYEXEC_RESULT_PID_CHANGED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movl	%r15d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movq	_COPYEXEC_RESULT_IP_CHANGED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_COPYEXEC_ERR_INVAL,4,2         ## @COPYEXEC_ERR_INVAL
	.comm	_CONN_FD_HOST,8,3               ## @CONN_FD_HOST
	.comm	_COPYEXEC_RESULT_NEW_HOST,4,2   ## @COPYEXEC_RESULT_NEW_HOST
	.comm	_COPYEXEC_ERR_VOLUME_ID_MISMATCHED,4,2 ## @COPYEXEC_ERR_VOLUME_ID_MISMATCHED
	.comm	_COPYEXEC_ERR_HOSTNAME_MISMATCHED,4,2 ## @COPYEXEC_ERR_HOSTNAME_MISMATCHED
	.comm	_COPYEXEC_RESULT_IP_CHANGED,4,2 ## @COPYEXEC_RESULT_IP_CHANGED
	.comm	_COPYEXEC_RESULT_PID_CHANGED,4,2 ## @COPYEXEC_RESULT_PID_CHANGED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_host_on_connect            ; -- Begin function get_host_on_connect
	.p2align	2
_get_host_on_connect:                   ; @get_host_on_connect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x24, x1
	mov	x22, x0
	ldr	w25, [x0, #8]
	str	xzr, [x5]
	mov	x0, x2
	mov	w1, #1
	bl	_get_host_by_random_tag
	mov	x21, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, x24
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x21, #24]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _COPYEXEC_ERR_HOSTNAME_MISMATCHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COPYEXEC_ERR_HOSTNAME_MISMATCHED@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	str	x24, [x21, #8]
	str	xzr, [x21, #32]
	mov	x0, x23
	bl	_zstrdup
	str	w0, [x21, #24]
	str	w25, [x21]
	ldr	w8, [x22, #12]
	stp	w19, w8, [x21, #16]
Lloh2:
	adrp	x8, _CONN_FD_HOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONN_FD_HOST@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x22]
	str	x21, [x8, x9, lsl #3]
	str	x21, [x20]
Lloh5:
	adrp	x8, _COPYEXEC_RESULT_NEW_HOST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COPYEXEC_RESULT_NEW_HOST@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _COPYEXEC_ERR_VOLUME_ID_MISMATCHED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _COPYEXEC_ERR_VOLUME_ID_MISMATCHED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x22, #12]
	str	w8, [x21, #20]
Lloh9:
	adrp	x8, _CONN_FD_HOST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONN_FD_HOST@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x22]
	str	x21, [x8, x9, lsl #3]
	str	x21, [x20]
	ldr	w8, [x21]
	cmp	w8, w25
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x21, #16]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.10:
	mov	w0, #0
	b	LBB0_7
LBB0_11:
	str	w25, [x21]
	str	w19, [x21, #16]
Lloh12:
	adrp	x8, _COPYEXEC_RESULT_IP_CHANGED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COPYEXEC_RESULT_IP_CHANGED@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	str	w19, [x21, #16]
Lloh14:
	adrp	x8, _COPYEXEC_RESULT_PID_CHANGED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COPYEXEC_RESULT_PID_CHANGED@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_COPYEXEC_ERR_INVAL,4,2         ; @COPYEXEC_ERR_INVAL
	.comm	_CONN_FD_HOST,8,3               ; @CONN_FD_HOST
	.comm	_COPYEXEC_RESULT_NEW_HOST,4,2   ; @COPYEXEC_RESULT_NEW_HOST
	.comm	_COPYEXEC_ERR_VOLUME_ID_MISMATCHED,4,2 ; @COPYEXEC_ERR_VOLUME_ID_MISMATCHED
	.comm	_COPYEXEC_ERR_HOSTNAME_MISMATCHED,4,2 ; @COPYEXEC_ERR_HOSTNAME_MISMATCHED
	.comm	_COPYEXEC_RESULT_IP_CHANGED,4,2 ; @COPYEXEC_RESULT_IP_CHANGED
	.comm	_COPYEXEC_RESULT_PID_CHANGED,4,2 ; @COPYEXEC_RESULT_PID_CHANGED
.subsections_via_symbols
