	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_read
_recv_read:                             ## @recv_read
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_SPA_MAXBLOCKSIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ecx, (%rax)
	setge	%dil
	callq	_assert
	movq	%r15, %r12
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_read
	movslq	%eax, %rcx
	addq	%rcx, %r12
	subl	%ecx, %ebx
	testl	%ecx, %ecx
	jg	LBB0_1
## %bb.2:
	orl	%ebx, %eax
	je	LBB0_3
## %bb.8:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_zfs_error_aux
	movq	_EZFS_BADSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dgettext
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zfs_error                      ## TAILCALL
LBB0_3:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fletcher_4_incremental_byteswap
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fletcher_4_incremental_native
LBB0_7:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPA_MAXBLOCKSIZE,4,2           ## @SPA_MAXBLOCKSIZE
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read from stream"

	.comm	_EZFS_BADSTREAM,4,2             ## @EZFS_BADSTREAM
L_.str.1:                               ## @.str.1
	.asciz	"cannot receive"

	.no_dead_strip	_recv_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_read
_recv_read:                             ; @recv_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SPA_MAXBLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPA_MAXBLOCKSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	cset	w0, ge
	bl	_assert
	mov	x26, x22
	mov	x25, x21
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_read
	add	x26, x26, w0, sxtw
	sub	w25, w25, w0
	cmp	w0, #0
	b.gt	LBB0_1
; %bb.2:
	orr	w8, w0, w25
	cbz	w8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x21, _TEXT_DOMAIN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TEXT_DOMAIN@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	mov	x0, x19
	bl	_zfs_error_aux
Lloh7:
	adrp	x8, _EZFS_BADSTREAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EZFS_BADSTREAM@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_zfs_error
LBB0_4:
	cbz	x20, LBB0_8
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	cbz	x23, LBB0_7
; %bb.6:
	bl	_fletcher_4_incremental_byteswap
	b	LBB0_8
LBB0_7:
	bl	_fletcher_4_incremental_native
LBB0_8:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SPA_MAXBLOCKSIZE,4,2           ; @SPA_MAXBLOCKSIZE
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read from stream"

	.comm	_EZFS_BADSTREAM,4,2             ; @EZFS_BADSTREAM
l_.str.1:                               ; @.str.1
	.asciz	"cannot receive"

	.no_dead_strip	_recv_read
.subsections_via_symbols
