	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_xml_string
_to_xml_string:                         ## @to_xml_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_BAD_CAST
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_xmlNewNode
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_xmlAddChild
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_FIND_ZVAL_NULL
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_estrndup
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_zval_get_string_func
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ZSTR_VAL
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_ZSTR_LEN
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_estrndup
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_ZSTR_LEN
	movl	%eax, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_zend_string_release_ex
LBB0_3:
	movq	_encoding@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_SOAP_GLOBAL
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_xmlBufferCreateStatic
	movq	%rbx, %r12
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_xmlBufferCreate
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_SOAP_GLOBAL
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_xmlCharEncInFunc
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_efree
	movl	%ebx, %edi
	callq	_xmlBufferContent
	movq	%rax, %rdi
	callq	_estrdup
	movq	%rax, %r15
	movl	%r13d, %r12d
LBB0_7:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%ebx, %edi
	callq	_xmlBufferFree
	movl	%r14d, %edi
	callq	_xmlBufferFree
	movq	%r12, %rbx
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_4:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_8:
	movq	%r15, %rdi
	callq	_BAD_CAST
	movl	%eax, %edi
	callq	_php_libxml_xmlCheckUTF8
	testl	%eax, %eax
	jne	LBB0_28
## %bb.9:
	leal	8(%rbx), %edi
	callq	_emalloc
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_27
## %bb.10:
	xorl	%esi, %esi
	movl	$1, %ecx
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movslq	%ecx, %rdi
	movzbl	(%r14,%rdi), %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	$2, %edx
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%edx, %ecx
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ecx, %edx
	leal	1(%rdx), %ecx
	movslq	%edx, %rsi
	movzbl	(%r14,%rsi), %eax
	testb	%al, %al
	je	LBB0_27
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testb	$-128, %al
	je	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	%al, %ebx
	movl	%ebx, %edi
	andl	$-32, %edi
	cmpl	$192, %edi
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %edi
	andl	$-16, %edi
	cmpl	$224, %edi
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%ecx, %rdi
	movzbl	(%r14,%rdi), %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%edx, %rdi
	movzbl	2(%rdi,%r14), %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	jne	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	$3, %edx
	jmp	LBB0_24
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	andl	$-8, %ebx
	cmpl	$240, %ebx
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%ecx, %rdi
	movzbl	(%r14,%rdi), %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	jne	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%edx, %rdi
	movzbl	2(%rdi,%r14), %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	3(%rdi,%r14), %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	$4, %edx
	jmp	LBB0_24
LBB0_26:
	movb	$92, (%r14,%rsi)
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movb	$120, (%r14,%rcx)
	movl	%eax, %ecx
	shrb	$4, %cl
	cmpb	$-96, %al
	movl	$87, %esi
	movl	$48, %edi
	movl	$48, %ebx
	cmovael	%esi, %ebx
	addb	%cl, %bl
	andb	$15, %al
	cmpb	$10, %al
	cmovael	%esi, %edi
	movb	%bl, 2(%rdx,%r14)
	addb	%al, %dil
	movb	%dil, 3(%rdx,%r14)
	movl	$3026478, 4(%rdx,%r14)          ## imm = 0x2E2E2E
LBB0_27:
	movq	_E_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_soap_error1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	%r15, %rdi
	callq	_BAD_CAST
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_xmlNewTextLen
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_xmlAddChild
	movq	%r15, %rdi
	callq	_efree
	movq	_SOAP_ENCODED@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_30
## %bb.29:
	movl	%r12d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_set_ns_and_type
LBB0_30:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BOGUS"

	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_encoding,4,2                   ## @encoding
	.comm	_E_ERROR,4,2                    ## @E_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Encoding: string '%s' is not a valid utf-8 string"

	.comm	_SOAP_ENCODED,4,2               ## @SOAP_ENCODED
	.no_dead_strip	_to_xml_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_xml_string
_to_xml_string:                         ; @to_xml_string
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BAD_CAST
	mov	x1, x0
	mov	x0, #0
	bl	_xmlNewNode
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_xmlAddChild
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_FIND_ZVAL_NULL
	mov	x0, x23
	bl	_Z_TYPE_P
Lloh2:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_Z_STRVAL_P
	mov	x22, x0
	mov	x0, x23
	bl	_Z_STRLEN_P
	mov	x1, x0
	mov	x0, x22
	bl	_estrndup
	mov	x22, x0
	mov	x0, x23
	bl	_Z_STRLEN_P
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_zval_get_string_func
	mov	x24, x0
	bl	_ZSTR_VAL
	mov	x22, x0
	mov	x0, x24
	bl	_ZSTR_LEN
	mov	x1, x0
	mov	x0, x22
	bl	_estrndup
	mov	x22, x0
	mov	x0, x24
	bl	_ZSTR_LEN
	mov	x23, x0
	mov	x0, x24
	mov	w1, #0
	bl	_zend_string_release_ex
