	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regtest
_regtest:                               ## @regtest
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rdi
	callq	_atoi
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, -44(%rbp)
	movq	_server@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROGNUM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_VERSNUM@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rcx
	callq	_svc_create
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_SKIPX
LBB0_5:
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	xorl	%eax, %eax
	callq	_svc_run
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ERRX
LBB0_8:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ERRX
LBB0_9:
	movl	$1, %edi
	callq	_sleep
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_clnt_create
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.6(%rip), %rdi
	callq	_clnt_spcreateerror
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ERRX
LBB0_11:
	movq	_PLUSONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_int@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tout@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movl	%edx, %r8d
	callq	_clnt_call
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_13
## %bb.12:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_clnt_sperrno
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ERRX
LBB0_13:
	movl	-48(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	-44(%rbp), %edx
	incl	%edx
	movl	%edx, -44(%rbp)
	movl	-48(%rbp), %ecx
	cmpl	%ecx, %edx
	je	LBB0_15
## %bb.14:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_ERRX
LBB0_15:
	movq	_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_void@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	xorl	%r9d, %r9d
	callq	_clnt_call
	cmpl	(%r12), %eax
	je	LBB0_17
## %bb.16:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_clnt_sperrno
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ERRX
LBB0_17:
	movq	%rbx, %rdi
	callq	_clnt_destroy
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_server,4,2                     ## @server
	.comm	_PROGNUM,4,2                    ## @PROGNUM
	.comm	_VERSNUM,4,2                    ## @VERSNUM
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot create server %d"

L_.str.1:                               ## @.str.1
	.asciz	"Calling svc_run\n"

L_.str.2:                               ## @.str.2
	.asciz	"svc_run returned %d!"

L_.str.3:                               ## @.str.3
	.asciz	"Fork failed (%s)"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"Initializing client\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s"

L_.str.6:                               ## @.str.6
	.asciz	"clnt_raw_create"

	.comm	_PLUSONE,4,2                    ## @PLUSONE
	.comm	_xdr_int,8,3                    ## @xdr_int
	.comm	_tout,4,2                       ## @tout
	.comm	_RPC_SUCCESS,4,2                ## @RPC_SUCCESS
L_.str.7:                               ## @.str.7
	.asciz	"clnt_call: %s"

L_.str.8:                               ## @.str.8
	.asciz	"Got %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"expected %d got %d"

	.comm	_DESTROY,4,2                    ## @DESTROY
	.comm	_xdr_void,8,3                   ## @xdr_void
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_SVC_FDSET_POLL,4,2             ## @SVC_FDSET_POLL
	.no_dead_strip	_regtest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regtest
_regtest:                               ; @regtest
	.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, x1
	mov	x20, x0
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x2
	bl	_atoi
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	str	w21, [sp, #12]
Lloh0:
	adrp	x8, _server@GOTPAGE
Lloh1:
	ldr	x8, [x8, _server@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x23, _PROGNUM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PROGNUM@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x24, _VERSNUM@GOTPAGE
Lloh6:
	ldr	x24, [x24, _VERSNUM@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x3, x19
	bl	_svc_create
Lloh7:
	adrp	x22, _EXIT_FAILURE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _EXIT_FAILURE@GOTPAGEOFF]
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x22]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_SKIPX
LBB0_5:
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:
	cbnz	w0, LBB0_9
; %bb.7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	bl	_svc_run
	ldr	w0, [x22]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_ERRX
LBB0_8:
	ldr	w21, [x22]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_ERRX
LBB0_9:
	mov	w0, #1
	bl	_sleep
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINTF
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	mov	x3, x19
	bl	_clnt_create
	mov	x19, x0
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w20, [x22]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_clnt_spcreateerror
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_ERRX
LBB0_11:
Lloh26:
	adrp	x8, _PLUSONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PLUSONE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _xdr_int@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xdr_int@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x21, _tout@GOTPAGE
Lloh33:
	ldr	x21, [x21, _tout@GOTPAGEOFF]
	ldr	w6, [x21]
	add	x3, sp, #12
	add	x5, sp, #8
	mov	x0, x19
	mov	x4, x2
	bl	_clnt_call
Lloh34:
	adrp	x23, _RPC_SUCCESS@GOTPAGE
Lloh35:
	ldr	x23, [x23, _RPC_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w20, [x22]
	bl	_clnt_sperrno
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_ERRX
LBB0_13:
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.8@PAGE
Lloh39:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [sp, #12]
	add	w2, w8, #1
	str	w2, [sp, #12]
	ldr	w8, [sp, #8]
	cmp	w2, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_ERRX
LBB0_15:
Lloh42:
	adrp	x8, _DESTROY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DESTROY@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _xdr_void@GOTPAGE
Lloh46:
	ldr	x8, [x8, _xdr_void@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	ldr	w6, [x21]
	mov	x0, x19
	mov	x3, #0
	mov	x4, x2
	mov	x5, #0
	bl	_clnt_call
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	w20, [x22]
	bl	_clnt_sperrno
	mov	x2, x0
Lloh48:
	adrp	x1, l_.str.7@PAGE
Lloh49:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_ERRX
LBB0_17:
	mov	x0, x19
	bl	_clnt_destroy
Lloh50:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_server,4,2                     ; @server
	.comm	_PROGNUM,4,2                    ; @PROGNUM
	.comm	_VERSNUM,4,2                    ; @VERSNUM
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot create server %d"

l_.str.1:                               ; @.str.1
	.asciz	"Calling svc_run\n"

l_.str.2:                               ; @.str.2
	.asciz	"svc_run returned %d!"

l_.str.3:                               ; @.str.3
	.asciz	"Fork failed (%s)"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"Initializing client\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s"

l_.str.6:                               ; @.str.6
	.asciz	"clnt_raw_create"

	.comm	_PLUSONE,4,2                    ; @PLUSONE
	.comm	_xdr_int,8,3                    ; @xdr_int
	.comm	_tout,4,2                       ; @tout
	.comm	_RPC_SUCCESS,4,2                ; @RPC_SUCCESS
l_.str.7:                               ; @.str.7
	.asciz	"clnt_call: %s"

l_.str.8:                               ; @.str.8
	.asciz	"Got %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"expected %d got %d"

	.comm	_DESTROY,4,2                    ; @DESTROY
	.comm	_xdr_void,8,3                   ; @xdr_void
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_SVC_FDSET_POLL,4,2             ; @SVC_FDSET_POLL
	.no_dead_strip	_regtest
.subsections_via_symbols
