	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_client_wait                 ## -- Begin function uc_client_wait
	.p2align	4, 0x90
_uc_client_wait:                        ## @uc_client_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
	leaq	L_.str(%rip), %rdi
	callq	_uc_dbgmsg
	movq	_uc_cfg@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rax
	movq	_SYNC_SERVER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_SYNC_RECV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_close
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	movq	_SYNC_CLIENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_SYNC_SEND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_close
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	movl	(%rbx), %edi
	leaq	-12(%rbp), %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpq	$-1, %rax
	je	LBB0_10
## %bb.3:
	movl	-12(%rbp), %edi
	callq	_WIFEXITED
	movl	-12(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	callq	_WEXITSTATUS
	movl	%eax, %ecx
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_9
## %bb.5:
	movl	-12(%rbp), %edi
	callq	_WEXITSTATUS
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	-12(%rbp), %edi
	callq	_WEXITSTATUS
	negl	%eax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	callq	_uc_logmsg
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_11:
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	-12(%rbp), %edi
	callq	_WTERMSIG
	movl	%eax, %ebx
	movl	-12(%rbp), %edi
	callq	_WCOREDUMP
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	jmp	LBB0_8
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting for client"

	.comm	_uc_cfg,16,3                    ## @uc_cfg
	.comm	_SYNC_SERVER,8,3                ## @SYNC_SERVER
	.comm	_SYNC_RECV,8,3                  ## @SYNC_RECV
	.comm	_SYNC_CLIENT,8,3                ## @SYNC_CLIENT
	.comm	_SYNC_SEND,8,3                  ## @SYNC_SEND
L_.str.1:                               ## @.str.1
	.asciz	"client_wait: close"

L_.str.2:                               ## @.str.2
	.asciz	"client_wait: waitpid"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"client exit status is %d"

L_.str.4:                               ## @.str.4
	.asciz	"abnormal termination of client, signal %d%s"

L_.str.5:                               ## @.str.5
	.asciz	" (core file generated)"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"termination of client, unknown status"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_client_wait                 ; -- Begin function uc_client_wait
	.p2align	2
_uc_client_wait:                        ; @uc_client_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uc_dbgmsg
Lloh2:
	adrp	x19, _uc_cfg@GOTPAGE
Lloh3:
	ldr	x19, [x19, _uc_cfg@GOTPAGEOFF]
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _SYNC_SERVER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SYNC_SERVER@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh7:
	adrp	x9, _SYNC_RECV@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SYNC_RECV@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_close
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _SYNC_CLIENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SYNC_CLIENT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh13:
	adrp	x9, _SYNC_SEND@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SYNC_SEND@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_close
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	sub	x1, x29, #20
	mov	w2, #0
	bl	_waitpid
	cmn	x0, #1
	b.eq	LBB0_10
; %bb.3:
	ldur	w0, [x29, #-20]
	bl	_WIFEXITED
	mov	x8, x0
	ldur	w0, [x29, #-20]
	cbz	x8, LBB0_11
; %bb.4:
	bl	_WEXITSTATUS
Lloh16:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_uc_logmsg
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_11:
	bl	_WIFSIGNALED
	cbz	x0, LBB0_14
; %bb.12:
	ldur	w0, [x29, #-20]
	bl	_WTERMSIG
	mov	x19, x0
	ldur	w0, [x29, #-20]
	bl	_WCOREDUMP
Lloh23:
	adrp	x8, l_.str.5@PAGE
Lloh24:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh25:
	adrp	x9, l_.str.6@PAGE
Lloh26:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	stp	x19, x8, [sp]
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldur	w0, [x29, #-20]
	bl	_WEXITSTATUS
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_uc_logmsgx
	ldur	w0, [x29, #-20]
	bl	_WEXITSTATUS
	neg	w0, w0
	b	LBB0_9
LBB0_14:
Lloh31:
	adrp	x0, l_.str.7@PAGE
Lloh32:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_15:
	bl	_uc_logmsgx
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting for client"

	.comm	_uc_cfg,16,3                    ; @uc_cfg
	.comm	_SYNC_SERVER,8,3                ; @SYNC_SERVER
	.comm	_SYNC_RECV,8,3                  ; @SYNC_RECV
	.comm	_SYNC_CLIENT,8,3                ; @SYNC_CLIENT
	.comm	_SYNC_SEND,8,3                  ; @SYNC_SEND
l_.str.1:                               ; @.str.1
	.asciz	"client_wait: close"

l_.str.2:                               ; @.str.2
	.asciz	"client_wait: waitpid"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"client exit status is %d"

l_.str.4:                               ; @.str.4
	.asciz	"abnormal termination of client, signal %d%s"

l_.str.5:                               ; @.str.5
	.asciz	" (core file generated)"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"termination of client, unknown status"

.subsections_via_symbols
