	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_temp_cast
_php_stream_temp_cast:                  ## @php_stream_temp_cast
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	_PHP_STREAM_IS_STDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_php_stream_is
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_php_stream_cast                ## TAILCALL
LBB0_3:
	testq	%r15, %r15
	jne	LBB0_6
## %bb.4:
	movq	_PHP_STREAM_AS_STDIO@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	testq	%r15, %r15
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_php_stream_fopen_tmpfile
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r12
	movq	(%r13), %rdi
	leaq	-56(%rbp), %rsi
	callq	_php_stream_memory_get_buffer
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_php_stream_write
	movq	(%r13), %rdi
	callq	_php_stream_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rdi
	movq	_PHP_STREAM_FREE_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_php_stream_free_enclosed
	movq	%r12, (%r13)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_php_stream_encloses
	movq	(%r13), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_php_stream_seek
	movq	(%r13), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_php_stream_cast
	jmp	LBB0_12
LBB0_9:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
LBB0_10:
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_PHP_STREAM_IS_STDIO,4,2        ## @PHP_STREAM_IS_STDIO
	.comm	_PHP_STREAM_AS_STDIO,4,2        ## @PHP_STREAM_AS_STDIO
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create temporary file."

	.comm	_PHP_STREAM_FREE_CLOSE,4,2      ## @PHP_STREAM_FREE_CLOSE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_php_stream_temp_cast
.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_cast
_php_stream_temp_cast:                  ; @php_stream_temp_cast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x0]
	cmp	x24, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x24]
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _PHP_STREAM_IS_STDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHP_STREAM_IS_STDIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_php_stream_is
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x24]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_php_stream_cast
LBB0_3:
	cbnz	x19, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _PHP_STREAM_AS_STDIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHP_STREAM_AS_STDIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	cbz	x19, LBB0_10
; %bb.7:
	bl	_php_stream_fopen_tmpfile
	cbz	x0, LBB0_9
; %bb.8:
	mov	x22, x0
	ldr	x0, [x24]
	add	x1, sp, #8
	bl	_php_stream_memory_get_buffer
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x22
	bl	_php_stream_write
	ldr	x0, [x24]
	bl	_php_stream_tell
	mov	x23, x0
	ldr	x0, [x24]
Lloh8:
	adrp	x8, _PHP_STREAM_FREE_CLOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHP_STREAM_FREE_CLOSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_php_stream_free_enclosed
	str	x22, [x24]
	mov	x0, x21
	mov	x1, x22
	bl	_php_stream_encloses
	ldr	x0, [x24]
Lloh11:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_php_stream_seek
	ldr	x0, [x24]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	bl	_php_stream_cast
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	bl	_php_error_docref
LBB0_10:
Lloh19:
	adrp	x8, _FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_PHP_STREAM_IS_STDIO,4,2        ; @PHP_STREAM_IS_STDIO
	.comm	_PHP_STREAM_AS_STDIO,4,2        ; @PHP_STREAM_AS_STDIO
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create temporary file."

	.comm	_PHP_STREAM_FREE_CLOSE,4,2      ; @PHP_STREAM_FREE_CLOSE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_php_stream_temp_cast
.subsections_via_symbols
