	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsd_state_set                  ## -- Begin function tsd_state_set
	.p2align	4, 0x90
_tsd_state_set:                         ## @tsd_state_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_tsd_state_nominal_recompute@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rsi, (%rax)
	setne	%dil
	callq	_assert
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_tsd_atomic_load
	movq	%rax, %rbx
	movq	_tsd_state_nominal_max@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_tsd_in_nominal_list
	cmpq	%r12, %rbx
	jle	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tsd_atomic_store
	movq	_tsd_state_nominal_max@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jge	LBB0_2
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %edi
	callq	_assert
	movq	_tsd_state_nominal_max@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jge	LBB0_4
## %bb.6:
	movq	%r15, %rdi
	callq	_tsd_remove_nominal
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tsd_atomic_store               ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tsd_add_nominal                ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tsd_slow_update                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tsd_state_nominal_recompute,8,3 ## @tsd_state_nominal_recompute
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.comm	_tsd_state_nominal_max,8,3      ## @tsd_state_nominal_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsd_state_set                  ; -- Begin function tsd_state_set
	.p2align	2
_tsd_state_set:                         ; @tsd_state_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _tsd_state_nominal_recompute@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tsd_state_nominal_recompute@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x22, _ATOMIC_RELAXED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ATOMIC_RELAXED@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tsd_atomic_load
	mov	x21, x0
Lloh5:
	adrp	x23, _tsd_state_nominal_max@GOTPAGE
Lloh6:
	ldr	x23, [x23, _tsd_state_nominal_max@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	x0, x19
	bl	_tsd_in_nominal_list
	cmp	x21, x24
	b.le	LBB0_3
; %bb.1:
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_tsd_atomic_store
	ldr	x8, [x23]
	cmp	x8, x20
	b.ge	LBB0_5
; %bb.2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_assert
	ldr	x8, [x23]
	cmp	x8, x20
	b.ge	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_tsd_remove_nominal
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tsd_atomic_store
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tsd_add_nominal
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tsd_slow_update
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tsd_state_nominal_recompute,8,3 ; @tsd_state_nominal_recompute
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.comm	_tsd_state_nominal_max,8,3      ; @tsd_state_nominal_max
.subsections_via_symbols
