	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ia64_copy_rbs
_ia64_copy_rbs:                         ## @ia64_copy_rbs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r9
	movq	%rsi, %r12
	movq	%rsi, %rcx
	shrq	$3, %rcx
	movq	$-1, %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	%rdx, %r13
	shlq	$3, %r9
	notq	%rax
	andq	%r8, %rax
	leaq	8(%rdi), %rdx
	movq	%r13, %rcx
	orq	$504, %rcx                      ## imm = 0x1F8
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r13, (%rdi)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmovbeq	%rdx, %rcx
	movq	(%rcx), %r14
	movl	%r13d, %ecx
	shrl	$3, %ecx
	shrq	%cl, %r14
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r14
	movabsq	$9223372036854775807, %rcx      ## imm = 0x7FFFFFFFFFFFFFFF
	andq	%rcx, %r14
	movl	%r12d, %edx
	subl	%r13d, %edx
	shrl	$3, %edx
	andl	$63, %edx
	movl	%r12d, %r15d
	andl	$504, %r15d                     ## imm = 0x1F8
	movl	%r13d, %ebx
	andl	$504, %ebx                      ## imm = 0x1F8
	cmpq	%rbx, %r15
	sbbq	$0, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	$63, %edi
	subq	%rdx, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r15
	jae	LBB0_1
## %bb.2:
	xorq	$504, %rbx                      ## imm = 0x1F8
	jmp	LBB0_6
LBB0_1:
	xorq	$504, %r15                      ## imm = 0x1F8
	movq	%r14, %rbx
	jmp	LBB0_4
LBB0_3:
	addq	%rbx, %r13
	movq	%r13, %rsi
	orq	$504, %rsi                      ## imm = 0x1F8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rdx), %r13
	cmovaeq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	(%rsi), %rbx
	movabsq	$9223372036854775807, %r14      ## imm = 0x7FFFFFFFFFFFFFFF
	andq	%r14, %rbx
	leaq	(,%rcx,8), %r15
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r9, %r15
	cmovgeq	%r9, %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r9, %r14
	callq	_memcpy
	movq	%r14, %r9
	movq	%rbx, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	shlq	%cl, %rax
	addq	%r15, %r12
	movabsq	$9223372036854775807, %rdx      ## imm = 0x7FFFFFFFFFFFFFFF
	andq	%rdx, %rax
	orq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	subq	%r15, %r9
	jle	LBB0_7
## %bb.5:
	movq	%rbx, %r14
	addq	%r15, %r13
	movq	%rax, (%r12)
	addq	$8, %r12
	leaq	(,%rcx,8), %rbx
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r9, %rbx
	cmovgeq	%r9, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r9, %r15
	callq	_memcpy
	movq	%r15, %r9
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	shrq	%cl, %r14
	addq	%rbx, %r12
	addq	$8, %rbx
	movq	%r14, %rax
	orq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	subq	%rbx, %r9
	jg	LBB0_3
LBB0_7:
	movl	%r12d, %ecx
	notl	%ecx
	testl	$504, %ecx                      ## imm = 0x1F8
	jne	LBB0_9
## %bb.8:
	movq	%rax, (%r12)
	addq	$8, %r12
	xorl	%eax, %eax
LBB0_9:
	andq	$-512, %r12                     ## imm = 0xFE00
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx)
	movq	%rax, 8(%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ia64_copy_rbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ia64_copy_rbs
_ia64_copy_rbs:                         ; @ia64_copy_rbs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x23, x0
	ldr	x8, [x23], #8
	orr	x9, x2, #0x1f8
	cmp	x8, x2
	csel	x10, x9, x23, hi
	sub	w8, w20, w21
	ubfx	x11, x8, #3, #6
	and	x8, x1, #0x1f8
	and	x9, x2, #0x1f8
	cmp	x8, x9
	cset	w12, lo
	mov	w13, #63
	sub	x25, x11, x12
	sub	x26, x13, x25
	lsl	x27, x3, #3
	lsr	x11, x1, #3
	mov	x12, #-1
	lsl	x11, x12, x11
	bic	x24, x4, x11
	ldr	x10, [x10]
	lsr	x11, x2, #3
	lsl	x11, x12, x11
	and	x10, x11, x10
	and	x28, x10, #0x7fffffffffffffff
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	eor	x8, x9, #0x1f8
	b	LBB0_6
LBB0_2:
	eor	x8, x8, #0x1f8
	b	LBB0_4
LBB0_3:
	ldr	x9, [x19]
	add	x21, x8, x21
	cmp	x21, x9
	orr	x8, x21, #0x1f8
	csel	x8, x8, x23, lo
	ldr	x8, [x8]
	and	x28, x8, #0x7fffffffffffffff
	lsl	x8, x26, #3
LBB0_4:
	cmp	x8, x27
	csel	x22, x8, x27, lt
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	add	x20, x20, x22
	sub	x27, x27, x22
	lsl	x8, x28, x25
	and	x8, x8, #0x7fffffffffffffff
	orr	x24, x8, x24
	cmp	x27, #1
	b.lt	LBB0_7
; %bb.5:
	add	x21, x22, x21
	str	x24, [x20], #8
	lsl	x8, x25, #3
	mov	x24, #0
LBB0_6:
	cmp	x8, x27
	csel	x22, x8, x27, lt
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	add	x20, x20, x22
	add	x8, x22, #8
	sub	x27, x27, x8
	lsr	x9, x28, x26
	orr	x24, x9, x24
	cmp	x27, #0
	b.gt	LBB0_3
LBB0_7:
	mvn	w8, w20
	tst	x8, #0x1f8
	b.ne	LBB0_9
; %bb.8:
	str	x24, [x20], #8
	mov	x24, #0
LBB0_9:
	and	x8, x20, #0xfffffffffffffe00
	stp	x8, x24, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ia64_copy_rbs
.subsections_via_symbols
