	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_client_connect
_pp_client_connect:                     ## @pp_client_connect
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%r12d, %edx
	callq	_asprintf
	movl	$1, %r14d
	testq	%rax, %rax
	js	LBB0_15
## %bb.1:
	movq	-48(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	callq	_getaddrinfo
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.3:
	movl	$-1, %r13d
	xorl	%edi, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_close
	movl	$-1, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	callq	_socket
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	%r13d, %edi
	callq	_connect
	testl	%eax, %eax
	jne	LBB0_7
LBB0_9:
	movq	-56(%rbp), %rdi
LBB0_10:
	callq	_freeaddrinfo_null
	movq	-48(%rbp), %rdi
	callq	_free
	testl	%r13d, %r13d
	js	LBB0_11
## %bb.12:
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_send_local_dest
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_recv_remote_dest
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	callq	_connect_qps
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_15
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	movq	%r15, %rcx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_15
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s for %s:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't connect to %s:%d\n"

	.no_dead_strip	_pp_client_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_client_connect
_pp_client_connect:                     ; @pp_client_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #28]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #48
	mov	x2, x20
	bl	_asprintf
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldr	x1, [sp, #48]
	add	x2, sp, #16
	sub	x3, x29, #40
	mov	x0, x19
	bl	_getaddrinfo
	tbnz	w0, #31, LBB0_13
; %bb.2:
	ldur	x22, [x29, #-40]
	cbnz	x22, LBB0_6
; %bb.3:
	mov	x0, #0
	mov	w21, #-1
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_close
	mov	w21, #-1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x22, #12]
	ldr	w2, [x22, #8]
	bl	_socket
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w1, [x22]
	mov	x0, x21
	bl	_connect
	cbnz	w0, LBB0_4
LBB0_8:
	ldur	x0, [x29, #-40]
LBB0_9:
	bl	_freeaddrinfo_null
	ldr	x0, [sp, #48]
	bl	_free
	tbnz	w21, #31, LBB0_14
; %bb.10:
	mov	x0, x21
	mov	w1, #0
	bl	_send_local_dest
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	w1, #0
	bl	_recv_remote_dest
	cbz	x0, LBB0_15
LBB0_12:
	mov	w0, #1
	b	LBB0_16
LBB0_13:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_gai_strerror
	mov	x2, x0
	stp	x19, x20, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	ldr	x0, [sp, #48]
	bl	_free
	mov	w0, #1
	b	LBB0_16
LBB0_14:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	b	LBB0_16
LBB0_15:
	bl	_connect_qps
	cmp	x0, #0
	cset	w0, ne
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s for %s:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't connect to %s:%d\n"

	.no_dead_strip	_pp_client_connect
.subsections_via_symbols
