	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_back_nondestruct          ## -- Begin function read_back_nondestruct
	.p2align	4, 0x90
_read_back_nondestruct:                 ## @read_back_nondestruct
	.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
	movslq	%edx, %r12
	leaq	(%rsi,%r12), %r14
	testq	%rsi, %rsi
	cmoveq	%rsi, %r14
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	sete	%al
	movl	4(%rdi,%rax,4), %eax
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	movq	32(%rdi), %r13
	movq	16(%r13), %rax
	cmpq	24(%r13), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	%rdi, %r13
	je	LBB0_3
## %bb.2:
	movq	32(%r13), %r13
LBB0_3:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	jg	LBB0_4
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	subq	%rax, %r14
	subl	%ebx, %esi
	movl	%r14d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%ebx, %r15d
	subl	%ebx, %r12d
	jle	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r13), %r13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rsi
	movl	%esi, %ebx
	subl	%eax, %ebx
	cmpl	%ebx, %r12d
	cmovll	%r12d, %ebx
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_back_nondestruct          ; -- Begin function read_back_nondestruct
	.p2align	2
_read_back_nondestruct:                 ; @read_back_nondestruct
	.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
	ldr	x22, [x0, #32]
	add	x8, x1, w2, sxtw
	cmp	x1, #0
	csel	x19, xzr, x8, eq
	ldr	w8, [x0]
	cmp	w8, #0
	mov	w8, #4
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	w8, [x0, x8]
	cmp	w8, w2
	csel	w23, w8, w2, lt
	ldp	x8, x9, [x22, #16]
	cmp	x8, x9
	ccmp	x22, x0, #4, eq
	b.eq	LBB0_2
; %bb.1:
	ldr	x22, [x22, #32]
LBB0_2:
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w21, w20
	sub	w23, w23, w21
	cmp	w23, #1
	b.lt	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22, #32]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	cbnz	w9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x22, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #16]
	sub	w9, w8, w9
	cmp	w23, w9
	csel	w21, w23, w9, lt
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x19, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x19, x19, w21, uxtw
	sub	w1, w8, w21
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
	b	LBB0_4
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, 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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
