	.file	"extr_json_encoder.c_php_json_encode_serializable_object.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"null"
.LC1:
	.string	"jsonSerialize"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed calling %s::jsonSerialize()"
	.text
	.p2align 4
	.type	php_json_encode_serializable_object, @function
php_json_encode_serializable_object:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	Z_OBJCE_P@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rax
	call	Z_OBJPROP_P@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L2
	mov	rdi, rax
	call	GC_IS_RECURSIVE@PLT
	test	rax, rax
	jne	.L38
.L2:
	mov	rdi, rbp
	lea	r15, 20[rsp]
	lea	rbx, 16[rsp]
	call	PHP_JSON_HASH_PROTECT_RECURSION@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	ZVAL_STRING@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	xor	edi, edi
	mov	rcx, rbx
	mov	rdx, r15
	mov	rsi, r12
	call	call_user_function@PLT
	cmp	eax, DWORD PTR FAILURE[rip]
	je	.L8
	mov	edi, DWORD PTR 16[rsp]
	call	Z_TYPE@PLT
	cmp	rax, QWORD PTR IS_UNDEF[rip]
	je	.L8
	mov	edi, DWORD PTR exception[rip]
	call	EG@PLT
	test	rax, rax
	jne	.L39
	mov	edi, DWORD PTR 16[rsp]
	call	Z_TYPE@PLT
	cmp	rax, QWORD PTR IS_OBJECT[rip]
	je	.L40
.L13:
	mov	rcx, QWORD PTR [rsp]
	mov	rdi, r14
	mov	edx, r13d
	mov	rsi, rbx
	call	php_json_encode_zval@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	PHP_JSON_HASH_UNPROTECT_RECURSION@PLT
.L14:
	mov	rdi, rbx
	call	zval_ptr_dtor@PLT
	mov	rdi, r15
	call	zval_ptr_dtor@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR PHP_JSON_ERROR_RECURSION[rip]
	mov	rbx, QWORD PTR [rsp]
	mov	DWORD PTR [rbx], eax
	test	DWORD PTR PHP_JSON_PARTIAL_OUTPUT_ON_ERROR[rip], r13d
	je	.L33
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	smart_str_appendl@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR exception[rip]
	call	EG@PLT
	test	rax, rax
	je	.L41
.L36:
	mov	rdi, r15
	call	zval_ptr_dtor@PLT
	test	DWORD PTR PHP_JSON_PARTIAL_OUTPUT_ON_ERROR[rip], r13d
	jne	.L42
.L12:
	mov	rdi, rbp
	call	PHP_JSON_HASH_UNPROTECT_RECURSION@PLT
.L33:
	mov	r12d, DWORD PTR FAILURE[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rsp]
	call	Z_OBJ@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rax
	call	Z_OBJ_P@PLT
	cmp	QWORD PTR 8[rsp], rax
	jne	.L13
	mov	rdi, rbp
	call	PHP_JSON_HASH_UNPROTECT_RECURSION@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, r14
	call	php_json_encode_array@PLT
	mov	r12d, eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	smart_str_appendl@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdi, rbx
	call	zval_ptr_dtor@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	ZSTR_VAL@PLT
	lea	rdx, .LC2[rip]
	xor	esi, esi
	xor	edi, edi
	mov	ecx, eax
	call	zend_throw_exception_ex@PLT
	jmp	.L36
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	php_json_encode_serializable_object, .-php_json_encode_serializable_object
	.comm	exception,4,4
	.comm	PHP_JSON_PARTIAL_OUTPUT_ON_ERROR,4,4
	.comm	PHP_JSON_ERROR_RECURSION,4,4
	.comm	IS_UNDEF,8,8
	.comm	IS_OBJECT,8,8
	.comm	FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_json_encoder.c_php_json_encode_serializable_object.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"null\000"
	.align	2
.LC1:
	.ascii	"jsonSerialize\000"
	.align	2
.LC2:
	.ascii	"Failed calling %s::jsonSerialize()\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	php_json_encode_serializable_object, %function
