	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_localhost
_resolve_localhost:                     ## @resolve_localhost
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$129, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r14d
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	callq	_atf_tc_fail
                                        ## implicit-def: $r12
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%r13d, %edx
	callq	_asprintf
	movq	%rax, %rbx
	shrq	$63, %rbx
	xorl	$1, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AI_ADDRCONFIG@GOTPCREL(%rip), %rax
	movq	_AI_NUMERICSERV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%r14d, -64(%rbp)
	movl	%ecx, -60(%rbp)
	movl	%r15d, -56(%rbp)
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_getaddrinfo
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.5(%rip), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_ATF_REQUIRE_EQ_MSG
	movq	-48(%rbp), %rdi
	callq	_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

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

L_.str.2:                               ## @.str.2
	.asciz	"unhandled domain: %d"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

L_.str.4:                               ## @.str.4
	.asciz	"asprintf failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_AI_ADDRCONFIG,4,2              ## @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ## @AI_NUMERICSERV
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
L_.str.5:                               ## @.str.5
	.asciz	"getaddrinfo failed: %s"

	.no_dead_strip	_resolve_localhost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_localhost
_resolve_localhost:                     ; @resolve_localhost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_atf_tc_fail
                                        ; implicit-def: $x22
LBB0_5:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	mov	x2, x23
	bl	_asprintf
	lsr	x8, x0, #63
	eor	w23, w8, #0x1
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_ATF_REQUIRE_MSG
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh13:
	adrp	x8, _AI_ADDRCONFIG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AI_ADDRCONFIG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _AI_NUMERICSERV@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AI_NUMERICSERV@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w21, w8, [sp, #8]
	str	w20, [sp, #16]
	ldr	x1, [sp, #24]
	add	x2, sp, #8
	mov	x0, x22
	mov	x3, x19
	bl	_getaddrinfo
	mov	x19, x0
	bl	_gai_strerror
	mov	x3, x0
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ_MSG
	ldr	x0, [sp, #24]
	bl	_free
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

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

l_.str.2:                               ; @.str.2
	.asciz	"unhandled domain: %d"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

l_.str.4:                               ; @.str.4
	.asciz	"asprintf failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_AI_ADDRCONFIG,4,2              ; @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ; @AI_NUMERICSERV
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
l_.str.5:                               ; @.str.5
	.asciz	"getaddrinfo failed: %s"

	.no_dead_strip	_resolve_localhost
.subsections_via_symbols
