	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_mp_write_session_request_process
_on_mp_write_session_request_process:   ## @on_mp_write_session_request_process
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	_on_mp_write_session_request_process(%rip), %rdi
	callq	_TRACE_IN
	leaq	48(%r12), %rbx
	movq	_CET_MP_WRITE_SESSION_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_init_comm_element
	movq	%rbx, %rdi
	callq	_get_cache_mp_write_session_response
	movq	%rax, %r14
	leaq	44(%r12), %rdi
	callq	_get_cache_mp_write_session_request
	movq	%rax, %rbx
	movq	_s_configuration@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%rax), %esi
	callq	_configuration_find_entry
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_LOG_ERR_2
	jmp	LBB0_14
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_LOG_ERR_2
	jmp	LBB0_14
LBB0_3:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_LOG_ERR_2
	jmp	LBB0_14
LBB0_6:
	movl	40(%r12), %edx
	movl	32(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_asprintf
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	setne	%dil
	callq	_assert
	movl	(%r13), %edi
	callq	_configuration_lock_rdlock
	movq	_s_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	callq	_find_cache_entry
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_configuration_unlock
	movq	_INVALID_CACHE_ENTRY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_register_new_mp_cache_entry
	movq	%rax, %r15
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_free
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	16(%r12), %rdi
	movq	_CELT_MULTIPART@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_configuration_lock_entry
	movq	%r15, %rdi
	callq	_open_cache_mp_write_session
	movq	_INVALID_CACHE_MP_WRITE_SESSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	$-1, (%r14)
	jmp	LBB0_13
LBB0_10:
	movq	%rax, 32(%r12)
	movq	_on_mp_write_session_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	16(%r12), %rsi
	cmpq	$0, 16(%rsi)
	jne	LBB0_12
## %bb.11:
	cmpq	$0, 24(%rsi)
	je	LBB0_13
LBB0_12:
	leaq	24(%r12), %rdi
	addq	$16, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_13:
	movq	16(%r12), %rdi
	movl	(%rbx), %esi
	callq	_configuration_unlock_entry
LBB0_14:
	movq	_on_mp_write_session_response_write1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	$4, (%r12)
	movq	_EVFILT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	leaq	_on_mp_write_session_request_process(%rip), %rdi
	callq	_TRACE_OUT
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CET_MP_WRITE_SESSION_RESPONSE,4,2 ## @CET_MP_WRITE_SESSION_RESPONSE
	.comm	_s_configuration,4,2            ## @s_configuration
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write_session_request"

L_.str.1:                               ## @.str.1
	.asciz	"can't find configuration entry '%s'. aborting request"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.2:                               ## @.str.2
	.asciz	"configuration entry '%s' is disabled"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.3:                               ## @.str.3
	.asciz	"entry '%s' performs lookups by itself: can't write to it"

L_.str.4:                               ## @.str.4
	.asciz	"%s%s"

	.comm	_s_cache,4,2                    ## @s_cache
	.comm	_INVALID_CACHE_ENTRY,8,3        ## @INVALID_CACHE_ENTRY
	.comm	_CELT_MULTIPART,4,2             ## @CELT_MULTIPART
	.comm	_INVALID_CACHE_MP_WRITE_SESSION,8,3 ## @INVALID_CACHE_MP_WRITE_SESSION
	.comm	_on_mp_write_session_destroy,4,2 ## @on_mp_write_session_destroy
	.comm	_on_mp_write_session_response_write1,4,2 ## @on_mp_write_session_response_write1
	.comm	_EVFILT_WRITE,4,2               ## @EVFILT_WRITE
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_on_mp_write_session_request_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_mp_write_session_request_process
_on_mp_write_session_request_process:   ; @on_mp_write_session_request_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x0, _on_mp_write_session_request_process@PAGE
Lloh1:
	add	x0, x0, _on_mp_write_session_request_process@PAGEOFF
	bl	_TRACE_IN
	add	x20, x19, #48
Lloh2:
	adrp	x8, _CET_MP_WRITE_SESSION_RESPONSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CET_MP_WRITE_SESSION_RESPONSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_init_comm_element
	mov	x0, x20
	bl	_get_cache_mp_write_session_response
	mov	x20, x0
	add	x0, x19, #44
	bl	_get_cache_mp_write_session_request
	mov	x21, x0
Lloh5:
	adrp	x22, _s_configuration@GOTPAGE
Lloh6:
	ldr	x22, [x22, _s_configuration@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_configuration_find_entry
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w2, [x21]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_LOG_ERR_2
	b	LBB0_14
LBB0_4:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w2, [x21]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LOG_ERR_2
	b	LBB0_14
LBB0_5:
Lloh21:
	adrp	x8, _EACCES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w2, [x21]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_LOG_ERR_2
	b	LBB0_14
LBB0_6:
	ldr	w2, [x19, #40]
	ldr	w3, [x0, #32]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	w0, [x22]
	bl	_configuration_lock_rdlock
Lloh30:
	adrp	x8, _s_cache@GOTPAGE
Lloh31:
	ldr	x8, [x8, _s_cache@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_find_cache_entry
	mov	x21, x0
	ldr	w0, [x22]
	bl	_configuration_unlock
Lloh33:
	adrp	x8, _INVALID_CACHE_ENTRY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INVALID_CACHE_ENTRY@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_register_new_mp_cache_entry
	mov	x21, x0
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_free
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19, #16]
Lloh36:
	adrp	x22, _CELT_MULTIPART@GOTPAGE
Lloh37:
	ldr	x22, [x22, _CELT_MULTIPART@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_configuration_lock_entry
	mov	x0, x21
	bl	_open_cache_mp_write_session
Lloh38:
	adrp	x8, _INVALID_CACHE_MP_WRITE_SESSION@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INVALID_CACHE_MP_WRITE_SESSION@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #-1
	str	w8, [x20]
	b	LBB0_13
LBB0_10:
	str	x0, [x19, #32]
Lloh41:
	adrp	x8, _on_mp_write_session_destroy@GOTPAGE
Lloh42:
	ldr	x8, [x8, _on_mp_write_session_destroy@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_12
; %bb.11:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_13
LBB0_12:
	add	x0, x19, #24
	add	x1, x8, #16
	mov	w2, #4
	bl	_memcpy
LBB0_13:
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	bl	_configuration_unlock_entry
LBB0_14:
Lloh44:
	adrp	x8, _on_mp_write_session_response_write1@GOTPAGE
Lloh45:
	ldr	x8, [x8, _on_mp_write_session_response_write1@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	mov	w9, #4
	str	w9, [x19]
Lloh47:
	adrp	x9, _EVFILT_WRITE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _EVFILT_WRITE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
Lloh50:
	adrp	x0, _on_mp_write_session_request_process@PAGE
Lloh51:
	add	x0, x0, _on_mp_write_session_request_process@PAGEOFF
	bl	_TRACE_OUT
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_MP_WRITE_SESSION_RESPONSE,4,2 ; @CET_MP_WRITE_SESSION_RESPONSE
	.comm	_s_configuration,4,2            ; @s_configuration
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write_session_request"

l_.str.1:                               ; @.str.1
	.asciz	"can't find configuration entry '%s'. aborting request"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.2:                               ; @.str.2
	.asciz	"configuration entry '%s' is disabled"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.3:                               ; @.str.3
	.asciz	"entry '%s' performs lookups by itself: can't write to it"

l_.str.4:                               ; @.str.4
	.asciz	"%s%s"

	.comm	_s_cache,4,2                    ; @s_cache
	.comm	_INVALID_CACHE_ENTRY,8,3        ; @INVALID_CACHE_ENTRY
	.comm	_CELT_MULTIPART,4,2             ; @CELT_MULTIPART
	.comm	_INVALID_CACHE_MP_WRITE_SESSION,8,3 ; @INVALID_CACHE_MP_WRITE_SESSION
	.comm	_on_mp_write_session_destroy,4,2 ; @on_mp_write_session_destroy
	.comm	_on_mp_write_session_response_write1,4,2 ; @on_mp_write_session_response_write1
	.comm	_EVFILT_WRITE,4,2               ; @EVFILT_WRITE
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_on_mp_write_session_request_process
.subsections_via_symbols
