	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___error_threaded               ## -- Begin function __error_threaded
	.p2align	4, 0x90
___error_threaded:                      ## @__error_threaded
	.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	__thr_initial@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %rcx
	cmpq	(%rbx), %rax
	movq	_errno@GOTPCREL(%rip), %rdx
	cmoveq	%rdx, %rax
	testq	%rcx, %rcx
	cmoveq	%rdx, %rax
	jmp	LBB0_3
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__thr_initial,8,3               ## @_thr_initial
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___error_threaded               ; -- Begin function __error_threaded
	.p2align	2
___error_threaded:                      ; @__error_threaded
	.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, __thr_initial@GOTPAGE
Lloh1:
	ldr	x20, [x20, __thr_initial@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x19, _errno@GOTPAGE
Lloh3:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	bl	__get_curthread
	ldr	x8, [x20]
	cmp	x0, x8
	ccmp	x0, #0, #4, ne
	csel	x19, x19, x0, eq
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__thr_initial,8,3               ; @_thr_initial
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
