	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_rfwrite_cr_locked           ## -- Begin function zd_rfwrite_cr_locked
	.p2align	4, 0x90
_zd_rfwrite_cr_locked:                  ## @zd_rfwrite_cr_locked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -24(%rbp)
	movq	_ZD_CR244@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movzbl	%ah, %ecx
	movzbl	%al, %edx
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -44(%rbp)
	movq	_ZD_CR243@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%ecx, -36(%rbp)
	movq	_ZD_CR242@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%edx, -28(%rbp)
	callq	_mutex_is_locked
	movl	%eax, %edi
	callq	_ZD_ASSERT
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite16a_locked
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD_CR244,4,2                   ## @ZD_CR244
	.comm	_ZD_CR243,4,2                   ## @ZD_CR243
	.comm	_ZD_CR242,4,2                   ## @ZD_CR242
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_rfwrite_cr_locked           ; -- Begin function zd_rfwrite_cr_locked
	.p2align	2
_zd_rfwrite_cr_locked:                  ; @zd_rfwrite_cr_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _ZD_CR244@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZD_CR244@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ubfx	w9, w1, #16, #8
	stp	w8, w9, [sp]
Lloh6:
	adrp	x8, _ZD_CR243@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZD_CR243@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ubfx	w9, w1, #8, #8
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _ZD_CR242@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZD_CR242@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w9, w1, #0xff
	stp	w8, w9, [sp, #16]
	bl	_mutex_is_locked
	bl	_ZD_ASSERT
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_zd_iowrite16a_locked
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD_CR244,4,2                   ; @ZD_CR244
	.comm	_ZD_CR243,4,2                   ; @ZD_CR243
	.comm	_ZD_CR242,4,2                   ; @ZD_CR242
.subsections_via_symbols
