	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_data
_recv_data:                             ## @recv_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r14
	movq	%r14, %rax
	subq	8(%rdi), %rax
	movq	_RECV_SIZE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.1:
	addq	%r14, %r14
	movq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, 16(%rbx)
	movl	%r14d, (%rbx)
LBB0_4:
	movq	_YRMCDS_DISCONNECTED@GOTPCREL(%rip), %r14
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	addq	8(%rbx), %rsi
	movq	(%r15), %rdx
	xorl	%ecx, %ecx
	callq	_recv
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.9:
	movq	_YRMCDS_SYSTEM_ERROR@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_6:
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	cltq
	addq	%rax, 8(%rbx)
	movq	_YRMCDS_OK@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_2:
	movq	_YRMCDS_OUT_OF_MEMORY@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECV_SIZE,8,3                  ## @RECV_SIZE
	.comm	_YRMCDS_OUT_OF_MEMORY,4,2       ## @YRMCDS_OUT_OF_MEMORY
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_YRMCDS_SYSTEM_ERROR,4,2        ## @YRMCDS_SYSTEM_ERROR
	.comm	_YRMCDS_DISCONNECTED,4,2        ## @YRMCDS_DISCONNECTED
	.comm	_YRMCDS_OK,4,2                  ## @YRMCDS_OK
	.no_dead_strip	_recv_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_data
_recv_data:                             ; @recv_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldrsw	x8, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x21, _RECV_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RECV_SIZE@GOTPAGEOFF]
	ldr	x10, [x21]
	sub	x9, x8, x9
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.1:
	lsl	x20, x8, #1
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_9
; %bb.2:
	str	x0, [x19, #16]
	str	w20, [x19]
LBB0_3:
Lloh2:
	adrp	x20, _YRMCDS_DISCONNECTED@GOTPAGE
Lloh3:
	ldr	x20, [x20, _YRMCDS_DISCONNECTED@GOTPAGEOFF]
Lloh4:
	adrp	x23, _errno@GOTPAGE
Lloh5:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x24, _EINTR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
Lloh8:
	adrp	x22, _YRMCDS_SYSTEM_ERROR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _YRMCDS_SYSTEM_ERROR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldp	x9, x8, [x19, #8]
	add	x1, x8, x9
	ldr	x2, [x21]
	mov	w3, #0
	bl	_recv
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.6:
	mov	x20, x22
	b	LBB0_10
LBB0_7:
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	add	x8, x8, w0, sxtw
	str	x8, [x19, #8]
Lloh10:
	adrp	x20, _YRMCDS_OK@GOTPAGE
Lloh11:
	ldr	x20, [x20, _YRMCDS_OK@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x20, _YRMCDS_OUT_OF_MEMORY@GOTPAGE
Lloh13:
	ldr	x20, [x20, _YRMCDS_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x20]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RECV_SIZE,8,3                  ; @RECV_SIZE
	.comm	_YRMCDS_OUT_OF_MEMORY,4,2       ; @YRMCDS_OUT_OF_MEMORY
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_YRMCDS_SYSTEM_ERROR,4,2        ; @YRMCDS_SYSTEM_ERROR
	.comm	_YRMCDS_DISCONNECTED,4,2        ; @YRMCDS_DISCONNECTED
	.comm	_YRMCDS_OK,4,2                  ; @YRMCDS_OK
	.no_dead_strip	_recv_data
.subsections_via_symbols
