	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nc_error
___nc_error:                            ## @__nc_error
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nc_key@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	cmpl	$-1, %edi
	jne	LBB0_6
## %bb.1:
	movq	_nc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	cmpl	$-1, (%r15)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_TlsAlloc
	movl	%eax, %ebx
	movl	%eax, (%r15)
LBB0_3:
	movq	_nc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_TLS_OUT_OF_INDEXES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.4:
	leaq	___nc_error.nc_error(%rip), %rbx
	jmp	LBB0_11
LBB0_5:
	movl	(%r15), %edi
LBB0_6:
	callq	_thr_getspecific
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_thr_setspecific
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movl	$0, (%r14)
	movq	%r14, %rbx
	jmp	LBB0_11
LBB0_8:
	leaq	___nc_error.nc_error(%rip), %rbx
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_free
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,___nc_error.nc_error,4,2 ## @__nc_error.nc_error
	.comm	_TLS_OUT_OF_INDEXES,4,2         ## @TLS_OUT_OF_INDEXES
	.no_dead_strip	___nc_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nc_error
___nc_error:                            ; @__nc_error
	.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	x20, _nc_key@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nc_key@GOTPAGEOFF]
	ldr	w0, [x20]
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.1:
Lloh2:
	adrp	x0, _nc_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _nc_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	mov	w19, #0
	b	LBB0_4
LBB0_3:
	bl	_TlsAlloc
	mov	x19, x0
	str	w0, [x20]
LBB0_4:
Lloh4:
	adrp	x0, _nc_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _nc_lock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _TLS_OUT_OF_INDEXES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TLS_OUT_OF_INDEXES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, w8
	b.eq	LBB0_11
; %bb.5:
	ldr	w0, [x20]
LBB0_6:
	bl	_thr_getspecific
	mov	x19, x0
	cbnz	x0, LBB0_12
; %bb.7:
	mov	w0, #8
	bl	_malloc
	mov	x19, x0
	ldr	w0, [x20]
	mov	x1, x19
	bl	_thr_setspecific
	cbz	x0, LBB0_9
; %bb.8:
	str	wzr, [x19]
	b	LBB0_12
LBB0_9:
	cbz	x19, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_free
LBB0_11:
Lloh9:
	adrp	x19, ___nc_error.nc_error@PAGE
Lloh10:
	add	x19, x19, ___nc_error.nc_error@PAGEOFF
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,___nc_error.nc_error,4,2 ; @__nc_error.nc_error
	.comm	_TLS_OUT_OF_INDEXES,4,2         ; @TLS_OUT_OF_INDEXES
	.no_dead_strip	___nc_error
.subsections_via_symbols
