	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_connect
_set_connect:                           ## @set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	movl	$1, %esi
	callq	_get_host_by_random_tag
	movq	%rax, %rbx
	movl	16(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %r15d
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_strlen
	cmpl	%eax, %r15d
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	cmpl	%eax, %r15d
	jne	LBB0_5
LBB0_4:
	movq	(%rbx), %rdi
	movl	4(%r14), %esi
	movl	%r15d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	(%rbx), %r12
	testq	%r12, %r12
	jne	LBB0_8
## %bb.6:
	leal	1(%r15), %edi
	callq	_zmalloc0
	movq	%rax, (%rbx)
	movl	4(%r14), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %ebx
	movl	4(%r14), %r14d
	xorl	%eax, %eax
	callq	_log_cur_pos
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_now,4,2                        ## @now
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_connect: hostname didn't matched. Old hostname = %s, new hostname = %.*s. (log_cur_pos: %lld)\n"

	.no_dead_strip	_set_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_connect
_set_connect:                           ; @set_connect
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
	mov	w1, #1
	bl	_get_host_by_random_tag
	mov	x20, x0
	ldr	w8, [x19, #16]
	str	w8, [x0, #20]
	ldr	d0, [x19, #8]
	stur	d0, [x0, #12]
Lloh0:
	adrp	x8, _now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	w21, [x19]
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_strlen
	cmp	w21, w0
	b.eq	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w0, #-1
	cmp	w21, w0
	b.ne	LBB0_4
LBB0_3:
	ldr	x0, [x20]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_6
LBB0_4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.5:
	add	w0, w21, #1
	bl	_zmalloc0
	str	x0, [x20]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_memcpy
LBB0_6:
	mov	w0, #0
	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
LBB0_7:
	ldp	w20, w19, [x19]
	mov	x21, x8
	bl	_log_cur_pos
	mov	x4, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_now,4,2                        ; @now
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_connect: hostname didn't matched. Old hostname = %s, new hostname = %.*s. (log_cur_pos: %lld)\n"

	.no_dead_strip	_set_connect
.subsections_via_symbols
