	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_json_encode_zval           ## -- Begin function php_json_encode_zval
	.p2align	4, 0x90
_php_json_encode_zval:                  ## @php_json_encode_zval
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$130, %eax
	jne	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_Z_REFVAL_P
	movq	%rax, %rbx
	jmp	LBB0_1
LBB0_2:
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_11:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movq	%r15, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_php_json_escape_string         ## TAILCALL
LBB0_12:
	movq	%rbx, %rdi
	callq	_Z_OBJCE_P
	movq	_php_json_serializable_ce@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_instanceof_function
	testl	%eax, %eax
	je	LBB0_13
## %bb.23:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_php_json_encode_serializable_object ## TAILCALL
LBB0_13:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ZVAL_COPY
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_php_json_encode_array
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_zval_ptr_dtor_nogc
	jmp	LBB0_22
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	movl	$4, %edx
	jmp	LBB0_19
LBB0_7:
	movq	%rbx, %rdi
	callq	_Z_LVAL_P
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_smart_str_append_long
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
LBB0_19:
	callq	_smart_str_appendl
LBB0_20:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_Z_DVAL_P
	movl	%eax, %edi
	callq	_php_json_is_valid_double
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_Z_DVAL_P
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_php_json_encode_double
	jmp	LBB0_20
LBB0_15:
	movq	_PHP_JSON_ERROR_UNSUPPORTED_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_smart_str_appendl
LBB0_17:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_10:
	movq	_PHP_JSON_ERROR_INF_OR_NAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_smart_str_appendc
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_18
	.long	L0_0_set_8
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null"

L_.str.1:                               ## @.str.1
	.asciz	"true"

L_.str.2:                               ## @.str.2
	.asciz	"false"

	.comm	_PHP_JSON_ERROR_INF_OR_NAN,4,2  ## @PHP_JSON_ERROR_INF_OR_NAN
	.comm	_php_json_serializable_ce,4,2   ## @php_json_serializable_ce
	.comm	_PHP_JSON_ERROR_UNSUPPORTED_TYPE,4,2 ## @PHP_JSON_ERROR_UNSUPPORTED_TYPE
	.comm	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR,4,2 ## @PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_json_encode_zval           ; -- Begin function php_json_encode_zval
	.p2align	2
_php_json_encode_zval:                  ; @php_json_encode_zval
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_Z_TYPE_P
	cmp	w0, #130
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_Z_REFVAL_P
	mov	x22, x0
	b	LBB0_1
LBB0_3:
	sub	w8, w0, #128
	cmp	w8, #8
	b.hi	LBB0_20
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	bl	_Z_STRVAL_P
	mov	x23, x0
	mov	x0, x22
	bl	_Z_STRLEN_P
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	x3, x20
	mov	x4, x21
	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_json_escape_string
LBB0_7:
	mov	x0, x22
	bl	_Z_OBJCE_P
Lloh4:
	adrp	x8, _php_json_serializable_ce@GOTPAGE
Lloh5:
	ldr	x8, [x8, _php_json_serializable_ce@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_instanceof_function
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	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_json_encode_serializable_object
LBB0_9:
	add	x0, sp, #12
	mov	x1, x22
	bl	_ZVAL_COPY
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_php_json_encode_array
	mov	x19, x0
	add	x0, sp, #12
	bl	_zval_ptr_dtor_nogc
	b	LBB0_17
LBB0_10:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	w2, #4
	b	LBB0_14
LBB0_12:
	mov	x0, x22
	bl	_Z_LVAL_P
	mov	x1, x0
	mov	x0, x19
	bl	_smart_str_append_long
	b	LBB0_15
LBB0_13:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #5
LBB0_14:
	bl	_smart_str_appendl
LBB0_15:
Lloh11:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_16:
	ldr	w19, [x8]
LBB0_17:
	mov	x0, x19
	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
LBB0_18:
	mov	x0, x22
	bl	_Z_DVAL_P
	bl	_php_json_is_valid_double
	cbz	w0, LBB0_23
; %bb.19:
	mov	x0, x22
	bl	_Z_DVAL_P
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_php_json_encode_double
	b	LBB0_15
LBB0_20:
Lloh13:
	adrp	x8, _PHP_JSON_ERROR_UNSUPPORTED_TYPE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PHP_JSON_ERROR_UNSUPPORTED_TYPE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh16:
	adrp	x8, _PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_22
; %bb.21:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_smart_str_appendl
LBB0_22:
Lloh21:
	adrp	x8, _FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_16
LBB0_23:
Lloh23:
	adrp	x8, _PHP_JSON_ERROR_INF_OR_NAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PHP_JSON_ERROR_INF_OR_NAN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #48
	bl	_smart_str_appendc
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null"

l_.str.1:                               ; @.str.1
	.asciz	"true"

l_.str.2:                               ; @.str.2
	.asciz	"false"

	.comm	_PHP_JSON_ERROR_INF_OR_NAN,4,2  ; @PHP_JSON_ERROR_INF_OR_NAN
	.comm	_php_json_serializable_ce,4,2   ; @php_json_serializable_ce
	.comm	_PHP_JSON_ERROR_UNSUPPORTED_TYPE,4,2 ; @PHP_JSON_ERROR_UNSUPPORTED_TYPE
	.comm	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR,4,2 ; @PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
.subsections_via_symbols
