	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collator_convert_object_to_string ## -- Begin function collator_convert_object_to_string
	.p2align	4, 0x90
_collator_convert_object_to_string:     ## @collator_convert_object_to_string
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_U_ZERO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movl	$0, -28(%rbp)
	callq	_Z_TYPE_P
	movq	_IS_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_2:
	movq	%rbx, %rdi
	callq	_Z_OBJ_HT_P
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_Z_OBJ_HT_P
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_Z_OBJ_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	*%r15
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_zval_ptr_dtor
	movq	%rbx, %rdi
	callq	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_5:
	testq	%r14, %r14
	jne	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_COLLATOR_CONVERT_RETURN_FAILED
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_Z_STRLEN_P
	leaq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %r8
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_intl_convert_utf8_to_utf16
	movl	-32(%rbp), %edi
	callq	_U_FAILURE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_php_error
LBB0_9:
	movq	%r14, %rdi
	callq	_zval_ptr_dtor_str
	movq	-40(%rbp), %rbx
	movl	-28(%rbp), %edi
	callq	_UBYTES
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_ZVAL_STRINGL
	movq	-40(%rbp), %rdi
	callq	_efree
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U_ZERO_ERROR,4,2               ## @U_ZERO_ERROR
	.comm	_IS_OBJECT,8,3                  ## @IS_OBJECT
	.comm	_IS_STRING,4,2                  ## @IS_STRING
	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error casting object to string in collator_convert_object_to_string()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collator_convert_object_to_string ; -- Begin function collator_convert_object_to_string
	.p2align	2
_collator_convert_object_to_string:     ; @collator_convert_object_to_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _U_ZERO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U_ZERO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	str	xzr, [sp, #16]
	str	wzr, [sp, #12]
	bl	_Z_TYPE_P
Lloh3:
	adrp	x8, _IS_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IS_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_2:
	mov	x0, x20
	bl	_Z_OBJ_HT_P
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_Z_OBJ_HT_P
	ldr	x21, [x0]
	mov	x0, x20
	bl	_Z_OBJ_P
Lloh6:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	blr	x21
Lloh9:
	adrp	x8, _FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_zval_ptr_dtor
	mov	x0, x20
	bl	_COLLATOR_CONVERT_RETURN_FAILED
LBB0_5:
	cbnz	x19, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_COLLATOR_CONVERT_RETURN_FAILED
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	bl	_Z_STRVAL_P
	mov	x20, x0
	mov	x0, x19
	bl	_Z_STRLEN_P
	mov	x3, x0
	add	x0, sp, #16
	add	x1, sp, #12
	add	x4, sp, #28
	mov	x2, x20
	bl	_intl_convert_utf8_to_utf16
	ldr	w0, [sp, #28]
	bl	_U_FAILURE
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_php_error
LBB0_9:
	mov	x0, x19
	bl	_zval_ptr_dtor_str
	ldr	x20, [sp, #16]
	ldr	w0, [sp, #12]
	bl	_UBYTES
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ZVAL_STRINGL
	ldr	x0, [sp, #16]
	bl	_efree
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ZERO_ERROR,4,2               ; @U_ZERO_ERROR
	.comm	_IS_OBJECT,8,3                  ; @IS_OBJECT
	.comm	_IS_STRING,4,2                  ; @IS_STRING
	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error casting object to string in collator_convert_object_to_string()"

.subsections_via_symbols
