	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_top_of_stack_td            ## -- Begin function set_top_of_stack_td
	.p2align	4, 0x90
_set_top_of_stack_td:                   ## @set_top_of_stack_td
	.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, %r14
	movslq	(%rdi), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	imulq	%rax, %rbx
	addq	8(%rdi), %rbx
	movq	_cpu_max_ext_state_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XSAVE_AREA_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup2
	subq	%rax, %rbx
	movq	%rbx, 16(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_cpu_max_ext_state_size,4,2     ## @cpu_max_ext_state_size
	.comm	_XSAVE_AREA_ALIGN,4,2           ## @XSAVE_AREA_ALIGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_top_of_stack_td            ; -- Begin function set_top_of_stack_td
	.p2align	2
_set_top_of_stack_td:                   ; @set_top_of_stack_td
	.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
	ldr	x8, [x0, #8]
	ldrsw	x9, [x0]
Lloh0:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	madd	x20, x10, x9, x8
Lloh3:
	adrp	x8, _cpu_max_ext_state_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_max_ext_state_size@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _XSAVE_AREA_ALIGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSAVE_AREA_ALIGN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_roundup2
	sub	x8, x20, x0
	str	x8, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_cpu_max_ext_state_size,4,2     ; @cpu_max_ext_state_size
	.comm	_XSAVE_AREA_ALIGN,4,2           ; @XSAVE_AREA_ALIGN
.subsections_via_symbols
