	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_set_upcall                 ## -- Begin function cpu_set_upcall
	.p2align	4, 0x90
_cpu_set_upcall:                        ## @cpu_set_upcall
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_cpu_thread_clean
	movq	(%r15), %rax
	movq	$0, 48(%rax)
	movslq	8(%rbx), %rdi
	addq	(%rbx), %rdi
	andq	$-16, %rdi
	addq	$-8, %rdi
	movq	%rdi, (%rax)
	movslq	%r12d, %rcx
	movq	%rcx, 8(%rax)
	movq	__udatasel@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rax)
	movq	%rcx, 32(%rax)
	movq	__ufssel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	__ugssel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_TF_HASSEGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	xorl	%esi, %esi
	callq	_suword
	movq	(%r15), %rax
	movl	%r14d, 16(%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__udatasel,8,3                  ## @_udatasel
	.comm	__ufssel,4,2                    ## @_ufssel
	.comm	__ugssel,4,2                    ## @_ugssel
	.comm	_TF_HASSEGS,4,2                 ## @TF_HASSEGS
	.comm	_SV_ILP32,4,2                   ## @SV_ILP32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_set_upcall                 ; -- Begin function cpu_set_upcall
	.p2align	2
_cpu_set_upcall:                        ; @cpu_set_upcall
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_cpu_thread_clean
	ldr	x8, [x22]
	str	xzr, [x8, #48]
	ldrsw	x9, [x19, #8]
	ldr	x10, [x19]
	add	x9, x9, x10
	and	x9, x9, #0xfffffffffffffff0
	sub	x0, x9, #8
	sxtw	x9, w21
	stp	x0, x9, [x8]
Lloh0:
	adrp	x9, __udatasel@GOTPAGE
Lloh1:
	ldr	x9, [x9, __udatasel@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stp	x9, x9, [x8, #32]
Lloh3:
	adrp	x9, __ufssel@GOTPAGE
Lloh4:
	ldr	x9, [x9, __ufssel@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8, #28]
Lloh6:
	adrp	x9, __ugssel@GOTPAGE
Lloh7:
	ldr	x9, [x9, __ugssel@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _TF_HASSEGS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TF_HASSEGS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #20]
	mov	w1, #0
	bl	_suword
	ldr	x8, [x22]
	str	w20, [x8, #16]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__udatasel,8,3                  ; @_udatasel
	.comm	__ufssel,4,2                    ; @_ufssel
	.comm	__ugssel,4,2                    ; @_ugssel
	.comm	_TF_HASSEGS,4,2                 ; @TF_HASSEGS
	.comm	_SV_ILP32,4,2                   ; @SV_ILP32
.subsections_via_symbols
