	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phpdbg_encode_xml
_phpdbg_encode_xml:                     ## @phpdbg_encode_xml
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	testq	%r8, %r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r8, %rdi
	callq	_strlen
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_1:
	movl	$5, %r14d
LBB0_3:
	movl	%r14d, %edi
	imull	%r15d, %edi
	callq	_emalloc
	movq	%rax, %rbx
	movq	%rax, (%r12)
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r14
	movl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_ZEND_STRL
	movslq	%eax, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_memcpy
	addq	$4, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	cmpl	%r12d, %r15d
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13,%r12), %eax
	cmpl	$60, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$38, %al
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_ZEND_STRL
	movslq	%eax, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_memcpy
	addq	$5, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_memcpy
	addq	%r14, %rbx
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%rbx)
	incq	%rbx
	jmp	LBB0_13
LBB0_14:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	jmp	LBB0_15
LBB0_4:
	movq	%rbx, %rdi
LBB0_15:
	subl	%edi, %ebx
	leal	1(%rbx), %esi
	callq	_erealloc
	movq	%rax, (%r12)
	movl	%ebx, %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	"&amp;"

L_.str.1:                               ## @.str.1
	.asciz	"&lt;"

	.no_dead_strip	_phpdbg_encode_xml
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phpdbg_encode_xml
_phpdbg_encode_xml:                     ; @phpdbg_encode_xml
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	cbz	x4, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_strlen
	mov	x25, x0
	b	LBB0_3
LBB0_2:
	mov	w25, #5
LBB0_3:
	mul	w0, w25, w22
	bl	_emalloc
	mov	x24, x0
	str	x0, [x19]
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x8, x25
	sxtw	x28, w8
Lloh0:
	adrp	x26, l_.str.1@PAGE
Lloh1:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh2:
	adrp	x27, l_.str@PAGE
Lloh3:
	add	x27, x27, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_ZEND_STRL
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x24
	bl	_memcpy
	add	x24, x24, #4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	subs	w22, w22, #1
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w9, [x23]
	cmp	w9, #60
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w8, w9, #0xff
	cmp	w8, #38
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_ZEND_STRL
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x24
	bl	_memcpy
	add	x24, x24, #5
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, w21
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x25, [sp]
	mov	x0, x24
	mov	x1, x20
	bl	_memcpy
	add	x24, x24, x28
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x24], #1
	b	LBB0_6
LBB0_13:
	ldr	x0, [x19]
	b	LBB0_15
LBB0_14:
	mov	x0, x24
LBB0_15:
	sub	w20, w24, w0
	add	w1, w20, #1
	bl	_erealloc
	str	x0, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"&amp;"

l_.str.1:                               ; @.str.1
	.asciz	"&lt;"

	.no_dead_strip	_phpdbg_encode_xml
.subsections_via_symbols
