	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_pipe_release
_rpc_pipe_release:                      ## @rpc_pipe_release
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_RPC_I
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%r12)
	je	LBB0_12
## %bb.1:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_list_del_init
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	16(%r12), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
LBB0_3:
	movl	(%r15), %eax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	decq	(%r12)
LBB0_5:
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	decq	8(%r12)
	je	LBB0_7
LBB0_8:
	cmpq	$0, (%r12)
	jne	LBB0_12
LBB0_9:
	cmpq	$0, 8(%r12)
	jne	LBB0_12
## %bb.10:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	*%rax
	jmp	LBB0_12
LBB0_7:
	movq	_free_list@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_LIST_HEAD
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	addq	$32, %rdi
	movq	%r15, %rsi
	callq	_list_splice_init
	movq	$0, 24(%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	16(%r12), %rax
	movq	8(%rax), %rdx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_rpc_purge_list
	cmpq	$0, (%r12)
	je	LBB0_9
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_free_list,4,2                  ## @free_list
	.no_dead_strip	_rpc_pipe_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_pipe_release
_rpc_pipe_release:                      ; @rpc_pipe_release
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_RPC_I
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_3
; %bb.2:
	add	x23, x19, #4
	mov	x0, x23
	bl	_spin_lock
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x22, #4]
	mov	x0, x22
	bl	_list_del_init
	mov	x0, x23
	bl	_spin_unlock
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
LBB0_3:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x9, [x20]
	sub	x9, x9, #1
	str	x9, [x20]
LBB0_5:
Lloh6:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	subs	x8, x8, #1
	str	x8, [x20, #8]
	b.eq	LBB0_11
LBB0_7:
	ldr	x8, [x20]
	cbnz	x8, LBB0_12
LBB0_8:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_12
; %bb.9:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x19
	blr	x8
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x21, _free_list@GOTPAGE
Lloh10:
	ldr	x21, [x21, _free_list@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_LIST_HEAD
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock
	add	x0, x20, #32
	mov	x1, x21
	bl	_list_splice_init
	str	xzr, [x20, #24]
	mov	x0, x22
	bl	_spin_unlock
	ldr	x8, [x20, #16]
	ldr	x2, [x8, #8]
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w3, w8
	mov	x0, x20
	mov	x1, x21
	bl	_rpc_purge_list
	ldr	x8, [x20]
	cbz	x8, LBB0_8
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_free_list,4,2                  ; @free_list
	.no_dead_strip	_rpc_pipe_release
.subsections_via_symbols
