	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collator_convert_zstr_utf8_to_utf16 ## -- Begin function collator_convert_zstr_utf8_to_utf16
	.p2align	4, 0x90
_collator_convert_zstr_utf8_to_utf16:   ## @collator_convert_zstr_utf8_to_utf16
	.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	$0, -40(%rbp)
	movl	$0, -32(%rbp)
	movq	_U_ZERO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	callq	_Z_STRVAL_P
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %r8
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_intl_convert_utf8_to_utf16
	movl	-28(%rbp), %edi
	callq	_U_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_php_error
LBB0_2:
	movq	-40(%rbp), %rbx
	movl	-32(%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	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error casting object to string in collator_convert_zstr_utf8_to_utf16()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_collator_convert_zstr_utf8_to_utf16 ; -- Begin function collator_convert_zstr_utf8_to_utf16
	.p2align	2
_collator_convert_zstr_utf8_to_utf16:   ; @collator_convert_zstr_utf8_to_utf16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _U_ZERO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U_ZERO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	bl	_Z_STRVAL_P
	mov	x21, x0
	mov	x0, x20
	bl	_Z_STRLEN_P
	mov	x3, x0
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x4, sp
	mov	x2, x21
	bl	_intl_convert_utf8_to_utf16
	ldr	w0, [sp]
	bl	_U_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_php_error
LBB0_2:
	ldr	x20, [sp, #8]
	ldr	w0, [sp, #4]
	bl	_UBYTES
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ZVAL_STRINGL
	ldr	x0, [sp, #8]
	bl	_efree
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ZERO_ERROR,4,2               ; @U_ZERO_ERROR
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error casting object to string in collator_convert_zstr_utf8_to_utf16()"

.subsections_via_symbols
