	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_thread_alloc               ## -- Begin function cpu_thread_alloc
	.p2align	4, 0x90
_cpu_thread_alloc:                      ## @cpu_thread_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_set_top_of_stack_td
	movq	%rbx, %rdi
	callq	_get_pcb_td
	movq	%rax, %r14
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rax
	addq	$-4, %rax
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_get_pcb_user_save_pcb
	movq	%rax, %rbx
	movq	%rax, (%r14)
	movq	_use_xsave@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	incq	%rdi
	movl	$4, %esi
	callq	_bzero
	movq	_xsave_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 1(%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_xsave,8,3                  ## @use_xsave
	.comm	_xsave_mask,4,2                 ## @xsave_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_thread_alloc               ; -- Begin function cpu_thread_alloc
	.p2align	2
_cpu_thread_alloc:                      ; @cpu_thread_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_set_top_of_stack_td
	mov	x0, x19
	bl	_get_pcb_td
	mov	x20, x0
	ldr	x8, [x19]
	sub	x8, x8, #4
	stp	x8, x0, [x19, #8]
	bl	_get_pcb_user_save_pcb
	str	x0, [x20]
Lloh0:
	adrp	x8, _use_xsave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_xsave@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x0, x0, #1
	mov	w1, #4
	bl	_bzero
Lloh3:
	adrp	x8, _xsave_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xsave_mask@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x19, #1]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_use_xsave,8,3                  ; @use_xsave
	.comm	_xsave_mask,4,2                 ; @xsave_mask
.subsections_via_symbols
