	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_gdt_fsbase              ## -- Begin function update_gdt_fsbase
	.p2align	4, 0x90
_update_gdt_fsbase:                     ## @update_gdt_fsbase
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_curthread@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %ebx
	movl	(%rdi), %edi
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_pcb_flags
	xorl	%eax, %eax
	callq	_critical_enter
	movq	_fs32p@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	%ebx, %ecx
	andl	$16777215, %ecx                 ## imm = 0xFFFFFF
	movl	%ecx, (%rax)
	shrl	$24, %ebx
	movl	%ebx, 4(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_critical_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.comm	_fs32p,4,2                      ## @fs32p
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_gdt_fsbase              ; -- Begin function update_gdt_fsbase
	.p2align	2
_update_gdt_fsbase:                     ; @update_gdt_fsbase
	.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
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_set_pcb_flags
	bl	_critical_enter
Lloh6:
	adrp	x8, _fs32p@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fs32p@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_PCPU_GET
	and	w8, w19, #0xffffff
	lsr	w9, w19, #24
	stp	w8, w9, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_critical_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.comm	_fs32p,4,2                      ; @fs32p
.subsections_via_symbols
