	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_rpc_store_set_pos
_do_rpc_store_set_pos:                  ## @do_rpc_store_set_pos
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_store@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ADD_CNT
	movl	(%r15), %edi
	callq	_START_TIMER
	movq	_outbuf@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%r14d, %r14d
	movl	$0, %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_RPC_BUFFER_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_2:
	callq	_assert
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.3:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	addq	8(%rax), %rcx
	cmpq	16(%rax), %rcx
	jg	LBB0_5
## %bb.4:
	movq	%rcx, 24(%rax)
	movl	(%r15), %edi
	callq	_END_TIMER
	movl	$1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_store,4,2                      ## @store
	.comm	_outbuf,8,3                     ## @outbuf
	.comm	_RPC_BUFFER_MAGIC,8,3           ## @RPC_BUFFER_MAGIC
	.no_dead_strip	_do_rpc_store_set_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_rpc_store_set_pos
_do_rpc_store_set_pos:                  ; @do_rpc_store_set_pos
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _store@GOTPAGE
Lloh1:
	ldr	x20, [x20, _store@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ADD_CNT
	ldr	w0, [x20]
	bl	_START_TIMER
Lloh2:
	adrp	x21, _outbuf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _outbuf@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _RPC_BUFFER_MAGIC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RPC_BUFFER_MAGIC@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	tbz	w19, #31, LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w0, #0
	bl	_assert
	tbnz	w19, #31, LBB0_4
LBB0_3:
	ldr	x8, [x21]
	ldp	x9, x10, [x8, #8]
	add	x9, x9, w19, uxtw
	cmp	x9, x10
	b.le	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	str	x9, [x8, #24]
	ldr	w0, [x20]
	bl	_END_TIMER
	mov	w0, #1
LBB0_6:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_store,4,2                      ; @store
	.comm	_outbuf,8,3                     ; @outbuf
	.comm	_RPC_BUFFER_MAGIC,8,3           ; @RPC_BUFFER_MAGIC
	.no_dead_strip	_do_rpc_store_set_pos
.subsections_via_symbols
