	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_out
_rpc_out:                               ## @rpc_out
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rcx), %rax
	subq	8(%rcx), %rax
	movq	%rax, -40(%rbp)
	jne	LBB0_6
## %bb.1:
	movq	$0, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.2:
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rpc_read_from_out
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_4:
	movl	-44(%rbp), %eax
	movq	_PACKET_READ_FLUSH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, 16(%rbx)
LBB0_6:
	cmpl	$0, 16(%rbx)
	movq	-40(%rbp), %rdx
	je	LBB0_9
## %bb.7:
	testq	%rdx, %rdx
	jne	LBB0_9
## %bb.8:
	movl	$0, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	imulq	%r12, %r15
	cmpq	%rdx, %r15
	jae	LBB0_11
## %bb.10:
	movq	%r15, -40(%rbp)
	movq	%r15, %rdx
LBB0_11:
	movq	8(%rbx), %rsi
	addq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	_memcpy
	movq	-40(%rbp), %rax
	addq	%rax, 8(%rbx)
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The entire rpc->buf should be larger than LARGE_PACKET_MAX"

	.comm	_PACKET_READ_FLUSH,4,2          ## @PACKET_READ_FLUSH
	.no_dead_strip	_rpc_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_out
_rpc_out:                               ; @rpc_out
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldp	x8, x9, [x3]
	subs	x8, x8, x9
	str	x8, [sp, #8]
	b.ne	LBB0_6
; %bb.1:
	str	xzr, [x19, #32]
	stp	xzr, xzr, [x19]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_6
; %bb.2:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	mov	w1, #0
	bl	_rpc_read_from_out
	cbnz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_4:
	ldr	w8, [sp, #4]
Lloh2:
	adrp	x9, _PACKET_READ_FLUSH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PACKET_READ_FLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_6:
	ldr	w8, [x19, #16]
	ldr	x2, [sp, #8]
	cmp	w8, #0
	ccmp	x2, #0, #0, ne
	b.eq	LBB0_10
; %bb.7:
	mul	x8, x21, x22
	cmp	x8, x2
	b.hs	LBB0_9
; %bb.8:
	str	x8, [sp, #8]
	mov	x2, x8
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	mov	x0, x20
	bl	_memcpy
	ldr	x0, [sp, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, x0
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	x0, #0
	str	wzr, [x19, #16]
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The entire rpc->buf should be larger than LARGE_PACKET_MAX"

	.comm	_PACKET_READ_FLUSH,4,2          ; @PACKET_READ_FLUSH
	.no_dead_strip	_rpc_out
.subsections_via_symbols
