	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yrmcds_text_mode               ## -- Begin function yrmcds_text_mode
	.p2align	4, 0x90
_yrmcds_text_mode:                      ## @yrmcds_text_mode
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_YRMCDS_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_8
LBB0_1:
	movq	_YRMCDS_BAD_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_YRMCDS_IN_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_6:
	movq	_YRMCDS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1, 8(%rbx)
LBB0_7:
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YRMCDS_BAD_ARGUMENT,4,2        ## @YRMCDS_BAD_ARGUMENT
	.comm	_errno,4,2                      ## @errno
	.comm	_YRMCDS_SYSTEM_ERROR,4,2        ## @YRMCDS_SYSTEM_ERROR
	.comm	_YRMCDS_OK,4,2                  ## @YRMCDS_OK
	.comm	_YRMCDS_IN_BINARY,4,2           ## @YRMCDS_IN_BINARY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yrmcds_text_mode               ; -- Begin function yrmcds_text_mode
	.p2align	2
_yrmcds_text_mode:                      ; @yrmcds_text_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_pthread_mutex_lock
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _YRMCDS_SYSTEM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YRMCDS_SYSTEM_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _YRMCDS_BAD_ARGUMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _YRMCDS_BAD_ARGUMENT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _YRMCDS_IN_BINARY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _YRMCDS_IN_BINARY@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _YRMCDS_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _YRMCDS_OK@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	w8, #1
	str	w8, [x21, #8]
LBB0_7:
	mov	x0, x19
	bl	_pthread_mutex_unlock
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_YRMCDS_BAD_ARGUMENT,4,2        ; @YRMCDS_BAD_ARGUMENT
	.comm	_errno,4,2                      ; @errno
	.comm	_YRMCDS_SYSTEM_ERROR,4,2        ; @YRMCDS_SYSTEM_ERROR
	.comm	_YRMCDS_OK,4,2                  ; @YRMCDS_OK
	.comm	_YRMCDS_IN_BINARY,4,2           ; @YRMCDS_IN_BINARY
.subsections_via_symbols
