	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_normalize                 ## -- Begin function host_normalize
	.p2align	4, 0x90
_host_normalize:                        ## @host_normalize
	.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
	movq	%rdi, %r14
	movq	_gopt@GOTPCREL(%rip), %r15
	movq	_CFM_NORMALIZE_HOSTNAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rsi
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_dlog
	movq	(%r14), %rdi
	movq	8(%rbx), %rsi
	callq	_strealloc
	movq	%rax, (%r14)
LBB0_4:
	movq	_CFM_DOMAIN_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	movq	_hostd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_domain_strip                   ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gopt,4,2                       ## @gopt
	.comm	_CFM_NORMALIZE_HOSTNAMES,4,2    ## @CFM_NORMALIZE_HOSTNAMES
	.comm	_AF_INET,8,3                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hostname %s normalized to %s"

	.comm	_CFM_DOMAIN_STRIP,4,2           ## @CFM_DOMAIN_STRIP
	.comm	_hostd,4,2                      ## @hostd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_normalize                 ; -- Begin function host_normalize
	.p2align	2
_host_normalize:                        ; @host_normalize
	.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
Lloh0:
	adrp	x21, _gopt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _gopt@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _CFM_NORMALIZE_HOSTNAMES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CFM_NORMALIZE_HOSTNAMES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x0, [x19]
	bl	_gethostbyname
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _AF_INET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x1, [x19]
	ldr	x2, [x20, #8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlog
	ldr	x0, [x19]
	ldr	x1, [x20, #8]
	bl	_strealloc
	str	x0, [x19]
LBB0_4:
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _CFM_DOMAIN_STRIP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CFM_DOMAIN_STRIP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x19]
Lloh13:
	adrp	x8, _hostd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hostd@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	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
	b	_domain_strip
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_gopt,4,2                       ; @gopt
	.comm	_CFM_NORMALIZE_HOSTNAMES,4,2    ; @CFM_NORMALIZE_HOSTNAMES
	.comm	_AF_INET,8,3                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hostname %s normalized to %s"

	.comm	_CFM_DOMAIN_STRIP,4,2           ; @CFM_DOMAIN_STRIP
	.comm	_hostd,4,2                      ; @hostd
.subsections_via_symbols
