	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intl_convert_utf16_to_utf8     ## -- Begin function intl_convert_utf16_to_utf8
	.p2align	4, 0x90
_intl_convert_utf16_to_utf8:            ## @intl_convert_utf16_to_utf8
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_U_ZERO_ERROR@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, (%rdx)
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_u_strToUTF8
	movq	(%rbx), %rax
	movq	_U_BUFFER_OVERFLOW_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_U_STRING_NOT_TERMINATED_WARNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_2:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_zend_string_alloc
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_ZSTR_VAL
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_u_strToUTF8
	movq	(%rbx), %rdi
	callq	_U_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_zend_string_efree
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_ZSTR_VAL
	movq	-48(%rbp), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U_ZERO_ERROR,8,3               ## @U_ZERO_ERROR
	.comm	_U_BUFFER_OVERFLOW_ERROR,8,3    ## @U_BUFFER_OVERFLOW_ERROR
	.comm	_U_STRING_NOT_TERMINATED_WARNING,8,3 ## @U_STRING_NOT_TERMINATED_WARNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intl_convert_utf16_to_utf8     ; -- Begin function intl_convert_utf16_to_utf8
	.p2align	2
_intl_convert_utf16_to_utf8:            ; @intl_convert_utf16_to_utf8
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _U_ZERO_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _U_ZERO_ERROR@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x2]
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	bl	_u_strToUTF8
	mov	x20, #0
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _U_BUFFER_OVERFLOW_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _U_BUFFER_OVERFLOW_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _U_STRING_NOT_TERMINATED_WARNING@GOTPAGE
Lloh6:
	ldr	x10, [x10, _U_STRING_NOT_TERMINATED_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_zend_string_alloc
	mov	x20, x0
	ldr	x8, [x23]
	str	x8, [x19]
	bl	_ZSTR_VAL
	ldr	x1, [sp, #8]
	mov	x2, #0
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	bl	_u_strToUTF8
	ldr	x0, [x19]
	bl	_U_FAILURE
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_zend_string_efree
	mov	x20, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x23]
	str	x8, [x19]
	mov	x0, x20
	bl	_ZSTR_VAL
	ldr	x8, [sp, #8]
	str	xzr, [x0, x8, lsl #3]
LBB0_4:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ZERO_ERROR,8,3               ; @U_ZERO_ERROR
	.comm	_U_BUFFER_OVERFLOW_ERROR,8,3    ; @U_BUFFER_OVERFLOW_ERROR
	.comm	_U_STRING_NOT_TERMINATED_WARNING,8,3 ; @U_STRING_NOT_TERMINATED_WARNING
.subsections_via_symbols
