	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inifile_delete_replace_append
_inifile_delete_replace_append:         ## @inifile_delete_replace_append
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r13)
	setne	%al
	testq	%r12, %r12
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_inifile_find_group
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_inifile_next_group
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	_assert
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_inifile_find_group
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_inifile_next_group
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	callq	_inifile_copy_to
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	%r15d, %eax
	jne	LBB0_9
LBB0_3:
	xorl	%edi, %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_php_stream_temp_create
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_php_stream_seek
	movq	-48(%rbp), %r12
	movq	(%r14), %rdi
	callq	_php_stream_tell
	cmpq	%rax, %r12
	je	LBB0_5
## %bb.7:
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_php_stream_seek
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rdi
	movq	_PHP_STREAM_COPY_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_php_stream_copy_to_stream_ex
	cmpl	%eax, %r12d
	jne	LBB0_10
LBB0_5:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_11:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movq	_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r15d
	jne	LBB0_17
## %bb.13:
	testq	%r12, %r12
	je	LBB0_16
## %bb.14:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.15:
	callq	_strlen
	testq	%rax, %rax
	movq	_SUCCESS@GOTPCREL(%rip), %rdx
	je	LBB0_17
LBB0_16:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	leaq	-56(%rbp), %rax
	leaq	-48(%rbp), %rcx
	cmoveq	%rax, %rcx
	movq	(%rcx), %rsi
	movq	%rbx, %r15
	movq	%rdx, %rbx
	movq	%r14, %rdi
	callq	_inifile_truncate
	movq	%rbx, %rdx
	movq	%r15, %rbx
	movl	%eax, %r15d
LBB0_17:
	cmpl	(%rdx), %r15d
	jne	LBB0_34
LBB0_18:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.19:
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_29
## %bb.20:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.21:
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_inifile_filter
	movl	%eax, %r15d
LBB0_23:
	testq	%r12, %r12
	je	LBB0_29
