	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_through_nondestruct       ## -- Begin function copy_through_nondestruct
	.p2align	4, 0x90
_copy_through_nondestruct:              ## @copy_through_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	movq	%rsi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r14
	movq	8(%r14), %rbx
LBB0_2:
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	jg	LBB0_4
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	16(%r14), %rbx
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r15
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %r15
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	subl	%ebx, %r15d
	cmpl	%r15d, %r13d
	cmovll	%r13d, %r15d
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_write_out
	addl	%eax, %r12d
	movl	%r15d, %eax
	addq	%rax, %rbx
	subl	%r15d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r14), %rbx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %r14
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rbx
	testl	%r13d, %r13d
	jg	LBB0_4
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %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	_copy_through_nondestruct       ; -- Begin function copy_through_nondestruct
	.p2align	2
_copy_through_nondestruct:              ; @copy_through_nondestruct
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x22, [x1]
	mov	x25, x1
	cmp	x8, x22
	b.eq	LBB0_12
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_13
LBB0_2:
	mov	w23, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #16]
	cmp	x22, x8
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #0
	b.le	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #16]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w8, w22
	cmp	w19, w8
	csel	w24, w19, w8, lt
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_write_out
	add	w23, w23, w0
	add	x22, x22, w24, uxtw
	sub	w19, w19, w24
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cmp	x22, x8
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x25, #24]
	cmp	x25, x20
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x25, #8]
	cmp	w19, #0
	b.gt	LBB0_5
	b	LBB0_14
LBB0_12:
	ldr	x25, [x20, #24]
	ldr	x22, [x25, #8]
	cmp	w19, #1
	b.ge	LBB0_2
LBB0_13:
	mov	w23, #0
LBB0_14:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
