	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_json_encode_double
_php_json_encode_double:                ## @php_json_encode_double
	.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
	movl	%esi, %r15d
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PHP_DOUBLE_MAX_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_serialize_precision@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PG
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %edi
	movl	$46, %esi
	movl	$101, %edx
	movq	%rbx, %rcx
	callq	_php_gcvt
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	_PHP_JSON_PRESERVE_ZERO_FRACTION@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movslq	(%r13), %rax
	addq	$-2, %rax
	cmpq	%rax, %r12
	jae	LBB0_4
## %bb.3:
	movw	$12334, (%rbx,%r12)             ## imm = 0x302E
	movb	$0, 2(%rbx,%r12)
	addq	$2, %r12
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_smart_str_appendl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_DOUBLE_MAX_LENGTH,4,2      ## @PHP_DOUBLE_MAX_LENGTH
	.comm	_serialize_precision,4,2        ## @serialize_precision
	.comm	_PHP_JSON_PRESERVE_ZERO_FRACTION,4,2 ## @PHP_JSON_PRESERVE_ZERO_FRACTION
	.no_dead_strip	_php_json_encode_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_json_encode_double
_php_json_encode_double:                ; @php_json_encode_double
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	sub	sp, sp, #16
	mov	x22, x1
	fmov	d8, d0
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _PHP_DOUBLE_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PHP_DOUBLE_MAX_LENGTH@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _serialize_precision@GOTPAGE
Lloh8:
	ldr	x8, [x8, _serialize_precision@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_PG
	fmov	d0, d8
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #46
	mov	w2, #101
	mov	x3, x20
	bl	_php_gcvt
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
Lloh10:
	adrp	x8, _PHP_JSON_PRESERVE_ZERO_FRACTION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHP_JSON_PRESERVE_ZERO_FRACTION@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #46
	bl	_strchr
	cbnz	x0, LBB0_4
; %bb.2:
	ldrsw	x8, [x23]
	sub	x8, x8, #2
	cmp	x21, x8
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #12334
	strh	w8, [x20, x21]
	add	x21, x21, #2
	strb	wzr, [x20, x21]
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_smart_str_appendl
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #64
	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
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_DOUBLE_MAX_LENGTH,4,2      ; @PHP_DOUBLE_MAX_LENGTH
	.comm	_serialize_precision,4,2        ; @serialize_precision
	.comm	_PHP_JSON_PRESERVE_ZERO_FRACTION,4,2 ; @PHP_JSON_PRESERVE_ZERO_FRACTION
	.no_dead_strip	_php_json_encode_double
.subsections_via_symbols
