	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_host_and_domain
_get_host_and_domain:                   ## @get_host_and_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_gethostname
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snprintf
LBB0_2:
	movslq	%r15d, %rax
	movb	$0, -1(%rax,%r14)
	movq	%r14, %rdi
	callq	_strlen
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.3:
	movl	%eax, %ebx
	cltq
	movb	$46, (%r14,%rax)
	addq	%rax, %r14
	incq	%r14
	notl	%ebx
	addl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_getdomainname
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snprintf
LBB0_5:
	movq	%r14, %rdi
	callq	_strlen
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movb	$0, -1(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?hostname?"

L_.str.1:                               ## @.str.1
	.asciz	"?domainname?"

	.no_dead_strip	_get_host_and_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_host_and_domain
_get_host_and_domain:                   ; @get_host_and_domain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_gethostname
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
LBB0_2:
	add	x8, x20, w19, sxtw
	sturb	wzr, [x8, #-1]
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w19
	b.ge	LBB0_7
; %bb.3:
	sxtw	x8, w0
	mov	w9, #46
	strb	w9, [x20, x8]
	add	x8, x8, #1
	add	x20, x20, x8
	sub	w19, w19, w8
	mov	x0, x20
	mov	x1, x19
	bl	_getdomainname
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
LBB0_5:
	mov	x0, x20
	bl	_strlen
	cbnz	w0, LBB0_7
; %bb.6:
	sturb	wzr, [x20, #-1]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?hostname?"

l_.str.1:                               ; @.str.1
	.asciz	"?domainname?"

	.no_dead_strip	_get_host_and_domain
.subsections_via_symbols
