	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_write_rand_file
_php_openssl_write_rand_file:           ## @php_openssl_write_rand_file
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	_FAILURE@GOTPCREL(%rip), %r13
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_PHP_OPENSSL_RAND_ADD_TIME
	jmp	LBB0_5
LBB0_4:
	movl	%r12d, %esi
	callq	_RAND_file_name
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_PHP_OPENSSL_RAND_ADD_TIME
	testq	%r14, %r14
	je	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_RAND_write_file
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_php_openssl_store_errors
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
LBB0_8:
	movl	(%r13), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to write random state"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_openssl_write_rand_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_write_rand_file
_php_openssl_write_rand_file:           ; @php_openssl_write_rand_file
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x0, x9, x10
	mov	sp, x0
Lloh8:
	adrp	x9, _FAILURE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FAILURE@GOTPAGEOFF]
	cbnz	w1, LBB0_8
; %bb.1:
	cbz	w2, LBB0_8
; %bb.2:
	cbz	x19, LBB0_4
; %bb.3:
	bl	_PHP_OPENSSL_RAND_ADD_TIME
	b	LBB0_5
LBB0_4:
	mov	x1, x8
	bl	_RAND_file_name
	mov	x19, x0
	bl	_PHP_OPENSSL_RAND_ADD_TIME
	cbz	x19, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_RAND_write_file
	cbz	w0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	bl	_php_openssl_store_errors
Lloh12:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
Lloh17:
	adrp	x9, _FAILURE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FAILURE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x9]
	ldur	x8, [x29, #-24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to write random state"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_openssl_write_rand_file
.subsections_via_symbols
