	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_sprintf_appendstring
_php_sprintf_appendstring:              ## @php_sprintf_appendstring
	.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
	movl	%r9d, %r14d
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r12
	movq	16(%rbp), %r13
	cmpl	$0, 40(%rbp)
	je	LBB0_2
## %bb.1:
	movq	%r8, %rdi
	movq	%r12, %rsi
	callq	_MIN
	movq	%rax, %r12
LBB0_2:
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, %rax
	subq	%r12, %rax
	cmovaeq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_ZSTR_LEN
	movq	%r13, %rdi
	callq	_PRINTF_DEBUG
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_MAX
	movq	%rax, %r14
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, %rdx
	notq	%rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, %r14
	jbe	LBB0_4
## %bb.3:
	movq	_E_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_zend_error_noreturn
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_4:
	leaq	(%r14,%rax), %r13
	incq	%r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_ZSTR_LEN
	cmpq	%rax, %r13
	jbe	LBB0_11
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_ZSTR_LEN
	movq	%rax, %r14
	cmpq	%rax, %r13
	jbe	LBB0_10
## %bb.6:
	movq	_ZEND_SIZE_MAX@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	%r14, %r14
	cmpq	%r14, %r13
	jbe	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r14
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_E_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_zend_error_noreturn
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_PRINTF_DEBUG
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_zend_string_extend
	movq	%rax, (%rbx)
LBB0_11:
	movq	_ALIGN_RIGHT@GOTPCREL(%rip), %rax
	movq	16(%rbp), %rcx
	cmpq	%rcx, (%rax)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.13:
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	cmpb	$48, %r13b
	jne	LBB0_14
## %bb.15:
	movl	32(%rbp), %eax
	movl	48(%rbp), %ecx
	orl	%eax, %ecx
	je	LBB0_14
## %bb.16:
	testl	%eax, %eax
	setne	%r14b
	addb	%r14b, %r14b
	addb	$43, %r14b
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_ZSTR_VAL
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rsi)
	movb	%r14b, (%rax,%rcx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	leaq	-1(%r12), %rax
	jmp	LBB0_17
LBB0_12:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_14:
	movq	%r12, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_17:
	movq	$-1, %r15
	cmpq	%rbx, %r12
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jae	LBB0_18
## %bb.19:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmovaeq	%rbx, %r12
	subq	%rbx, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_ZSTR_VAL
	movq	(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rbx)
	movb	%r13b, (%rax,%rcx)
	incq	%r12
	jne	LBB0_20
## %bb.21:
	movq	%r14, %r12
LBB0_22:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_18:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rcx, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_PRINTF_DEBUG
	movq	(%r12), %rdi
	callq	_ZSTR_VAL
	addq	(%rbx), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	1(%r14), %rdx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	addq	%r14, (%rbx)
	movq	_ALIGN_LEFT@GOTPCREL(%rip), %rax
	movq	16(%rbp), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_26
## %bb.24:
	testq	%r15, %r15
	je	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	callq	_ZSTR_VAL
	movq	(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rbx)
	movb	%r13b, (%rax,%rcx)
	decq	%r15
	jne	LBB0_25
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_E_ERROR,4,2                    ## @E_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Field width %zd is too long"

	.comm	_ZEND_SIZE_MAX,4,2              ## @ZEND_SIZE_MAX
	.comm	_ALIGN_RIGHT,8,3                ## @ALIGN_RIGHT
	.comm	_ALIGN_LEFT,8,3                 ## @ALIGN_LEFT
	.no_dead_strip	_php_sprintf_appendstring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_sprintf_appendstring
_php_sprintf_appendstring:              ; @php_sprintf_appendstring
	.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, x7
	mov	x25, x6
	mov	x19, x5
	mov	x27, x3
	mov	x28, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x29, #20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x4
	mov	x1, x24
	bl	_MIN
	mov	x24, x0
LBB0_2:
	subs	x8, x27, x24
	csel	x23, xzr, x8, lo
	ldr	x0, [x21]
	bl	_ZSTR_LEN
	mov	x0, x25
	bl	_PRINTF_DEBUG
	mov	x0, x27
	mov	x1, x24
	bl	_MAX
	mov	x26, x0
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x20]
	mvn	x10, x8
	add	x9, x9, x10
	cmp	x0, x9
	b.ls	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _E_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_zend_error_noreturn
	ldr	x8, [x20]
