	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cloudabi32_thread_setregs      ## -- Begin function cloudabi32_thread_setregs
	.p2align	4, 0x90
_cloudabi32_thread_setregs:             ## @cloudabi32_thread_setregs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	12(%rsi), %edi
	callq	_TO_PTR
	movl	%eax, -28(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rbx), %edi
	callq	_TO_PTR
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpu_set_upcall
	movq	8(%r15), %rax
	movl	(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	%r14d, %edi
	callq	_TO_PTR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_cpu_set_user_tls
	addq	$8, %rsp
	popq	%rbx
	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	_cloudabi32_thread_setregs      ; -- Begin function cloudabi32_thread_setregs
	.p2align	2
_cloudabi32_thread_setregs:             ; @cloudabi32_thread_setregs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #12]
	bl	_TO_PTR
	ldp	w8, w9, [x20, #4]
	stp	w9, w0, [sp, #8]
	mov	x0, x8
	bl	_TO_PTR
	mov	x1, x0
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_cpu_set_upcall
	ldr	x8, [x21, #8]
	ldr	w9, [x21]
	ldr	w10, [x20]
	stp	w10, w9, [x8]
	mov	x0, x19
	bl	_TO_PTR
	mov	x1, x0
	mov	x0, x21
	bl	_cpu_set_user_tls
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
