	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detach_segment
_detach_segment:                        ## @detach_segment
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_zend_shared_alloc_lock_win32
	movq	_mapping_base@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_UnmapViewOfFile
	movq	$0, (%rbx)
LBB0_2:
	movq	_memfile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_CloseHandle
	movq	$0, (%rbx)
	xorl	%eax, %eax
	callq	_zend_shared_alloc_unlock_win32
	movq	_memory_mutex@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_CloseHandle
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapping_base,8,3               ## @mapping_base
	.comm	_memfile,8,3                    ## @memfile
	.comm	_memory_mutex,8,3               ## @memory_mutex
	.no_dead_strip	_detach_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detach_segment
_detach_segment:                        ; @detach_segment
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_zend_shared_alloc_lock_win32
Lloh0:
	adrp	x19, _mapping_base@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mapping_base@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_UnmapViewOfFile
	str	xzr, [x19]
LBB0_2:
Lloh2:
	adrp	x19, _memfile@GOTPAGE
Lloh3:
	ldr	x19, [x19, _memfile@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_CloseHandle
	str	xzr, [x19]
	bl	_zend_shared_alloc_unlock_win32
Lloh4:
	adrp	x19, _memory_mutex@GOTPAGE
Lloh5:
	ldr	x19, [x19, _memory_mutex@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_CloseHandle
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mapping_base,8,3               ; @mapping_base
	.comm	_memfile,8,3                    ; @memfile
	.comm	_memory_mutex,8,3               ; @memory_mutex
	.no_dead_strip	_detach_segment
.subsections_via_symbols
