	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_memory_set_option
_php_stream_memory_set_option:          ## @php_stream_memory_set_option
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$130, %esi
	jne	LBB0_5
## %bb.1:
	movq	_PHP_STREAM_OPTION_RETURN_OK@GOTPCREL(%rip), %rbx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.3:
	movq	(%rdi), %r15
	movq	_TEMP_STREAM_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.4:
	movq	_PHP_STREAM_OPTION_RETURN_ERR@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	_PHP_STREAM_OPTION_RETURN_NOTIMPL@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rcx), %r14
	cmpq	8(%r15), %r14
	jbe	LBB0_9
## %bb.8:
	movq	24(%r15), %rdi
	movq	%r14, %rsi
	callq	_erealloc
	movq	%rax, 24(%r15)
	movq	8(%r15), %rcx
	leaq	(%rax,%rcx), %rdi
	movl	%r14d, %edx
	subl	%ecx, %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_11
LBB0_9:
	cmpq	16(%r15), %r14
	jae	LBB0_11
## %bb.10:
	movq	%r14, 16(%r15)
LBB0_11:
	movq	%r14, 8(%r15)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_STREAM_OPTION_RETURN_OK,4,2 ## @PHP_STREAM_OPTION_RETURN_OK
	.comm	_TEMP_STREAM_READONLY,4,2       ## @TEMP_STREAM_READONLY
	.comm	_PHP_STREAM_OPTION_RETURN_ERR,4,2 ## @PHP_STREAM_OPTION_RETURN_ERR
	.comm	_PHP_STREAM_OPTION_RETURN_NOTIMPL,4,2 ## @PHP_STREAM_OPTION_RETURN_NOTIMPL
	.no_dead_strip	_php_stream_memory_set_option
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_stream_memory_set_option
_php_stream_memory_set_option:          ; @php_stream_memory_set_option
	.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
	cmp	w1, #130
	b.ne	LBB0_5
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_11
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_5
; %bb.3:
	ldr	x20, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _TEMP_STREAM_READONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TEMP_STREAM_READONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _PHP_STREAM_OPTION_RETURN_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHP_STREAM_OPTION_RETURN_ERR@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh5:
	adrp	x8, _PHP_STREAM_OPTION_RETURN_NOTIMPL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHP_STREAM_OPTION_RETURN_NOTIMPL@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	ldr	x19, [x3]
	ldr	x8, [x20, #8]
	cmp	x19, x8
	b.ls	LBB0_8
; %bb.7:
	ldr	x0, [x20, #24]
	mov	x1, x19
	bl	_erealloc
	str	x0, [x20, #24]
	ldr	x8, [x20, #8]
	add	x0, x8, x0
	sub	w2, w19, w8
	mov	w1, #0
	bl	_memset
	b	LBB0_10
LBB0_8:
	ldr	x8, [x20, #16]
	cmp	x19, x8
	b.hs	LBB0_10
; %bb.9:
	str	x19, [x20, #16]
LBB0_10:
	str	x19, [x20, #8]
LBB0_11:
Lloh7:
	adrp	x8, _PHP_STREAM_OPTION_RETURN_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHP_STREAM_OPTION_RETURN_OK@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_STREAM_OPTION_RETURN_OK,4,2 ; @PHP_STREAM_OPTION_RETURN_OK
	.comm	_TEMP_STREAM_READONLY,4,2       ; @TEMP_STREAM_READONLY
	.comm	_PHP_STREAM_OPTION_RETURN_ERR,4,2 ; @PHP_STREAM_OPTION_RETURN_ERR
	.comm	_PHP_STREAM_OPTION_RETURN_NOTIMPL,4,2 ; @PHP_STREAM_OPTION_RETURN_NOTIMPL
	.no_dead_strip	_php_stream_memory_set_option
.subsections_via_symbols
