	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_write_request_process
_on_write_request_process:              ## @on_write_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, %r13
	leaq	_on_write_request_process(%rip), %rdi
	callq	_TRACE_IN
	leaq	32(%r13), %rbx
	movq	_CET_WRITE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_init_comm_element
	movq	%rbx, %rdi
	callq	_get_cache_write_response
	movq	%rax, %r14
	leaq	28(%r13), %rdi
	callq	_get_cache_write_request
	movq	%rax, %r15
	movq	_s_configuration@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	16(%rax), %esi
	callq	_configuration_find_entry
	movq	%rax, 16(%r13)
	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	16(%r15), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_LOG_ERR_2
	jmp	LBB0_11
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	16(%r15), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_LOG_ERR_2
	jmp	LBB0_11
LBB0_3:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	16(%r15), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_LOG_ERR_2
	jmp	LBB0_11
LBB0_6:
	movl	(%rbx), %edi
	callq	_configuration_lock_rdlock
	movq	_s_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r13), %rax
	movl	40(%rax), %esi
	callq	_find_cache_entry
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_configuration_unlock
	testq	%r12, %r12
	je	LBB0_10
## %bb.7:
	movq	16(%r13), %rdi
	movq	_CELT_POSITIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_configuration_lock_entry
	movq	16(%r13), %rax
	movq	%r12, 32(%rax)
	movl	12(%r15), %esi
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	%r12, %rdi
	callq	_cache_write
	movl	%eax, (%r14)
	movq	16(%r13), %rdi
	movl	(%rbx), %esi
	callq	_configuration_unlock_entry
	movq	16(%r13), %rsi
	cmpq	$0, 16(%rsi)
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 24(%rsi)
	je	LBB0_11
LBB0_9:
	leaq	24(%r13), %rdi
	addq	$16, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_11
LBB0_10:
	movl	$-1, (%r14)
LBB0_11:
	movq	_EVFILT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	$4, (%r13)
	movq	_on_write_response_write1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	leaq	_on_write_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_WRITE_RESPONSE,4,2         ## @CET_WRITE_RESPONSE
	.comm	_s_configuration,4,2            ## @s_configuration
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write_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"

	.comm	_s_cache,4,2                    ## @s_cache
	.comm	_CELT_POSITIVE,4,2              ## @CELT_POSITIVE
	.comm	_EVFILT_WRITE,4,2               ## @EVFILT_WRITE
	.comm	_on_write_response_write1,4,2   ## @on_write_response_write1
	.no_dead_strip	_on_write_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_write_request_process
_on_write_request_process:              ; @on_write_request_process
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x0, _on_write_request_process@PAGE
Lloh1:
	add	x0, x0, _on_write_request_process@PAGEOFF
	bl	_TRACE_IN
	add	x20, x19, #32
Lloh2:
	adrp	x8, _CET_WRITE_RESPONSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CET_WRITE_RESPONSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_init_comm_element
	mov	x0, x20
	bl	_get_cache_write_response
	mov	x20, x0
	add	x0, x19, #28
	bl	_get_cache_write_request
	mov	x21, x0
Lloh5:
	adrp	x23, _s_configuration@GOTPAGE
Lloh6:
	ldr	x23, [x23, _s_configuration@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x21, #16]
	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, #16]
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_11
LBB0_4:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w2, [x21, #16]
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_11
LBB0_5:
Lloh21:
	adrp	x8, _EACCES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w2, [x21, #16]
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_11
LBB0_6:
	ldr	w0, [x23]
	bl	_configuration_lock_rdlock
Lloh28:
	adrp	x8, _s_cache@GOTPAGE
Lloh29:
	ldr	x8, [x8, _s_cache@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #40]
	bl	_find_cache_entry
	mov	x22, x0
	ldr	w0, [x23]
	bl	_configuration_unlock
	cbz	x22, LBB0_10
; %bb.7:
	ldr	x0, [x19, #16]
Lloh31:
	adrp	x23, _CELT_POSITIVE@GOTPAGE
Lloh32:
	ldr	x23, [x23, _CELT_POSITIVE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_configuration_lock_entry
	ldr	x8, [x19, #16]
	str	x22, [x8, #32]
	ldp	w2, w1, [x21, #8]
	ldp	w4, w3, [x21]
	mov	x0, x22
	bl	_cache_write
	str	w0, [x20]
	ldr	x0, [x19, #16]
	ldr	w1, [x23]
	bl	_configuration_unlock_entry
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_9
; %bb.8:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_11
LBB0_9:
	add	x0, x19, #24
	add	x1, x8, #16
	mov	w2, #4
	bl	_memcpy
	b	LBB0_11
LBB0_10:
	mov	w8, #-1
	str	w8, [x20]
LBB0_11:
Lloh33:
	adrp	x8, _EVFILT_WRITE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EVFILT_WRITE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	mov	w9, #4
	str	w9, [x19]
Lloh36:
	adrp	x9, _on_write_response_write1@GOTPAGE
Lloh37:
	ldr	x9, [x9, _on_write_response_write1@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
Lloh39:
	adrp	x0, _on_write_request_process@PAGE
Lloh40:
	add	x0, x0, _on_write_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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_WRITE_RESPONSE,4,2         ; @CET_WRITE_RESPONSE
	.comm	_s_configuration,4,2            ; @s_configuration
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write_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"

	.comm	_s_cache,4,2                    ; @s_cache
	.comm	_CELT_POSITIVE,4,2              ; @CELT_POSITIVE
	.comm	_EVFILT_WRITE,4,2               ; @EVFILT_WRITE
	.comm	_on_write_response_write1,4,2   ; @on_write_response_write1
	.no_dead_strip	_on_write_request_process
.subsections_via_symbols
