	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yrmcds_recv                    ## -- Begin function yrmcds_recv
	.p2align	4, 0x90
_yrmcds_recv:                           ## @yrmcds_recv
	.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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.3:
	movq	_YRMCDS_PROTOCOL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_YRMCDS_BAD_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.8:
	movq	16(%rbx), %r15
	subq	%rsi, %r15
	je	LBB0_10
## %bb.9:
	movq	24(%rbx), %rdi
	addq	%rdi, %rsi
	movq	%r15, %rdx
	callq	_memmove
LBB0_10:
	movq	%r15, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	32(%rbx), %rdi
	callq	_free
	movq	$0, 32(%rbx)
LBB0_11:
	cmpq	$0, 48(%rbx)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_text_recv                      ## TAILCALL
LBB0_13:
	movq	_BINARY_HEADER_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	cmpq	(%r12), %rax
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_recv_data
	testq	%rax, %rax
	je	LBB0_14
	jmp	LBB0_6
LBB0_16:
	movq	24(%rbx), %rdi
	cmpb	$-127, (%rdi)
	jne	LBB0_18
## %bb.17:
	addq	$8, %rdi
	callq	_ntoh32
	movq	%rax, %r15
	movq	_MAX_CAPACITY@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jl	LBB0_18
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	addq	%r15, %rax
	cmpq	%rax, 16(%rbx)
	jae	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	callq	_recv_data
	testq	%rax, %rax
	je	LBB0_19
	jmp	LBB0_6
LBB0_21:
	movq	24(%rbx), %rdi
	addq	$2, %rdi
	callq	_ntoh16
	movq	24(%rbx), %rdi
	movzbl	4(%rdi), %r13d
	leaq	(%rax,%r13), %rcx
	cmpq	%r15, %rcx
	jg	LBB0_18
## %bb.22:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdx
	leaq	(%rdx,%r13), %rcx
	addq	%rdi, %rcx
	addl	%r15d, %edx
	movl	%edx, (%r14)
	movb	1(%rdi), %dl
	testq	%rax, %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmoveq	%rax, %rcx
	movb	%dl, 4(%r14)
	movq	%rcx, 8(%r14)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 72(%r14)
	addq	$6, %rdi
	callq	_ntoh16
	movq	%rax, 16(%r14)
	leaq	64(%r14), %rdi
	movq	24(%rbx), %rsi
	addq	$12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%rbx), %rdi
	addq	$16, %rdi
	callq	_ntoh64
	movq	%rax, 56(%r14)
	movl	$0, 24(%r14)
	testq	%r13, %r13
	je	LBB0_25
## %bb.23:
	cmpb	$4, %r13b
	jne	LBB0_18
