	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_wait
_net_wait:                              ## @net_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movl	%eax, -12(%rbp)
	movq	_PROCESS_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_xdr_int@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_RDB_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-12(%rbp), %rdx
	movq	%rbx, %r8
	callq	_net_clnt_call
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setne	%al
	jmp	LBB0_3
LBB0_2:
	movq	_RPC_TIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	leal	(%rdx,%rdx), %eax
	decl	%eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_PROCESS_WAIT,4,2               ## @PROCESS_WAIT
	.comm	_xdr_int,4,2                    ## @xdr_int
	.comm	_xdr_RDB_EVENT,4,2              ## @xdr_RDB_EVENT
	.comm	_RPC_SUCCESS,4,2                ## @RPC_SUCCESS
	.comm	_RPC_TIMEDOUT,4,2               ## @RPC_TIMEDOUT
	.no_dead_strip	_net_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_wait
_net_wait:                              ; @net_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PIDGET
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _PROCESS_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROCESS_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _xdr_int@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xdr_int@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _xdr_RDB_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xdr_RDB_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x4, x19
	bl	_net_clnt_call
Lloh12:
	adrp	x8, _RPC_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RPC_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _RPC_TIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RPC_TIMEDOUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #1
	cneg	w0, w8, ne
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_PROCESS_WAIT,4,2               ; @PROCESS_WAIT
	.comm	_xdr_int,4,2                    ; @xdr_int
	.comm	_xdr_RDB_EVENT,4,2              ; @xdr_RDB_EVENT
	.comm	_RPC_SUCCESS,4,2                ; @RPC_SUCCESS
	.comm	_RPC_TIMEDOUT,4,2               ; @RPC_TIMEDOUT
	.no_dead_strip	_net_wait
.subsections_via_symbols