## %bb.24:
	movq	-56(%rbp), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.25:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.26:
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	(%r14), %rdi
	movq	8(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_php_stream_printf
LBB0_28:
	movq	(%r14), %rdi
	movq	(%r13), %rdx
	movq	(%r12), %rax
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rcx
	cmovneq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_php_stream_printf
LBB0_29:
	testq	%rbx, %rbx
	je	LBB0_34
## %bb.30:
	movq	%rbx, %rdi
	callq	_php_stream_tell
	testq	%rax, %rax
	je	LBB0_34
## %bb.31:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_php_stream_seek
	movq	(%r14), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_php_stream_seek
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rsi
	movq	_PHP_STREAM_COPY_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_php_stream_copy_to_stream_ex
	cmpl	%eax, %r12d
	je	LBB0_34
## %bb.32:
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	callq	_zend_throw_error
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_34
LBB0_33:
	movq	_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r15d
	je	LBB0_18
LBB0_34:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	(%rax), %rdi
	callq	_php_stream_close
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_inifile_free
LBB0_36:
	testq	%rbx, %rbx
	je	LBB0_38
## %bb.37:
	movq	%rbx, %rdi
	callq	_php_stream_close
LBB0_38:
	movq	(%r14), %rdi
	callq	_php_stream_flush
	movq	(%r14), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_php_stream_seek
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create temporary stream"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_PHP_STREAM_COPY_ALL,4,2        ## @PHP_STREAM_COPY_ALL
L_.str.1:                               ## @.str.1
	.asciz	"Could not copy remainder to temporary stream"

L_.str.2:                               ## @.str.2
	.asciz	"[%s]\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s=%s\n"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"Could not copy from temporary stream - ini file truncated"

	.no_dead_strip	_inifile_delete_replace_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inifile_delete_replace_append
_inifile_delete_replace_append:         ; @inifile_delete_replace_append
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x27, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
	cbz	w3, LBB0_2
; %bb.1:
	ldr	x8, [x23]
	cmp	x22, #0
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_assert
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x23
	bl	_inifile_find_group
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x23
	bl	_inifile_next_group
	ldr	w21, [x27]
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_assert
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x23
	bl	_inifile_find_group
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x23
	bl	_inifile_next_group
	ldp	x2, x1, [sp, #16]
	add	x3, sp, #8
	mov	x0, x19
	bl	_inifile_copy_to
	ldr	w21, [x27]
	cmp	w0, w21
	b.ne	LBB0_9
LBB0_3:
	mov	w0, #0
	mov	w1, #65536
	bl	_php_stream_temp_create
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x19]
Lloh4:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_php_stream_seek
	ldr	x28, [sp, #16]
	ldr	x0, [x19]
	bl	_php_stream_tell
	cmp	x28, x0
	b.eq	LBB0_10
; %bb.5:
	ldr	x0, [x19]
	ldr	x1, [sp, #16]
	ldr	w2, [x26]
	bl	_php_stream_seek
	ldr	w28, [x27]
	ldr	x0, [x19]
Lloh7:
	adrp	x8, _PHP_STREAM_COPY_ALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHP_STREAM_COPY_ALL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	bl	_php_stream_copy_to_stream_ex
	cmp	w28, w0
	b.eq	LBB0_10
; %bb.6:
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
LBB0_8:
Lloh14:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_php_error_docref
Lloh17:
	adrp	x8, _FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
	mov	x20, #0
	mov	x21, x0
LBB0_10:
	ldr	w8, [x27]
	cmp	w21, w8
	b.ne	LBB0_15
; %bb.11:
	cbz	x22, LBB0_14
; %bb.12:
	ldr	x0, [x23]
	cbz	x0, LBB0_15
; %bb.13:
	bl	_strlen
	cbz	x0, LBB0_15
LBB0_14:
	cmp	w25, #0
	add	x8, sp, #16
	add	x9, sp, #24
	csel	x8, x9, x8, eq
	ldr	x1, [x8]
	mov	x0, x19
	bl	_inifile_truncate
	mov	x21, x0
LBB0_15:
	ldr	w8, [x27]
	cmp	w21, w8
	b.ne	LBB0_31
; %bb.16:
	ldr	x0, [x23]
	cbz	x0, LBB0_27
; %bb.17:
	bl	_strlen
	cbz	x0, LBB0_27
; %bb.18:
	cbnz	w25, LBB0_21
; %bb.19:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	bl	_inifile_filter
	mov	x21, x0
LBB0_21:
	cbz	x22, LBB0_27
; %bb.22:
	ldp	x9, x8, [sp, #16]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.23:
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_26
; %bb.24:
	bl	_strlen
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [x19]
	ldr	x2, [x23, #8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_php_stream_printf
LBB0_26:
	ldr	x0, [x19]
	ldr	x2, [x23]
	ldr	x8, [x22]
Lloh22:
	adrp	x9, l_.str.4@PAGE
Lloh23:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_php_stream_printf
LBB0_27:
	cbz	x20, LBB0_31
; %bb.28:
	mov	x0, x20
	bl	_php_stream_tell
	cbz	x0, LBB0_31
; %bb.29:
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, #0
	bl	_php_stream_seek
	ldr	x0, [x19]
Lloh26:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_php_stream_seek
	ldr	w22, [x27]
	ldr	x1, [x19]
Lloh29:
	adrp	x8, _PHP_STREAM_COPY_ALL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PHP_STREAM_COPY_ALL@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	bl	_php_stream_copy_to_stream_ex
	cmp	w22, w0
	b.eq	LBB0_31
; %bb.30:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_zend_throw_error
Lloh34:
	adrp	x8, _FAILURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
LBB0_31:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_33
; %bb.32:
	ldr	x0, [x8]
	bl	_php_stream_close
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_inifile_free
LBB0_33:
	cbz	x20, LBB0_35
; %bb.34:
	mov	x0, x20
	bl	_php_stream_close
LBB0_35:
	ldr	x0, [x19]
	bl	_php_stream_flush
	ldr	x0, [x19]
	ldr	w2, [x26]
	mov	x1, #0
	bl	_php_stream_seek
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create temporary stream"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_PHP_STREAM_COPY_ALL,4,2        ; @PHP_STREAM_COPY_ALL
l_.str.1:                               ; @.str.1
	.asciz	"Could not copy remainder to temporary stream"

l_.str.2:                               ; @.str.2
	.asciz	"[%s]\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s=%s\n"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"Could not copy from temporary stream - ini file truncated"

	.no_dead_strip	_inifile_delete_replace_append
.subsections_via_symbols