## %bb.24:
	movq	24(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ntoh32
	movl	%eax, 24(%r14)
LBB0_25:
	movq	%r15, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subq	%rsi, %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	movb	4(%r14), %cl
	movq	_YRMCDS_CMD_INCREMENT@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_27
## %bb.26:
	movq	_YRMCDS_CMD_DECREMENT@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	jne	LBB0_31
LBB0_27:
	movq	16(%r14), %rcx
	movq	_YRMCDS_STATUS_OK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_31
## %bb.28:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	cmpq	$8, %rax
	jne	LBB0_18
## %bb.29:
	callq	_ntoh64
	movq	%rax, 48(%r14)
	jmp	LBB0_32
LBB0_18:
	movl	$1, (%rbx)
	movq	_YRMCDS_PROTOCOL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_31:
	movq	$0, 48(%r14)
	xorl	%ecx, %ecx
	cmpq	%r15, %rsi
	cmoveq	%rcx, %rdi
	movq	%rdi, 32(%r14)
	movq	%rax, 40(%r14)
LBB0_32:
	movslq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	_YRMCDS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_YRMCDS_BAD_ARGUMENT,8,3        ## @YRMCDS_BAD_ARGUMENT
	.comm	_YRMCDS_PROTOCOL_ERROR,8,3      ## @YRMCDS_PROTOCOL_ERROR
	.comm	_BINARY_HEADER_SIZE,8,3         ## @BINARY_HEADER_SIZE
	.comm	_MAX_CAPACITY,8,3               ## @MAX_CAPACITY
	.comm	_YRMCDS_CMD_INCREMENT,1,0       ## @YRMCDS_CMD_INCREMENT
	.comm	_YRMCDS_CMD_DECREMENT,1,0       ## @YRMCDS_CMD_DECREMENT
	.comm	_YRMCDS_STATUS_OK,8,3           ## @YRMCDS_STATUS_OK
	.comm	_YRMCDS_OK,8,3                  ## @YRMCDS_OK
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_YRMCDS_FLAG_COMPRESS,4,2       ## @YRMCDS_FLAG_COMPRESS
	.comm	_YRMCDS_OUT_OF_MEMORY,8,3       ## @YRMCDS_OUT_OF_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yrmcds_recv                    ; -- Begin function yrmcds_recv
	.p2align	2
_yrmcds_recv:                           ; @yrmcds_recv
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _YRMCDS_PROTOCOL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YRMCDS_PROTOCOL_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _YRMCDS_BAD_ARGUMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _YRMCDS_BAD_ARGUMENT@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.8:
	ldr	x9, [x19, #16]
	subs	x21, x9, x8
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x19, #24]
	add	x1, x0, x8
	mov	x2, x21
	bl	_memmove
LBB0_10:
	stp	xzr, x21, [x19, #8]
	ldr	x0, [x19, #32]
	bl	_free
	str	xzr, [x19, #32]
LBB0_11:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_13
; %bb.12:
	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	_text_recv
LBB0_13:
Lloh4:
	adrp	x23, _BINARY_HEADER_SIZE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BINARY_HEADER_SIZE@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_recv_data
	cbz	x0, LBB0_14
	b	LBB0_6
LBB0_16:
	ldr	x8, [x19, #24]
	ldrb	w9, [x8]
	cmp	w9, #129
	b.ne	LBB0_30
; %bb.17:
	add	x0, x8, #8
	bl	_ntoh32
Lloh6:
	adrp	x8, _MAX_CAPACITY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_CAPACITY@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x0
	b.lt	LBB0_30
; %bb.18:
	mov	x21, x0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x9, x9, x21
	cmp	x8, x9
	b.hs	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x19
	bl	_recv_data
	cbz	x0, LBB0_19
	b	LBB0_6
LBB0_21:
	ldr	x8, [x19, #24]
	add	x0, x8, #2
	bl	_ntoh16
	ldr	x8, [x19, #24]
	ldrb	w26, [x8, #4]
	add	x24, x26, x0
	cmp	x24, x21
	b.gt	LBB0_30
; %bb.22:
	mov	x22, x0
	ldr	x9, [x23]
	add	x10, x9, x26
	add	x25, x8, x10
	add	w9, w9, w21
	str	w9, [x20]
	ldrb	w9, [x8, #1]
	strb	w9, [x20, #4]
	cmp	x0, #0
	csel	x9, xzr, x25, eq
	str	x9, [x20, #8]
	str	x0, [x20, #72]
	add	x0, x8, #6
	bl	_ntoh16
	str	x0, [x20, #16]
	add	x0, x20, #64
	ldr	x8, [x19, #24]
	add	x1, x8, #12
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x0, x8, #16
	bl	_ntoh64
	str	x0, [x20, #56]
	str	wzr, [x20, #24]
	cbz	w26, LBB0_25
; %bb.23:
	cmp	w26, #4
	b.ne	LBB0_30
; %bb.24:
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	add	x0, x8, x9
	bl	_ntoh32
	str	w0, [x20, #24]
LBB0_25:
	sub	x8, x21, x24
	add	x0, x25, x22
	ldrb	w9, [x20, #4]
Lloh9:
	adrp	x10, _YRMCDS_CMD_INCREMENT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _YRMCDS_CMD_INCREMENT@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_27
; %bb.26:
Lloh11:
	adrp	x10, _YRMCDS_CMD_DECREMENT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _YRMCDS_CMD_DECREMENT@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_31
LBB0_27:
	ldr	x9, [x20, #16]
Lloh13:
	adrp	x10, _YRMCDS_STATUS_OK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _YRMCDS_STATUS_OK@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_31
; %bb.28:
	stp	xzr, xzr, [x20, #32]
	cmp	x8, #8
	b.ne	LBB0_30
; %bb.29:
	bl	_ntoh64
	str	x0, [x20, #48]
	b	LBB0_32
LBB0_30:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_31:
	stp	x8, xzr, [x20, #40]
	cmp	x24, x21
	csel	x9, xzr, x0, eq
	str	x9, [x20, #32]
LBB0_32:
	ldrsw	x8, [x20]
	str	x8, [x19, #8]
Lloh16:
	adrp	x8, _YRMCDS_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _YRMCDS_OK@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_YRMCDS_BAD_ARGUMENT,8,3        ; @YRMCDS_BAD_ARGUMENT
	.comm	_YRMCDS_PROTOCOL_ERROR,8,3      ; @YRMCDS_PROTOCOL_ERROR
	.comm	_BINARY_HEADER_SIZE,8,3         ; @BINARY_HEADER_SIZE
	.comm	_MAX_CAPACITY,8,3               ; @MAX_CAPACITY
	.comm	_YRMCDS_CMD_INCREMENT,1,0       ; @YRMCDS_CMD_INCREMENT
	.comm	_YRMCDS_CMD_DECREMENT,1,0       ; @YRMCDS_CMD_DECREMENT
	.comm	_YRMCDS_STATUS_OK,8,3           ; @YRMCDS_STATUS_OK
	.comm	_YRMCDS_OK,8,3                  ; @YRMCDS_OK
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_YRMCDS_FLAG_COMPRESS,4,2       ; @YRMCDS_FLAG_COMPRESS
	.comm	_YRMCDS_OUT_OF_MEMORY,8,3       ; @YRMCDS_OUT_OF_MEMORY
.subsections_via_symbols
