	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_client_fork                 ## -- Begin function uc_client_fork
	.p2align	4, 0x90
_uc_client_fork:                        ## @uc_client_fork
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_uc_cfg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_SYNC_SERVER@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_SYNC_CLIENT@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$-1, %rax
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	$0, 24(%rbx)
	movq	_SYNC_SEND@GOTPCREL(%rip), %rax
	movq	_SYNC_RECV@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	movq	_SYNC_RECV@GOTPCREL(%rip), %rax
	movq	_SYNC_SEND@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	(%rbx), %rdx
	movq	(%r14), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	(%rcx), %rcx
	movq	(%r15), %rdi
	movq	(%rdx,%rdi,8), %rdx
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %r14d
	movl	(%rsi,%rcx,4), %edi
	callq	_close
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_close
	testq	%rax, %rax
	js	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	setne	%al
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	callq	_uc_logmsg
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uc_cfg,32,3                    ## @uc_cfg
	.comm	_SYNC_SERVER,8,3                ## @SYNC_SERVER
	.comm	_SYNC_CLIENT,8,3                ## @SYNC_CLIENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client_fork: pipe"

L_.str.1:                               ## @.str.1
	.asciz	"client_fork: fork"

L_.str.2:                               ## @.str.2
	.asciz	"CLIENT"

	.comm	_SYNC_RECV,8,3                  ## @SYNC_RECV
	.comm	_SYNC_SEND,8,3                  ## @SYNC_SEND
L_.str.3:                               ## @.str.3
	.asciz	"client_fork: close"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_client_fork                 ; -- Begin function uc_client_fork
	.p2align	2
_uc_client_fork:                        ; @uc_client_fork
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _uc_cfg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uc_cfg@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x19, _SYNC_SERVER@GOTPAGE
Lloh3:
	ldr	x19, [x19, _SYNC_SERVER@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	bl	_pipe
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _SYNC_CLIENT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SYNC_CLIENT@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_pipe
	tbnz	x0, #63, LBB0_5
; %bb.2:
	bl	_fork
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.3:
	cmn	x0, #1
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20, #16]
	str	wzr, [x20, #24]
Lloh12:
	adrp	x8, _SYNC_SEND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYNC_SEND@GOTPAGEOFF]
Lloh14:
	adrp	x9, _SYNC_RECV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SYNC_RECV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _SYNC_RECV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SYNC_RECV@GOTPAGEOFF]
Lloh18:
	adrp	x9, _SYNC_SEND@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SYNC_SEND@GOTPAGEOFF]
LBB0_8:
	ldr	x10, [x20]
	ldr	x11, [x19]
	ldr	x11, [x10, x11, lsl #3]
	ldr	x12, [x21]
	ldr	x10, [x10, x12, lsl #3]
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	w19, [x10, x8, lsl #2]
	ldr	w0, [x11, x9, lsl #2]
	bl	_close
	tbnz	x0, #63, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_close
	tbnz	x0, #63, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_13
LBB0_11:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	bl	_uc_logmsg
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_uc_cfg,32,3                    ; @uc_cfg
	.comm	_SYNC_SERVER,8,3                ; @SYNC_SERVER
	.comm	_SYNC_CLIENT,8,3                ; @SYNC_CLIENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client_fork: pipe"

l_.str.1:                               ; @.str.1
	.asciz	"client_fork: fork"

l_.str.2:                               ; @.str.2
	.asciz	"CLIENT"

	.comm	_SYNC_RECV,8,3                  ; @SYNC_RECV
	.comm	_SYNC_SEND,8,3                  ; @SYNC_SEND
l_.str.3:                               ; @.str.3
	.asciz	"client_fork: close"

.subsections_via_symbols
