	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cached_mp_write              ## -- Begin function __cached_mp_write
	.p2align	4, 0x90
___cached_mp_write:                     ## @__cached_mp_write
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, -48(%rbp)
	movl	$-1, -36(%rbp)
	movq	_CET_MP_WRITE_SESSION_WRITE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_safe_write
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rdx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_safe_read
	negl	%eax
	sbbl	%r12d, %r12d
	orl	-36(%rbp), %r12d
	movl	%r12d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CET_MP_WRITE_SESSION_WRITE_REQUEST,4,2 ## @CET_MP_WRITE_SESSION_WRITE_REQUEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cached_mp_write              ; -- Begin function __cached_mp_write
	.p2align	2
___cached_mp_write:                     ; @__cached_mp_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #24]
	mov	w21, #-1
	str	w21, [sp, #16]
Lloh0:
	adrp	x8, _CET_MP_WRITE_SESSION_WRITE_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CET_MP_WRITE_SESSION_WRITE_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	mov	w8, #4
	add	x9, sp, #20
	stp	x9, x8, [sp]
	bl	_safe_write
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w8, #8
	add	x9, sp, #24
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #24]
	stp	x20, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbz	w0, LBB0_5
LBB0_3:
	mov	w21, #-1
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #4
	bl	_safe_read
	ldr	w8, [sp, #16]
	cmp	w0, #0
	csinv	w21, w8, wzr, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_MP_WRITE_SESSION_WRITE_REQUEST,4,2 ; @CET_MP_WRITE_SESSION_WRITE_REQUEST
.subsections_via_symbols
