	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shrink_hostname                ## -- Begin function shrink_hostname
	.p2align	4, 0x90
_shrink_hostname:                       ## @shrink_hostname
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MaxHostNameLen@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rdi
	callq	_strlen
	cmpq	%r15, %rax
	jae	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gethostname
	movq	%r13, %rdi
	movl	$46, %esi
	callq	_strchr
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%r12, %r12
	je	LBB0_8
## %bb.4:
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	subq	%r13, %r12
	cmpq	%r15, %r12
	jae	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_strlcpy
	movb	$0, (%rbx,%r12)
	jmp	LBB0_13
LBB0_8:
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:
	movq	-64(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	callq	_freeaddrinfo
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
LBB0_12:
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_strncpy
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxHostNameLen,4,2             ## @MaxHostNameLen
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shrink_hostname                ; -- Begin function shrink_hostname
	.p2align	2
_shrink_hostname:                       ; @shrink_hostname
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MaxHostNameLen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxHostNameLen@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	bl	_strlen
	cmp	x0, x19
	b.hs	LBB0_3
; %bb.1:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_strlcpy
LBB0_3:
	mov	x0, x22
	mov	x1, x23
	bl	_gethostname
	mov	x0, x21
	mov	w1, #46
	bl	_strchr
	mov	x23, x0
	mov	x0, x22
	mov	w1, #46
	bl	_strchr
	cbz	x23, LBB0_8
; %bb.4:
	mov	x1, x0
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x23
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.6:
	sub	x22, x23, x21
	cmp	x22, x19
	b.hs	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_strlcpy
	strb	wzr, [x20, x22]
	b	LBB0_11
LBB0_8:
	sub	x3, x29, #64
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbnz	w0, LBB0_10
; %bb.9:
	ldur	x8, [x29, #-64]
	ldp	w1, w0, [x8]
Lloh11:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x2, x20
	mov	x3, x19
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	mov	x22, x0
	ldur	x0, [x29, #-64]
	bl	_freeaddrinfo
	cbz	w22, LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_strncpy
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxHostNameLen,4,2             ; @MaxHostNameLen
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
.subsections_via_symbols