php_json_encode_serializable_object:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r3
	ldr	r3, .L44
	sub	sp, sp, #24
	mov	r7, r0
	mov	r0, r1
	mov	r4, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	Z_OBJCE_P
	mov	r9, r0
	mov	r0, r4
	bl	Z_OBJPROP_P
	subs	r5, r0, #0
	beq	.L2
	bl	GC_IS_RECURSIVE
	cmp	r0, #0
	bne	.L37
.L2:
	mov	r0, r5
	bl	PHP_JSON_HASH_PROTECT_RECURSION
	ldr	r1, .L44+4
	add	r0, sp, #16
	bl	ZVAL_STRING
	mov	r0, #0
	add	r3, sp, #12
	mov	r1, r4
	add	r2, sp, #16
	str	r0, [sp, #4]
	str	r0, [sp]
	bl	call_user_function
	ldr	r10, .L44+8
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L8
	ldr	r0, [sp, #12]
	bl	Z_TYPE
	ldr	r3, .L44+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	ldr	r3, .L44+16
	ldr	r0, [r3]
	bl	EG
	cmp	r0, #0
	bne	.L38
	ldr	r0, [sp, #12]
	bl	Z_TYPE
	ldr	r3, .L44+20
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L39
.L13:
	mov	r3, r8
	mov	r2, r6
	mov	r0, r7
	add	r1, sp, #12
	bl	php_json_encode_zval
	mov	r4, r0
	mov	r0, r5
	bl	PHP_JSON_HASH_UNPROTECT_RECURSION
.L14:
	add	r0, sp, #12
	bl	zval_ptr_dtor
	add	r0, sp, #16
	bl	zval_ptr_dtor
	b	.L1
.L37:
	ldr	r2, .L44+24
	ldr	r3, .L44+28
	ldr	r2, [r2]
	str	r2, [r8]
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L40
.L3:
	ldr	r3, .L44+8
	ldr	r4, [r3]
	b	.L1
.L8:
	ldr	r3, .L44+16
	ldr	r0, [r3]
	bl	EG
	subs	r4, r0, #0
	beq	.L41
.L35:
	add	r0, sp, #16
	bl	zval_ptr_dtor
	ldr	r3, .L44+28
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L42
.L12:
	mov	r0, r5
	bl	PHP_JSON_HASH_UNPROTECT_RECURSION
	ldr	r4, [r10]
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L39:
	ldr	r0, [sp, #12]
	bl	Z_OBJ
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	Z_OBJ_P
	cmp	r4, r0
	bne	.L13
	mov	r0, r5
	bl	PHP_JSON_HASH_UNPROTECT_RECURSION
	mov	r3, r8
	mov	r2, r6
	mov	r0, r7
	add	r1, sp, #12
	bl	php_json_encode_array
	mov	r4, r0
	b	.L14
.L40:
	mov	r0, r7
	mov	r2, #4
	ldr	r1, .L44+32
	bl	smart_str_appendl
	b	.L3
.L42:
	mov	r0, r7
	mov	r2, #4
	ldr	r1, .L44+32
	bl	smart_str_appendl
	b	.L12
.L38:
	add	r0, sp, #12
	bl	zval_ptr_dtor
	b	.L35
.L41:
	ldr	r0, [r9]
	bl	ZSTR_VAL
	mov	r1, r4
	mov	r3, r0
	ldr	r2, .L44+36
	mov	r0, r4
	bl	zend_throw_exception_ex
	b	.L35
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC3
	.word	.LC1
	.word	FAILURE
	.word	IS_UNDEF
	.word	exception
	.word	IS_OBJECT
	.word	PHP_JSON_ERROR_RECURSION
	.word	PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
	.word	.LC0
	.word	.LC2
	.size	php_json_encode_serializable_object, .-php_json_encode_serializable_object
	.comm	exception,4,4
	.comm	PHP_JSON_PARTIAL_OUTPUT_ON_ERROR,4,4
	.comm	PHP_JSON_ERROR_RECURSION,4,4
	.comm	IS_UNDEF,4,4
	.comm	IS_OBJECT,4,4
	.comm	FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
