	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_service_connection_clone       ## -- Begin function service_connection_clone
	.p2align	4, 0x90
_service_connection_clone:              ## @service_connection_clone
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movq	_SOCK_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movl	-48(%rbp), %ebx
	movq	%r15, %rdi
	callq	_service_connection_get_limits
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_service_connection_add
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	-44(%rbp), %r12d
	jmp	LBB0_4
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
	movl	%ebx, (%r14)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOCK_NONBLOCK,4,2              ## @SOCK_NONBLOCK
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_service_connection_clone       ; -- Begin function service_connection_clone
	.p2align	2
_service_connection_clone:              ; @service_connection_clone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _PF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_UNIX@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _SOCK_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCK_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x3, sp
	mov	w2, #0
	bl	_socketpair
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w21, [sp]
	mov	x0, x20
	bl	_service_connection_get_limits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_service_connection_add
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [sp, #4]
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x19, _errno@GOTPAGE
Lloh13:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
	ldr	w0, [sp]
	bl	_close
	ldr	w0, [sp, #4]
	bl	_close
	str	w20, [x19]
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldr	x8, [sp, #8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOCK_NONBLOCK,4,2              ; @SOCK_NONBLOCK
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