LBB0_4:
	add	x8, x26, x8
	add	x26, x8, #1
	ldr	x0, [x21]
	bl	_ZSTR_LEN
	cmp	x26, x0
	b.ls	LBB0_11
; %bb.5:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x0, [x21]
	bl	_ZSTR_LEN
	mov	x27, x0
	cmp	x26, x0
	stp	x28, x25, [sp, #16]             ; 16-byte Folded Spill
	b.ls	LBB0_10
; %bb.6:
Lloh8:
	adrp	x22, _ZEND_SIZE_MAX@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ZEND_SIZE_MAX@GOTPAGEOFF]
Lloh10:
	adrp	x25, _E_ERROR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _E_ERROR@GOTPAGEOFF]
Lloh12:
	adrp	x28, l_.str.1@PAGE
Lloh13:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	lsl	x27, x27, #1
	cmp	x26, x27
	b.ls	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x27, w8, sxtw
	b.ls	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25]
	mov	x1, x28
	mov	x2, x26
	bl	_zend_error_noreturn
	b	LBB0_7
LBB0_10:
	mov	x0, x27
	bl	_PRINTF_DEBUG
	ldr	x0, [x21]
	mov	x1, x27
	mov	w2, #0
	bl	_zend_string_extend
	str	x0, [x21]
	ldp	x28, x25, [sp, #16]             ; 16-byte Folded Reload
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
LBB0_11:
Lloh14:
	adrp	x8, _ALIGN_RIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALIGN_RIGHT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x25
	b.ne	LBB0_15
; %bb.12:
	cmp	w19, #48
	b.ne	LBB0_16
; %bb.13:
	ldr	w9, [x29, #24]
	ldr	w8, [x29, #16]
	orr	w9, w9, w8
	cbz	w9, LBB0_16
; %bb.14:
	mov	w9, #45
	mov	w10, #43
	cmp	w8, #0
	csel	w22, w10, w9, eq
	ldr	x0, [x21]
	bl	_ZSTR_VAL
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	strb	w22, [x0, x8]
	add	x28, x28, #1
	sub	x26, x24, #1
	cmp	x24, x27
	b.lo	LBB0_17
	b	LBB0_19
LBB0_15:
	mov	x26, x24
	b	LBB0_20
LBB0_16:
	mov	x26, x24
	cmp	x24, x27
	b.hs	LBB0_19
LBB0_17:
	csel	x8, x24, x27, lo
	sub	x22, x8, x27
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_ZSTR_VAL
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	strb	w19, [x0, x8]
	adds	x22, x22, #1
	b.lo	LBB0_18
LBB0_19:
	mov	x23, #-1
LBB0_20:
	mov	x0, x28
	bl	_PRINTF_DEBUG
	ldr	x0, [x21]
	bl	_ZSTR_VAL
	ldr	x8, [x20]
	add	x0, x0, x8
	add	x2, x26, #1
	mov	x1, x28
	bl	_memcpy
	ldr	x8, [x20]
	add	x8, x8, x26
	str	x8, [x20]
Lloh17:
	adrp	x8, _ALIGN_LEFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ALIGN_LEFT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x25
	ccmp	x23, #0, #4, eq
	b.eq	LBB0_22
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	sub	x23, x23, #1
	ldr	x0, [x21]
	bl	_ZSTR_VAL
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	strb	w19, [x0, x8]
	cbnz	x23, LBB0_21
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_E_ERROR,4,2                    ; @E_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Field width %zd is too long"

	.comm	_ZEND_SIZE_MAX,4,2              ; @ZEND_SIZE_MAX
	.comm	_ALIGN_RIGHT,8,3                ; @ALIGN_RIGHT
	.comm	_ALIGN_LEFT,8,3                 ; @ALIGN_LEFT
	.no_dead_strip	_php_sprintf_appendstring
.subsections_via_symbols
