	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zend_shared_alloc_lock         ## -- Begin function zend_shared_alloc_lock
	.p2align	4, 0x90
_zend_shared_alloc_lock:                ## @zend_shared_alloc_lock
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_F_WRLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	$1, -64(%rbp)
	movq	_lock_file@GOTPCREL(%rip), %r15
	movq	_F_SETLKW@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	%r13, %rdx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	cmpq	(%rbx), %rdi
	je	LBB0_1
## %bb.3:
	movq	_ACCEL_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_zend_accel_error
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_WRLCK,4,2                    ## @F_WRLCK
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_lock_file,4,2                  ## @lock_file
	.comm	_F_SETLKW,4,2                   ## @F_SETLKW
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_ACCEL_LOG_ERROR,4,2            ## @ACCEL_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot create lock - %s (%d)"

	.comm	_zts_lock,4,2                   ## @zts_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zend_shared_alloc_lock         ; -- Begin function zend_shared_alloc_lock
	.p2align	2
_zend_shared_alloc_lock:                ; @zend_shared_alloc_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _F_WRLCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_WRLCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	str	xzr, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #8]
Lloh6:
	adrp	x19, _lock_file@GOTPAGE
Lloh7:
	ldr	x19, [x19, _lock_file@GOTPAGEOFF]
Lloh8:
	adrp	x21, _F_SETLKW@GOTPAGE
Lloh9:
	ldr	x21, [x21, _F_SETLKW@GOTPAGEOFF]
Lloh10:
	adrp	x20, _errno@GOTPAGE
Lloh11:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh12:
	adrp	x22, _EINTR@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x21]
	add	x2, sp, #8
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x20]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.3:
Lloh14:
	adrp	x8, _ACCEL_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACCEL_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	bl	_strerror
	mov	x2, x0
	ldr	x3, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_zend_accel_error
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_F_WRLCK,4,2                    ; @F_WRLCK
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_lock_file,4,2                  ; @lock_file
	.comm	_F_SETLKW,4,2                   ; @F_SETLKW
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ACCEL_LOG_ERROR,4,2            ; @ACCEL_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot create lock - %s (%d)"

	.comm	_zts_lock,4,2                   ; @zts_lock
.subsections_via_symbols
