	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_through                   ## -- Begin function copy_through
	.p2align	4, 0x90
_copy_through:                          ## @copy_through
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	%rsi, %rbx
	cmpq	8(%rsi), %rax
	jne	LBB0_2
## %bb.1:
	movq	40(%r14), %rbx
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	16(%rbx), %rax
	cmpq	%rax, %rsi
	je	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %r15d
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %r15
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rsi
	subl	%esi, %r15d
	cmpl	%r15d, %r13d
	cmovll	%r13d, %r15d
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_write_out
	addl	%eax, %r12d
	movl	%r15d, %esi
	addq	8(%rbx), %rsi
	movq	%rsi, 8(%rbx)
	subl	%r15d, %r13d
	subl	%r15d, 20(%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rbx), %rsi
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %rbx
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%rbx), %r15
	xorl	%edi, %edi
	cmpq	$0, 32(%r14)
	setg	%dil
	callq	_assert
	movq	%r14, 48(%r15)
	movq	%r15, 40(%r14)
	movq	%rbx, %rdi
	callq	_free_buffer
	decq	32(%r14)
	movq	%r15, %rbx
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	cmpl	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 16(%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r14), %rbx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %rbx
	jne	LBB0_3
LBB0_16:
	movl	%r12d, %eax
	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	_copy_through                   ; -- Begin function copy_through
	.p2align	2
_copy_through:                          ; @copy_through
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x9, [x1]
	mov	x23, x1
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x23, [x20, #40]
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_17
; %bb.3:
	mov	w22, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x23, #16]
	cmp	x1, x8
	b.eq	LBB0_18
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #0
	b.le	LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #16]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x23, #8]
	sub	w8, w8, w1
	cmp	w19, w8
	csel	w24, w19, w8, lt
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x24
	bl	_write_out
	add	w22, w22, w0
	ldr	x8, [x23, #8]
	add	x1, x8, w24, uxtw
	str	x1, [x23, #8]
	sub	w19, w19, w24
	ldr	w8, [x20, #20]
	sub	w8, w8, w24
	str	w8, [x20, #20]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, x20
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [x23, #40]
	ldr	x8, [x20, #32]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	str	x20, [x24, #48]
	str	x24, [x20, #40]
	mov	x0, x23
	bl	_free_buffer
	ldr	x8, [x20, #32]
	sub	x8, x8, #1
	str	x8, [x20, #32]
	mov	x23, x24
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	stp	x8, x8, [x23]
	ldr	w9, [x23, #16]
	cbz	w9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x23, #16]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x20, #40]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, x20
	b.ne	LBB0_5
	b	LBB0_18
LBB0_17:
	mov	w22, #0
LBB0_18:
	mov	x0, x22
	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
