	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_notify_svc
_rs_notify_svc:                         ## @rs_notify_svc
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_1
LBB0_4:
	movl	%r12d, -48(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%r14, -40(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_write_all
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_read_all
	movl	-44(%rbp), %edi
	callq	_rdma_seterrno
	movl	%eax, %r15d
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
## %bb.5:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	jmp	LBB0_6
LBB0_1:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	leaq	8(%rbx), %rdi
	movl	24(%rbx), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_ERR
	movl	%eax, %r15d
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_close
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_close
LBB0_7:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mut,4,2                        ## @mut
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rs_notify_svc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_notify_svc
_rs_notify_svc:                         ; @rs_notify_svc
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _mut@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w22, w8, [sp]
	str	x20, [sp, #8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #16
	bl	_write_all
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #16
	bl	_read_all
	ldr	w0, [sp, #4]
	bl	_rdma_seterrno
	mov	x21, x0
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	w0, [x19, #8]
	mov	x1, #0
	bl	_pthread_join
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x3, [x19]
	mov	w2, #0
	bl	_socketpair
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	add	x0, x19, #8
	ldr	w2, [x19, #24]
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	cbz	w0, LBB0_1
; %bb.5:
	bl	_ERR
	mov	x21, x0
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_close
LBB0_7:
Lloh11:
	adrp	x0, _mut@GOTPAGE
Lloh12:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_mut,4,2                        ; @mut
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rs_notify_svc
.subsections_via_symbols