LBB0_3:
Lloh5:
	adrp	x26, _encoding@GOTPAGE
Lloh6:
	ldr	x26, [x26, _encoding@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_SOAP_GLOBAL
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	bl	_xmlBufferCreateStatic
	mov	x24, x0
	bl	_xmlBufferCreate
	mov	x25, x0
	ldr	w0, [x26]
	bl	_SOAP_GLOBAL
	mov	x1, x25
	mov	x2, x24
	bl	_xmlCharEncInFunc
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	x26, x0
	mov	x0, x22
	bl	_efree
	mov	x0, x25
	bl	_xmlBufferContent
	bl	_estrdup
	mov	x22, x0
	mov	x23, x26
LBB0_6:
	mov	x0, x25
	bl	_xmlBufferFree
	mov	x0, x24
	bl	_xmlBufferFree
LBB0_7:
	mov	x0, x22
	bl	_BAD_CAST
	bl	_php_libxml_xmlCheckUTF8
	cbnz	w0, LBB0_26
; %bb.8:
	add	w0, w23, #8
	bl	_emalloc
	mov	x24, x0
	add	w2, w23, #1
	mov	x1, x22
	bl	_memcpy
	ldrb	w10, [x24]
	cbz	w10, LBB0_25
; %bb.9:
	mov	x11, #0
	mov	w9, #0
	mov	w8, #1
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w12, [x24, w8, sxtw]
	and	w12, w12, #0xc0
	cmp	w12, #128
	b.ne	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w9, #2
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x9, x8
	add	w8, w8, #1
	sxtw	x11, w9
	ldrb	w10, [x24, x11]
	cbz	w10, LBB0_25
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	tbz	w10, #7, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	and	w12, w10, #0xe0
	cmp	w12, #192
	b.eq	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	and	w12, w10, #0xf0
	cmp	w12, #224
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w12, [x24, w8, sxtw]
	and	w12, w12, #0xc0
	cmp	w12, #128
	b.ne	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x12, x24, w9, sxtw
	ldrb	w12, [x12, #2]
	and	w12, w12, #0xc0
	cmp	w12, #128
	b.ne	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w9, #3
	b	LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	and	w12, w10, #0xf8
	cmp	w12, #240
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w12, [x24, w8, sxtw]
	and	w12, w12, #0xc0
	cmp	w12, #128
	b.ne	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x12, x9
	sxtw	x12, w12
	add	x12, x12, x24
	ldrb	w13, [x12, #2]
	and	w13, w13, #0xc0
	cmp	w13, #128
	b.ne	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w12, [x12, #3]
	and	w12, w12, #0xc0
	cmp	w12, #128
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w9, #4
	b	LBB0_12
LBB0_24:
	mov	w12, #92
	strb	w12, [x24, x11]
	mov	w11, #120
	strb	w11, [x24, w8, sxtw]
	mov	w8, #48
	mov	w11, #87
	cmp	w10, #159
	csel	w12, w11, w8, hi
	add	w12, w12, w10, lsr #4
	add	x9, x24, w9, sxtw
	strb	w12, [x9, #2]
	and	w10, w10, #0xf
	cmp	w10, #9
	csel	w8, w11, w8, hi
	add	w8, w8, w10
	strb	w8, [x9, #3]
	mov	w8, #11822
	movk	w8, #46, lsl #16
	str	w8, [x9, #4]
LBB0_25:
Lloh7:
	adrp	x8, _E_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_soap_error1
LBB0_26:
	mov	x0, x22
	bl	_BAD_CAST
	mov	x1, x23
	bl	_xmlNewTextLen
	mov	x1, x0
	mov	x0, x21
	bl	_xmlAddChild
	mov	x0, x22
	bl	_efree
Lloh12:
	adrp	x8, _SOAP_ENCODED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOAP_ENCODED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x21
	mov	x1, x19
	bl	_set_ns_and_type
LBB0_28:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BOGUS"

	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_encoding,4,2                   ; @encoding
	.comm	_E_ERROR,4,2                    ; @E_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Encoding: string '%s' is not a valid utf-8 string"

	.comm	_SOAP_ENCODED,4,2               ; @SOAP_ENCODED
	.no_dead_strip	_to_xml_string
.subsections_via_symbols
