	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_server_connect
_pp_server_connect:                     ## @pp_server_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	$0, -104(%rbp)
	movl	$0, -96(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%r14d, %edx
	callq	_asprintf
	movl	$1, %r12d
	testq	%rax, %rax
	js	LBB0_23
## %bb.1:
	movq	-48(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%edi, %edi
	callq	_getaddrinfo
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	-64(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.5:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r14
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %r15
	leaq	-56(%rbp), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_close
	movl	$-1, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_6:                                 ## =>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_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -56(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	%r13d, %edi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	%r13d, %edi
	callq	_bind
	testl	%eax, %eax
	jne	LBB0_8
LBB0_10:
	movq	-64(%rbp), %rdi
	movl	$1, %r12d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_11
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
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_23
LBB0_3:
	movl	$-1, %r13d
	xorl	%edi, %edi
LBB0_11:
	callq	_freeaddrinfo_null
	movq	-48(%rbp), %rdi
	callq	_free
	testl	%r13d, %r13d
	js	LBB0_12
## %bb.14:
	movq	_ctx@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r13d, %edi
	callq	_listen
	cmpl	$0, (%r14)
	jle	LBB0_22
## %bb.15:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_recv_remote_dest
	testq	%rax, %rax
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_send_local_dest
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r15d, %edi
	callq	_connect_qps
	testq	%rax, %rax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	incl	%r15d
	cmpl	(%r14), %r15d
	jl	LBB0_16
LBB0_22:
	movl	%r13d, %edi
	callq	_close
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

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

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't listen to port %d\n"

	.comm	_ctx,4,2                        ## @ctx
L_.str.3:                               ## @.str.3
	.asciz	"accept() failed for client %d\n"

	.no_dead_strip	_pp_server_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_server_connect
_pp_server_connect:                     ; @pp_server_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	xzr, [sp, #40]
Lloh6:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #64
	mov	x2, x19
	bl	_asprintf
	tbnz	x0, #63, LBB0_22
; %bb.1:
	ldr	x1, [sp, #64]
	add	x2, sp, #16
	sub	x3, x29, #56
	mov	x0, #0
	bl	_getaddrinfo
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldur	x21, [x29, #-56]
	cbz	x21, LBB0_10
; %bb.3:
	mov	w22, #1
Lloh11:
	adrp	x23, _SOL_SOCKET@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SOL_SOCKET@GOTPAGEOFF]
Lloh13:
	adrp	x24, _SO_REUSEADDR@GOTPAGE
Lloh14:
	ldr	x24, [x24, _SO_REUSEADDR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_close
	mov	w20, #-1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x21, #12]
	ldr	w2, [x21, #8]
	bl	_socket
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w22, [sp, #60]
	ldr	w1, [x23]
	ldr	w2, [x24]
	add	x3, sp, #60
	mov	x0, x20
	mov	w4, #4
	bl	_setsockopt
	ldp	w2, w1, [x21]
	mov	x0, x20
	bl	_bind
	cbnz	w0, LBB0_4
LBB0_8:
	ldur	x0, [x29, #-56]
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	bl	_gai_strerror
	stp	x0, x19, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	ldr	x0, [sp, #64]
	bl	_free
	b	LBB0_22
LBB0_10:
	mov	x0, #0
	mov	w20, #-1
LBB0_11:
	bl	_freeaddrinfo_null
	ldr	x0, [sp, #64]
	bl	_free
	tbnz	w20, #31, LBB0_20
; %bb.12:
Lloh20:
	adrp	x22, _ctx@GOTPAGE
Lloh21:
	ldr	x22, [x22, _ctx@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_listen
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.13:
	mov	w19, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	tbnz	w0, #31, LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x21, x0
	mov	x1, x19
	bl	_recv_remote_dest
	cbnz	x0, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_send_local_dest
	cbnz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_connect_qps
	cbnz	x0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w19, w19, #1
	ldr	w8, [x22]
	cmp	w19, w8
	b.lt	LBB0_14
LBB0_19:
	mov	x0, x20
	bl	_close
	mov	w0, #0
	b	LBB0_23
LBB0_20:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_21:
	bl	_fprintf
LBB0_22:
	mov	w0, #1
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_21
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

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

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't listen to port %d\n"

	.comm	_ctx,4,2                        ; @ctx
l_.str.3:                               ; @.str.3
	.asciz	"accept() failed for client %d\n"

	.no_dead_strip	_pp_server_connect
.subsections_via_symbols
