	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ReadReqBody_r            ## -- Begin function LSAPI_ReadReqBody_r
	.p2align	4, 0x90
_LSAPI_ReadReqBody_r:                   ## @LSAPI_ReadReqBody_r
	.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	$-1, %r14
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	js	LBB0_14
## %bb.2:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.3:
	movq	%rdi, %r15
	cmpl	$-1, (%rdi)
	je	LBB0_14
## %bb.4:
	movq	8(%r15), %rax
	subq	16(%r15), %rax
	jle	LBB0_5
## %bb.6:
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	24(%r15), %r13
	movq	32(%r15), %rsi
	subq	%rsi, %r13
	jle	LBB0_7
## %bb.8:
	cmpq	%rbx, %r13
	cmovaeq	%rbx, %r13
	addq	40(%r15), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_memmove
	addq	%r13, 32(%r15)
	addq	%r13, %r12
	subq	%r13, %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
	jmp	LBB0_13
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_7:
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_lsapi_read
	testq	%rax, %rax
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%rax, %r12
	addq	%rax, %r13
	subq	%rax, %rbx
	jne	LBB0_10
	jmp	LBB0_13
LBB0_11:
	testq	%r13, %r13
	je	LBB0_14
LBB0_13:
	addq	%r13, 16(%r15)
	movq	%r13, %r14
LBB0_14:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ReadReqBody_r            ; -- Begin function LSAPI_ReadReqBody_r
	.p2align	2
_LSAPI_ReadReqBody_r:                   ; @LSAPI_ReadReqBody_r
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, #-1
	cbz	x0, LBB0_13
; %bb.1:
	tbnz	x2, #63, LBB0_13
; %bb.2:
	mov	x21, x1
	cbz	x1, LBB0_13
; %bb.3:
	mov	x19, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_13
; %bb.4:
	ldp	x8, x9, [x19, #8]
	sub	x8, x8, x9
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.5:
	cmp	x8, x2
	csel	x22, x8, x2, lo
	ldp	x9, x8, [x19, #24]
	sub	x9, x9, x8
	cmp	x9, #1
	b.lt	LBB0_8
; %bb.6:
	cmp	x9, x22
	csel	x20, x9, x22, lo
	ldr	x9, [x19, #40]
	add	x1, x9, x8
	mov	x0, x21
	mov	x2, x20
	bl	_memmove
	ldr	x8, [x19, #32]
	add	x8, x8, x20
	str	x8, [x19, #32]
	add	x21, x21, x20
	sub	x22, x22, x20
	cbnz	x22, LBB0_9
	b	LBB0_12
LBB0_7:
	mov	x20, #0
	b	LBB0_13
LBB0_8:
	mov	x20, #0
	cbz	x22, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x22
	bl	_lsapi_read
	cmp	x0, #0
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, x0
	add	x20, x0, x20
	subs	x22, x22, x0
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:
	cbz	x20, LBB0_14
LBB0_12:
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	str	x8, [x19, #16]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x20, #-1
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
