	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_elf_core_copy_regs      ## -- Begin function xtensa_elf_core_copy_regs
	.p2align	4, 0x90
_xtensa_elf_core_copy_regs:             ## @xtensa_elf_core_copy_regs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rsi), %rcx
	movq	8(%rsi), %rsi
	movq	%rsi, %rbx
	shrq	%cl, %rbx
	movq	%rdi, %r15
	movq	16(%r12), %r14
	movq	_WSBITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	subl	%ecx, %edx
	movl	%edx, %ecx
	shlq	%cl, %rsi
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orq	%rbx, %rsi
	notl	%edx
	movslq	%edx, %rbx
	andq	%rsi, %rbx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	56(%r12), %eax
	movl	%eax, 40(%r15)
	movl	24(%r12), %eax
	movq	_PS_EXCM_BIT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btrl	%ecx, %eax
	movl	%eax, (%r15)
	movups	40(%r12), %xmm0
	movups	%xmm0, 24(%r15)
	movq	%rbx, 8(%r15)
	movl	$16, %edx
	testb	$2, %r14b
	jne	LBB0_3
## %bb.1:
	movl	$32, %edx
	testb	$4, %r14b
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	testb	$8, %r14b
	sete	%dl
	shlq	$4, %rdx
	addq	$48, %rdx
LBB0_3:
	movq	_XCHAL_NUM_AREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rax
	shrq	$4, %rax
	shll	$2, %eax
	subl	%eax, %ebx
	movq	16(%r15), %rdi
	movq	32(%r12), %rsi
	callq	_memcpy
	movslq	%ebx, %rsi
	movq	16(%r15), %rdi
	addq	%rsi, %rdi
	addq	32(%r12), %rsi
	andq	$-16, %r14
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WSBITS,8,3                     ## @WSBITS
	.comm	_PS_EXCM_BIT,4,2                ## @PS_EXCM_BIT
	.comm	_XCHAL_NUM_AREGS,8,3            ## @XCHAL_NUM_AREGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_elf_core_copy_regs      ; -- Begin function xtensa_elf_core_copy_regs
	.p2align	2
_xtensa_elf_core_copy_regs:             ; @xtensa_elf_core_copy_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x9, [x1]
	ldr	x21, [x1, #16]
	lsr	x10, x9, x8
Lloh0:
	adrp	x11, _WSBITS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _WSBITS@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	sub	x8, x11, x8
	lsl	x8, x9, x8
	orr	x8, x8, x10
	mov	w9, #-1
	lsl	w9, w9, w11
	mvn	w9, w9
	sxtw	x9, w9
	and	x22, x8, x9
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19, #56]
	str	w8, [x20, #40]
	ldr	w8, [x19, #24]
Lloh3:
	adrp	x9, _PS_EXCM_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PS_EXCM_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x20]
	ldur	q0, [x19, #40]
	stur	q0, [x20, #24]
	str	x22, [x20, #8]
	mov	w8, #16
	mov	w9, #32
	tst	x21, #0x8
	mov	w10, #48
	mov	w11, #64
	csel	x10, x11, x10, eq
	tst	w21, #0x4
	csel	x9, x9, x10, ne
	tst	w21, #0x2
Lloh6:
	adrp	x10, _XCHAL_NUM_AREGS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _XCHAL_NUM_AREGS@GOTPAGEOFF]
	csel	x2, x8, x9, ne
Lloh8:
	ldr	w8, [x10]
	lsr	x9, x21, #4
	sub	w22, w8, w9, lsl #2
	ldr	x0, [x20, #16]
	ldr	x1, [x19, #32]
	bl	_memcpy
	ldr	x8, [x20, #16]
	sxtw	x9, w22
	add	x0, x8, x9
	ldr	x8, [x19, #32]
	add	x1, x8, x9
	and	x2, x21, #0xfffffffffffffff0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WSBITS,8,3                     ; @WSBITS
	.comm	_PS_EXCM_BIT,4,2                ; @PS_EXCM_BIT
	.comm	_XCHAL_NUM_AREGS,8,3            ; @XCHAL_NUM_AREGS
.subsections_via_symbols
