	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cached_write                 ## -- Begin function __cached_write
	.p2align	4, 0x90
___cached_write:                        ## @__cached_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rcx, -72(%rbp)
	movq	%r9, -64(%rbp)
	movl	$-1, -44(%rbp)
	movq	_CET_WRITE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_send_credentials
	movl	$-1, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	leaq	-72(%rbp), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_safe_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	$-1, -44(%rbp)
	jmp	LBB0_10
LBB0_8:
	movl	-44(%rbp), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CET_WRITE_REQUEST,4,2          ## @CET_WRITE_REQUEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cached_write                 ; -- Begin function __cached_write
	.p2align	2
___cached_write:                        ; @__cached_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	stp	x5, x3, [sp, #32]
	mov	w23, #-1
	str	w23, [sp, #20]
Lloh0:
	adrp	x8, _CET_WRITE_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CET_WRITE_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_send_credentials
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_strlen
	str	x0, [sp, #24]
	mov	w8, #8
	add	x9, sp, #24
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_7
; %bb.2:
	mov	w8, #8
	add	x9, sp, #40
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_7
; %bb.3:
	mov	w8, #8
	add	x9, sp, #32
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #24]
	stp	x22, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [sp, #40]
	stp	x21, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [sp, #32]
	stp	x20, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbz	w0, LBB0_9
LBB0_7:
	mov	w23, #-1
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	add	x1, sp, #20
	mov	x0, x19
	mov	w2, #4
	bl	_safe_read
	cbz	w0, LBB0_11
; %bb.10:
	mov	w23, #-1
	str	w23, [sp, #20]
	b	LBB0_8
LBB0_11:
	ldr	w23, [sp, #20]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_WRITE_REQUEST,4,2          ; @CET_WRITE_REQUEST
.subsections_via_symbols
