	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resolv_domain_to_hostname      ## -- Begin function resolv_domain_to_hostname
	.p2align	4, 0x90
_resolv_domain_to_hostname:             ## @resolv_domain_to_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_util_strlen
                                        ## kill: def $eax killed $eax def $rax
	leaq	1(%r14), %rcx
	testl	%eax, %eax
	js	LBB0_20
## %bb.1:
	leal	1(%rax), %r8d
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%r8d, %esi
	andl	$-2, %esi
	leaq	2(%r14), %rcx
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	%al, (%rbx)
	xorl	%eax, %eax
	movq	%rcx, %r14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rcx
	leaq	2(%rdi), %rbx
	addl	$-2, %esi
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-1(%rcx), %rbx
	movzbl	(%rdi), %edx
	cmpb	$46, %dl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%dl, %dl
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	%al, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incb	%al
	movb	%dl, (%rbx)
	movq	%r14, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rdi), %edx
	cmpb	$46, %dl
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%dl, %dl
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	incb	%al
	movb	%dl, (%rcx)
	movq	%rbx, %r14
	jmp	LBB0_12
LBB0_13:
	addq	$2, %rdi
	decq	%rcx
	movq	%rdi, %rbx
	testb	$1, %r8b
	jne	LBB0_15
	jmp	LBB0_20
LBB0_2:
	xorl	%eax, %eax
	testb	$1, %r8b
	je	LBB0_20
LBB0_15:
	movb	(%rbx), %dl
	cmpb	$46, %dl
	je	LBB0_17
## %bb.16:
	testb	%dl, %dl
	jne	LBB0_18
LBB0_17:
	movb	%al, (%r14)
	jmp	LBB0_19
LBB0_18:
	movb	%dl, (%rcx)
LBB0_19:
	incq	%rcx
LBB0_20:
	movb	$0, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resolv_domain_to_hostname      ; -- Begin function resolv_domain_to_hostname
	.p2align	2
_resolv_domain_to_hostname:             ; @resolv_domain_to_hostname
	.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
	mov	x0, x1
	bl	_util_strlen
	add	x8, x20, #1
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	w10, #0
	add	w9, w0, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w10, #1
	strb	w11, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	sub	w9, w9, #1
	cmp	w9, #0
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x19], #1
	cmp	w11, #46
	ccmp	w11, #0, #4, ne
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w10, [x20]
	mov	w10, #0
	mov	x20, x8
	b	LBB0_3
LBB0_6:
	strb	wzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
