	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___open_cached_mp_read_session  ## -- Begin function __open_cached_mp_read_session
	.p2align	4, 0x90
___open_cached_mp_read_session:         ## @__open_cached_mp_read_session
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	___open_cached_connection
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	_CET_MP_READ_SESSION_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_send_credentials
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_safe_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_safe_read
	orl	-20(%rbp), %eax
	je	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	___close_cached_connection
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CET_MP_READ_SESSION_REQUEST,4,2 ## @CET_MP_READ_SESSION_REQUEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___open_cached_mp_read_session  ; -- Begin function __open_cached_mp_read_session
	.p2align	2
___open_cached_mp_read_session:         ; @__open_cached_mp_read_session
	.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	x20, x1
	bl	___open_cached_connection
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x8, _CET_MP_READ_SESSION_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CET_MP_READ_SESSION_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_credentials
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	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_5
; %bb.3:
	ldr	x8, [sp, #24]
	stp	x20, x8, [sp]
	mov	x0, x19
	bl	_safe_write
	cbnz	w0, LBB0_5
; %bb.4:
	add	x1, sp, #20
	mov	x0, x19
	mov	w2, #4
	bl	_safe_read
	ldr	w8, [sp, #20]
	orr	w8, w0, w8
	cbz	w8, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	___close_cached_connection
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_MP_READ_SESSION_REQUEST,4,2 ; @CET_MP_READ_SESSION_REQUEST
.subsections_via_symbols
