	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_temp_close
_php_stream_temp_close:                 ## @php_stream_temp_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_PHP_STREAM_FREE_CLOSE@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movq	_PHP_STREAM_FREE_PRESERVE_HANDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	orl	(%rax), %esi
	callq	_php_stream_free_enclosed
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	leaq	8(%rbx), %rdi
	callq	_zval_ptr_dtor
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_efree
LBB0_7:
	movq	%rbx, %rdi
	callq	_efree
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_STREAM_FREE_CLOSE,4,2      ## @PHP_STREAM_FREE_CLOSE
	.comm	_PHP_STREAM_FREE_PRESERVE_HANDLE,4,2 ## @PHP_STREAM_FREE_PRESERVE_HANDLE
	.no_dead_strip	_php_stream_temp_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_stream_temp_close
_php_stream_temp_close:                 ; @php_stream_temp_close
	.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
	mov	x20, x1
	ldr	x19, [x0]
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PHP_STREAM_FREE_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHP_STREAM_FREE_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PHP_STREAM_FREE_PRESERVE_HANDLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHP_STREAM_FREE_PRESERVE_HANDLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w9, w9, wzr, eq
	orr	w1, w9, w8
	bl	_php_stream_free_enclosed
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	add	x0, x19, #8
	bl	_zval_ptr_dtor
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_efree
LBB0_5:
	mov	x0, x19
	bl	_efree
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_STREAM_FREE_CLOSE,4,2      ; @PHP_STREAM_FREE_CLOSE
	.comm	_PHP_STREAM_FREE_PRESERVE_HANDLE,4,2 ; @PHP_STREAM_FREE_PRESERVE_HANDLE
	.no_dead_strip	_php_stream_temp_close
.subsections_via_symbols
