	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_run_persistent_server
_rping_run_persistent_server:           ## @rping_run_persistent_server
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rping_bind_server
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	leaq	-44(%rbp), %rdi
	callq	_pthread_attr_init
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_PTHREAD_CREATE_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_pthread_attr_setdetachstate
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	leaq	12(%r14), %r15
	movq	_CONNECT_REQUEST@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_sem_wait
	movq	(%r14), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_clone_cb
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	_rping_persistent_server_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rsi
	movq	%rax, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_12
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_9:
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	callq	_perror
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pthread_attr_init"

	.comm	_PTHREAD_CREATE_DETACHED,4,2    ## @PTHREAD_CREATE_DETACHED
L_.str.1:                               ## @.str.1
	.asciz	"pthread_attr_setdetachstate"

	.comm	_CONNECT_REQUEST,8,3            ## @CONNECT_REQUEST
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"wait for CONNECT_REQUEST state %d\n"

	.comm	_rping_persistent_server_thread,4,2 ## @rping_persistent_server_thread
L_.str.3:                               ## @.str.3
	.asciz	"pthread_create"

	.no_dead_strip	_rping_run_persistent_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_run_persistent_server
_rping_run_persistent_server:           ; @rping_run_persistent_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_rping_bind_server
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.1:
	add	x0, sp, #12
	bl	_pthread_attr_init
	cbnz	w0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _PTHREAD_CREATE_DETACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTHREAD_CREATE_DETACHED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_pthread_attr_setdetachstate
	cbnz	w0, LBB0_12
; %bb.3:
	add	x21, x19, #12
Lloh3:
	adrp	x22, _CONNECT_REQUEST@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CONNECT_REQUEST@GOTPAGEOFF]
Lloh5:
	adrp	x23, _rping_persistent_server_thread@GOTPAGE
Lloh6:
	ldr	x23, [x23, _rping_persistent_server_thread@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_sem_wait
	ldr	x2, [x19]
	ldr	x8, [x22]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_clone_cb
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, x0
	add	x0, x0, #8
	ldr	w2, [x23]
	add	x1, sp, #12
	bl	_pthread_create
	cbz	w0, LBB0_4
; %bb.7:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_9:
	mov	w20, #-1
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x20, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x20, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	bl	_perror
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pthread_attr_init"

	.comm	_PTHREAD_CREATE_DETACHED,4,2    ; @PTHREAD_CREATE_DETACHED
l_.str.1:                               ; @.str.1
	.asciz	"pthread_attr_setdetachstate"

	.comm	_CONNECT_REQUEST,8,3            ; @CONNECT_REQUEST
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"wait for CONNECT_REQUEST state %d\n"

	.comm	_rping_persistent_server_thread,4,2 ; @rping_persistent_server_thread
l_.str.3:                               ; @.str.3
	.asciz	"pthread_create"

	.no_dead_strip	_rping_run_persistent_server
.subsections_via_symbols
