	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_data                      ## -- Begin function copy_data
	.p2align	4, 0x90
_copy_data:                             ## @copy_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movl	12(%rdx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	%r8d, %eax
	jge	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_5:
	movq	%rcx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %r12
	movl	8(%r15), %esi
	movl	(%r12), %edx
	xorl	%r9d, %r9d
	testl	%edx, %edx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.6:
	cmpl	%edx, %esi
	jge	LBB0_8
## %bb.7:
	movl	16(%rax,%rcx,8), %edx
	movq	_lookup_local@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, %r14
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r8d, %r13d
	callq	_lookup_mem
	movq	%r14, %rdi
	movl	%r13d, %r8d
	movq	%rax, %r9
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r9, %rdi
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	movq	%r12, %rbx
	movl	%eax, %r14d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testl	%r8d, %r8d
	jle	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movl	(%rbx), %r13d
	cmpl	%r13d, %eax
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=3
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=3
	callq	_rxe_drop_ref
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	cmpq	16(%r15), %rax
	jae	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=3
	leaq	24(%rbx), %r12
	xorl	%eax, %eax
	cmpl	$0, 24(%rbx)
	movq	%r12, %rbx
	movl	$0, %edi
	je	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	16(%r12), %edx
	movq	_lookup_local@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_lookup_mem
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %rdi
	movl	(%r12), %r13d
	xorl	%eax, %eax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %r12
                                        ## kill: def $eax killed $eax killed $rax
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=2
	subl	%eax, %r13d
	cmpl	%r13d, %r8d
	cmovll	%r8d, %r13d
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%eax, %rsi
	addq	8(%r12), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	16(%rbp), %r9
	movl	%eax, %ebx
	callq	_rxe_mem_copy
	testl	%eax, %eax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%r13d, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	subl	%r13d, -56(%rbp)                ## 4-byte Folded Spill
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	subl	%r13d, %r8d
	movl	%r13d, %eax
	addq	%rax, -80(%rbp)                 ## 8-byte Folded Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_24:
	movl	%r14d, 8(%r15)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r15)
	xorl	%r14d, %r14d
LBB0_26:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_rxe_drop_ref
	jmp	LBB0_28
LBB0_17:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	%eax, %r14d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_lookup_local,4,2               ## @lookup_local
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_data                      ; -- Begin function copy_data
	.p2align	2
_copy_data:                             ; @copy_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w4, LBB0_22
; %bb.1:
	mov	x22, x4
	mov	x21, x2
	ldr	w28, [x2, #12]
	cmp	w28, w4
	b.ge	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_24
LBB0_3:
	mov	x27, x6
	mov	x23, x3
	mov	x24, x1
	mov	x25, x0
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x21, #24]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x19, x9, x10, x8
	ldr	w20, [x21, #8]
	ldr	w10, [x19]
	cmp	w10, #0
	ccmp	w20, w10, #0, ne
Lloh2:
	adrp	x11, _lookup_local@GOTPAGE
Lloh3:
	ldr	x11, [x11, _lookup_local@GOTPAGEOFF]
	b.lt	LBB0_5
; %bb.4:
	mov	x26, #0
	b	LBB0_6
LBB0_5:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w2, [x8, #16]
	ldr	w3, [x11]
	mov	x0, x25
	mov	x1, x24
	bl	_lookup_mem
	mov	x26, x0
	cbz	x0, LBB0_2
LBB0_6:
	str	x27, [sp]                       ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x8, x20
	mov	x0, x26
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w22, #1
	b.lt	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w9, [x19]
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	bl	_rxe_drop_ref
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.hs	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #0
	mov	x0, #0
	ldr	w9, [x19, #24]!
	cbz	w9, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x19, #16]
Lloh4:
	adrp	x8, _lookup_local@GOTPAGE
Lloh5:
	ldr	x8, [x8, _lookup_local@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, x24
	bl	_lookup_mem
	cbz	x0, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
	mov	w20, #0
	ldr	w9, [x19]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x8
	mov	x26, x0
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w9, w20
	cmp	w22, w8
	csel	w27, w22, w8, lt
	cmp	w27, #1
	b.lt	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, w20, sxtw
	mov	x0, x26
	mov	x2, x23
	mov	x3, x27
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x5, [sp]                        ; 8-byte Folded Reload
	bl	_rxe_mem_copy
	cbnz	w0, LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w20, w27, w20
	sub	w28, w28, w27
	sub	w22, w22, w27
	add	x23, x23, w27, uxtw
	b	LBB0_7
LBB0_20:
	stp	w20, w28, [x21, #8]
	cbz	x26, LBB0_22
; %bb.21:
	mov	x0, x26
	bl	_rxe_drop_ref
	mov	w0, #0
	b	LBB0_25
LBB0_22:
	mov	w0, #0
	b	LBB0_25
LBB0_23:
Lloh7:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	cbz	x26, LBB0_25
; %bb.27:
	mov	x19, x0
	mov	x0, x26
	bl	_rxe_drop_ref
	mov	x0, x19
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_lookup_local,4,2               ; @lookup_local
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
