	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_install_ds_area
_ds_install_ds_area:                    ## @ds_install_ds_area
	.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
	movq	16(%rdi), %r14
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_get_cpu
	movq	(%rbx), %rdi
	movq	_current@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
## %bb.2:
	movq	_MSR_IA32_DS_AREA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_wrmsrl
	movq	(%rbx), %rdi
LBB0_3:
	movq	_TIF_DS_AREA_MSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_tsk_thread_flag
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_cpu                        ## TAILCALL
LBB0_4:
	movl	8(%rbx), %edi
	movq	_MSR_IA32_DS_AREA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wrmsr_on_cpu                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_MSR_IA32_DS_AREA,4,2           ## @MSR_IA32_DS_AREA
	.comm	_TIF_DS_AREA_MSR,4,2            ## @TIF_DS_AREA_MSR
	.no_dead_strip	_ds_install_ds_area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_install_ds_area
_ds_install_ds_area:                    ; @ds_install_ds_area
	.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	x20, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	bl	_get_cpu
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MSR_IA32_DS_AREA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_IA32_DS_AREA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_wrmsrl
	ldr	x0, [x20]
LBB0_3:
Lloh6:
	adrp	x8, _TIF_DS_AREA_MSR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIF_DS_AREA_MSR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_set_tsk_thread_flag
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_cpu
LBB0_4:
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x8, _MSR_IA32_DS_AREA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSR_IA32_DS_AREA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsr_on_cpu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_MSR_IA32_DS_AREA,4,2           ; @MSR_IA32_DS_AREA
	.comm	_TIF_DS_AREA_MSR,4,2            ; @TIF_DS_AREA_MSR
	.no_dead_strip	_ds_install_ds_area
.subsections_via_symbols
