	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t_sockcred_1                   ## -- Begin function t_sockcred_1
	.p2align	4, 0x90
_t_sockcred_1:                          ## @t_sockcred_1
	.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
	xorl	%eax, %eax
	callq	_uc_client_fork
	movl	$-2, %ebx
	cmpl	$1, %eax
	je	LBB0_8
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	callq	_uc_dbgmsg
	xorl	%eax, %eax
	callq	_uc_socket_create
	movl	$-2, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	%eax, %r14d
	movl	$1, %edi
	movl	%eax, %esi
	callq	_t_sockcred_client
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_uc_socket_close
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movl	%r15d, %ebx
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
	callq	_uc_dbgmsg
	xorl	%eax, %eax
	callq	_uc_socket_create
	movl	$-2, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movl	$1, %edi
	movl	%eax, %esi
	callq	_t_sockcred_client
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_uc_socket_close
	testl	%eax, %eax
	movl	$-2, %ebx
	cmovnsl	%r15d, %ebx
LBB0_7:
	movl	%ebx, %edi
	callq	_uc_client_exit
	jmp	LBB0_16
LBB0_8:
	xorl	%eax, %eax
	callq	_uc_socket_create
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movl	%eax, %r14d
	movl	$1, %edi
	movl	%eax, %esi
	callq	_t_sockcred_server
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_uc_client_wait
	jmp	LBB0_12
LBB0_11:
	movl	$3, %edi
	movl	%r14d, %esi
	callq	_t_sockcred_server
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_uc_client_wait
	testl	%r15d, %r15d
	je	LBB0_14
LBB0_12:
	cmpl	$-2, %r15d
	jne	LBB0_15
## %bb.13:
	testl	%eax, %eax
	je	LBB0_15
LBB0_14:
	movl	%eax, %r15d
LBB0_15:
	movl	%r14d, %edi
	callq	_uc_socket_close
	testl	%eax, %eax
	movl	$-2, %ebx
	cmovnsl	%r15d, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client #%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t_sockcred_1                   ; -- Begin function t_sockcred_1
	.p2align	2
_t_sockcred_1:                          ; @t_sockcred_1
	.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
	bl	_uc_client_fork
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.1:
	cbnz	w0, LBB0_10
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #1
	bl	_uc_dbgmsg
	bl	_uc_socket_create
	tbnz	w0, #31, LBB0_11
; %bb.3:
	mov	x20, x0
	mov	w0, #1
	mov	x1, x20
	bl	_t_sockcred_client
	mov	x19, x0
	mov	x0, x20
	bl	_uc_socket_close
	tbnz	w0, #31, LBB0_11
; %bb.4:
	cbnz	w19, LBB0_12
; %bb.5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2
	bl	_uc_dbgmsg
	bl	_uc_socket_create
	mov	w19, #-2
	tbnz	w0, #31, LBB0_12
; %bb.6:
	mov	x20, x0
	mov	w0, #1
	mov	x1, x20
	bl	_t_sockcred_client
	mov	x21, x0
	mov	x0, x20
	bl	_uc_socket_close
	cmp	w0, #0
	csel	w19, w19, w21, lt
	b	LBB0_12
LBB0_7:
	bl	_uc_socket_create
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	x19, x0
	mov	w0, #1
	mov	x1, x19
	bl	_t_sockcred_server
	cbz	w0, LBB0_13
; %bb.9:
	mov	x20, x0
	bl	_uc_client_wait
	b	LBB0_14
LBB0_10:
	mov	w19, #-2
	b	LBB0_18
LBB0_11:
	mov	w19, #-2
LBB0_12:
	mov	x0, x19
	bl	_uc_client_exit
	b	LBB0_18
LBB0_13:
	mov	w0, #3
	mov	x1, x19
	bl	_t_sockcred_server
	mov	x20, x0
	bl	_uc_client_wait
	cbz	w20, LBB0_16
LBB0_14:
	cmn	w20, #2
	b.ne	LBB0_17
; %bb.15:
	cbz	w0, LBB0_17
LBB0_16:
	mov	x20, x0
LBB0_17:
	mov	x0, x19
	bl	_uc_socket_close
	mov	w8, #-2
	cmp	w0, #0
	csel	w19, w8, w20, lt
LBB0_18:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client #%u"

.subsections_via_symbols
