	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_json_encode_serializable_object
_php_json_encode_serializable_object:   ## @php_json_encode_serializable_object
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_Z_OBJCE_P
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_Z_OBJPROP_P
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_GC_IS_RECURSIVE
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_PHP_JSON_ERROR_RECURSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_smart_str_appendl
LBB0_4:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_PHP_JSON_HASH_PROTECT_RECURSION
	leaq	L_.str.1(%rip), %rsi
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	callq	_ZVAL_STRING
	movq	_FAILURE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	leaq	-44(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_call_user_function
	cmpl	%eax, %r15d
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_UNDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_7:
	movq	_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EG
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ZSTR_VAL
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_zend_throw_exception_ex
LBB0_9:
	leaq	-52(%rbp), %rdi
	callq	_zval_ptr_dtor
	movq	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	leaq	L_.str(%rip), %rsi
LBB0_11:
	movl	$4, %edx
	callq	_smart_str_appendl
LBB0_12:
	movq	%r13, %rdi
	callq	_PHP_JSON_HASH_UNPROTECT_RECURSION
	movl	(%rbx), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EG
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	-44(%rbp), %rdi
	callq	_zval_ptr_dtor
	leaq	-52(%rbp), %rdi
	callq	_zval_ptr_dtor
	movq	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_16:
	movl	-44(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	movl	-44(%rbp), %edi
	callq	_Z_OBJ
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_Z_OBJ_P
	cmpq	%rax, %rbx
	jne	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	callq	_PHP_JSON_HASH_UNPROTECT_RECURSION
	leaq	-44(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_php_json_encode_array
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_19:
	leaq	-44(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_php_json_encode_zval
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_PHP_JSON_HASH_UNPROTECT_RECURSION
LBB0_20:
	leaq	-44(%rbp), %rdi
	callq	_zval_ptr_dtor
	leaq	-52(%rbp), %rdi
	callq	_zval_ptr_dtor
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_JSON_ERROR_RECURSION,4,2   ## @PHP_JSON_ERROR_RECURSION
	.comm	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR,4,2 ## @PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"jsonSerialize"

	.comm	_IS_UNDEF,8,3                   ## @IS_UNDEF
	.comm	_exception,4,2                  ## @exception
L_.str.2:                               ## @.str.2
	.asciz	"Failed calling %s::jsonSerialize()"

	.comm	_IS_OBJECT,8,3                  ## @IS_OBJECT
	.no_dead_strip	_php_json_encode_serializable_object
.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_serializable_object
_php_json_encode_serializable_object:   ; @php_json_encode_serializable_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_Z_OBJCE_P
	mov	x24, x0
	mov	x0, x23
	bl	_Z_OBJPROP_P
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_GC_IS_RECURSIVE
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _PHP_JSON_ERROR_RECURSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHP_JSON_ERROR_RECURSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh3:
	adrp	x8, _PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_smart_str_appendl
LBB0_4:
Lloh8:
	adrp	x8, _FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	bl	_PHP_JSON_HASH_PROTECT_RECURSION
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_ZVAL_STRING
Lloh13:
	adrp	x25, _FAILURE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _FAILURE@GOTPAGEOFF]
	ldr	w26, [x25]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, #0
	mov	x1, x23
	mov	w4, #0
	mov	x5, #0
	bl	_call_user_function
	cmp	w26, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_Z_TYPE
Lloh15:
	adrp	x8, _IS_UNDEF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IS_UNDEF@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _exception@GOTPAGE
Lloh19:
	ldr	x8, [x8, _exception@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_EG
	cbnz	x0, LBB0_11
; %bb.8:
	ldr	w0, [x24]
	bl	_ZSTR_VAL
	mov	x3, x0
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	mov	w1, #0
	bl	_zend_throw_exception_ex
	b	LBB0_11
LBB0_9:
Lloh23:
	adrp	x8, _exception@GOTPAGE
Lloh24:
	ldr	x8, [x8, _exception@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_EG
	cbz	x0, LBB0_15
; %bb.10:
	add	x0, sp, #12
	bl	_zval_ptr_dtor
LBB0_11:
	add	x0, sp, #8
	bl	_zval_ptr_dtor
Lloh26:
	adrp	x8, _PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PHP_JSON_PARTIAL_OUTPUT_ON_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_smart_str_appendl
LBB0_13:
	mov	x0, x20
	bl	_PHP_JSON_HASH_UNPROTECT_RECURSION
	ldr	w19, [x25]
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w0, [sp, #12]
	bl	_Z_TYPE
Lloh31:
	adrp	x8, _IS_OBJECT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IS_OBJECT@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.16:
	ldr	w0, [sp, #12]
	bl	_Z_OBJ
	mov	x24, x0
	mov	x0, x23
	bl	_Z_OBJ_P
	cmp	x24, x0
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_PHP_JSON_HASH_UNPROTECT_RECURSION
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_php_json_encode_array
	mov	x19, x0
	b	LBB0_19
LBB0_18:
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_php_json_encode_zval
	mov	x19, x0
	mov	x0, x20
	bl	_PHP_JSON_HASH_UNPROTECT_RECURSION
LBB0_19:
	add	x0, sp, #12
	bl	_zval_ptr_dtor
	add	x0, sp, #8
	bl	_zval_ptr_dtor
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_JSON_ERROR_RECURSION,4,2   ; @PHP_JSON_ERROR_RECURSION
	.comm	_PHP_JSON_PARTIAL_OUTPUT_ON_ERROR,4,2 ; @PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"jsonSerialize"

	.comm	_IS_UNDEF,8,3                   ; @IS_UNDEF
	.comm	_exception,4,2                  ; @exception
l_.str.2:                               ; @.str.2
	.asciz	"Failed calling %s::jsonSerialize()"

	.comm	_IS_OBJECT,8,3                  ; @IS_OBJECT
	.no_dead_strip	_php_json_encode_serializable_object
.subsections_via_symbols
