	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_rpc_fetch_long              ## -- Begin function do_rpc_fetch_long
	.p2align	4, 0x90
_do_rpc_fetch_long:                     ## @do_rpc_fetch_long
	.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
	movq	%rdi, %r14
	movq	_fetch@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ADD_CNT
	movl	(%r15), %edi
	callq	_START_TIMER
	movq	_inbuf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	_RPC_BUFFER_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	callq	_buffer_read_long
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	callq	_END_TIMER
	movq	$0, (%r14)
	movq	-32(%rbp), %rax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, (%r14)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movq	%rax, (%r14)
	movl	(%r15), %edi
	callq	_END_TIMER
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fetch,4,2                      ## @fetch
	.comm	_inbuf,8,3                      ## @inbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to fetch from empty buffer\n"

	.comm	_RPC_BUFFER_MAGIC,8,3           ## @RPC_BUFFER_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"Can not fetch long from inbuf"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_rpc_fetch_long              ; -- Begin function do_rpc_fetch_long
	.p2align	2
_do_rpc_fetch_long:                     ; @do_rpc_fetch_long
	.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	x19, x0
Lloh0:
	adrp	x20, _fetch@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fetch@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ADD_CNT
	ldr	w0, [x20]
	bl	_START_TIMER
Lloh2:
	adrp	x21, _inbuf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _inbuf@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %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
	ldr	x0, [x21]
	add	x1, sp, #8
	bl	_buffer_read_long
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_END_TIMER
	str	xzr, [x19]
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	mov	x8, x0
	mov	x0, #0
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	str	x0, [x19]
	ldr	w0, [x20]
	bl	_END_TIMER
	mov	x0, #0
LBB0_5:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_fetch,4,2                      ; @fetch
	.comm	_inbuf,8,3                      ; @inbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to fetch from empty buffer\n"

	.comm	_RPC_BUFFER_MAGIC,8,3           ; @RPC_BUFFER_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"Can not fetch long from inbuf"

.subsections_via_symbols
