	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_read_from_out
_rpc_read_from_out:                     ## @rpc_read_from_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	movl	(%rdi), %eax
	movslq	4(%rdi), %rcx
	je	LBB0_2
## %bb.1:
	addl	$-4, %eax
	movq	8(%r14), %rdi
	leaq	(%rdi,%rcx), %r15
	addq	$4, %r15
	jmp	LBB0_3
LBB0_2:
	movq	%rcx, %r15
	addq	8(%r14), %r15
LBB0_3:
	subl	%ecx, %eax
	movslq	%eax, %r8
	movq	_LARGE_PACKET_MAX@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	%r8, (%rax)
	ja	LBB0_15
## %bb.4:
	movl	24(%r14), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, (%rsp)
	movq	%rdx, %rbx
	leaq	-48(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_packet_read_with_status
	movq	%rbx, %rdx
	movl	%eax, (%r13)
	cmpl	$130, %eax
	je	LBB0_6
## %bb.5:
	movslq	-48(%rbp), %rax
	xorl	%ecx, %ecx
	cmpq	$0, 16(%r14)
	setne	%cl
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, (%rdx)
	addl	%eax, 4(%r14)
LBB0_6:
	movl	$1, %r12d
	cmpq	$0, 16(%r14)
	je	LBB0_15
## %bb.7:
	movl	(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_15
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	addq	$-4, %r15
	movq	(%rdx), %rsi
	movq	%r15, %rdi
	callq	_set_packet_header
	jmp	LBB0_15
LBB0_13:
	addq	$-4, %r15
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_9:
	movq	_PACKET_READ_GENTLE_ON_EOF@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_15
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_15
LBB0_12:
	addq	$-4, %r15
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_LARGE_PACKET_MAX,8,3           ## @LARGE_PACKET_MAX
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ## @PACKET_READ_GENTLE_ON_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shouldn't have EOF when not gentle on EOF"

L_.str.1:                               ## @.str.1
	.asciz	"0001"

L_.str.2:                               ## @.str.2
	.asciz	"0000"

	.no_dead_strip	_rpc_read_from_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_read_from_out
_rpc_read_from_out:                     ; @rpc_read_from_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x10, [x0, #16]
	ldp	w8, w9, [x0]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cbz	x10, LBB0_2
; %bb.1:
	sub	w8, w8, #4
	ldr	x10, [x23, #8]
	add	x10, x10, x9
	add	x22, x10, #4
	b	LBB0_3
LBB0_2:
	ldr	x10, [x23, #8]
	add	x22, x10, x9
LBB0_3:
	sub	w8, w8, w9
	sxtw	x4, w8
Lloh0:
	adrp	x8, _LARGE_PACKET_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LARGE_PACKET_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x4
	b.ls	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_17
LBB0_5:
	ldr	w0, [x23, #24]
	add	x5, sp, #12
	mov	x1, #0
	mov	x2, #0
	mov	x3, x22
	mov	x6, x19
	bl	_packet_read_with_status
	str	w0, [x21]
	cmp	w0, #130
	b.eq	LBB0_7
; %bb.6:
	ldrsw	x8, [sp, #12]
	ldr	x9, [x23, #16]
	cmp	x9, #0
	cset	w9, ne
	add	x8, x8, w9, uxtw #2
	str	x8, [x20]
	ldr	w9, [x23, #4]
	add	w8, w8, w9
	str	w8, [x23, #4]
LBB0_7:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_16
; %bb.8:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_16
; %bb.9:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	sub	x0, x22, #4
	ldr	x1, [x20]
	bl	_set_packet_header
	b	LBB0_16
LBB0_11:
	sub	x0, x22, #4
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh7:
	adrp	x8, _PACKET_READ_GENTLE_ON_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PACKET_READ_GENTLE_ON_EOF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_16
; %bb.13:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_16
LBB0_14:
	sub	x0, x22, #4
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	w2, #4
	bl	_memcpy
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
                                        ; -- End function
	.comm	_LARGE_PACKET_MAX,8,3           ; @LARGE_PACKET_MAX
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ; @PACKET_READ_GENTLE_ON_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shouldn't have EOF when not gentle on EOF"

l_.str.1:                               ; @.str.1
	.asciz	"0001"

l_.str.2:                               ; @.str.2
	.asciz	"0000"

	.no_dead_strip	_rpc_read_from_out
.subsections_via_symbols
