	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_client
_setup_client:                          ## @setup_client
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	-56(%rbp), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_resolve_localhost
	movq	-56(%rbp), %rax
	movq	16(%rax), %rbx
	movl	8(%rax), %r14d
	movq	%r13, %rdi
	callq	_nitems
	leaq	-1(%rax), %rcx
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_ATF_REQUIRE_EQ_MSG
	movq	-56(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	24(%rax), %edx
	callq	_make_socket
	movl	%eax, %r14d
	movq	-56(%rbp), %rax
	movq	16(%rax), %rsi
	movl	8(%rax), %edx
	movl	%r14d, %edi
	callq	_connect
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi
	callq	_freeaddrinfo
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_ATF_REQUIRE_EQ_MSG
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getnameinfo failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Will try to connect to host='%s', address_family=%d, socket_type=%d\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"connect failed: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_setup_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_client
_setup_client:                          ; @setup_client
	.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
	sub	sp, sp, #16
	mov	x3, x2
	mov	x2, x1
	mov	x1, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	sub	x0, x29, #48
	bl	_resolve_localhost
	ldur	x8, [x29, #-48]
	ldr	x20, [x8, #16]
	ldr	w21, [x8, #8]
	mov	x0, x19
	bl	_nitems
	sub	x3, x0, #1
Lloh8:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	mov	x20, x0
	bl	_gai_strerror
	mov	x3, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ_MSG
	ldur	x8, [x29, #-48]
	ldp	w2, w3, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh15:
	adrp	x8, _stdout@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_fflush
	ldur	x8, [x29, #-48]
	ldp	w0, w1, [x8]
	ldr	w2, [x8, #24]
	bl	_make_socket
	mov	x19, x0
	ldur	x8, [x29, #-48]
	ldr	x1, [x8, #16]
	ldr	w2, [x8, #8]
	bl	_connect
	mov	x20, x0
	ldur	x0, [x29, #-48]
	bl	_freeaddrinfo
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ_MSG
	mov	sp, x22
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	sub	sp, x29, #32
	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
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getnameinfo failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Will try to connect to host='%s', address_family=%d, socket_type=%d\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"connect failed: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_setup_client
.subsections_via_symbols
