	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guess_domain
_guess_domain:                          ## @guess_domain
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_gethostname
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incq	%rax
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_strlcpy
	movq	%r15, %rbx
	jmp	LBB0_12
LBB0_4:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.8:
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_11
LBB0_6:
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_10:
	movq	(%rdi), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_strlcpy
	movq	-32(%rbp), %rdi
LBB0_11:
	callq	_freeaddrinfo
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_AI_CANONNAME,4,2               ## @AI_CANONNAME
	.no_dead_strip	_guess_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guess_domain
_guess_domain:                          ; @guess_domain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	bl	_gethostname
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
	add	x19, x0, #1
	b	LBB0_11
LBB0_3:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_strlcpy
	mov	x19, x21
	b	LBB0_11
LBB0_4:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _AI_CANONNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AI_CANONNAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	mov	x2, sp
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, #0
	bl	_getaddrinfo
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x8, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cbnz	x9, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_7
	b	LBB0_10
LBB0_9:
	ldr	x1, [x0]
	mov	x0, x19
	mov	x2, x20
	bl	_strlcpy
	ldr	x0, [sp, #24]
LBB0_10:
	bl	_freeaddrinfo
	mov	x0, x19
	mov	w1, #46
	bl	_strchr
	cmp	x0, #0
	csinc	x19, x19, x0, eq
LBB0_11:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_AI_CANONNAME,4,2               ; @AI_CANONNAME
	.no_dead_strip	_guess_domain
.subsections_via_symbols
