	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsltAddTextString
_xsltAddTextString:                     ## @xsltAddTextString
	.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	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.2:
	movl	%ecx, %r15d
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.3:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_xmlNodeAddContent
	movq	(%rbx), %rdi
	movq	%rdi, 8(%r14)
	callq	_xmlStrlen
	movl	%eax, 4(%r14)
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_4:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r14), %edx
	movl	%ecx, %esi
	subl	%edx, %esi
	cmpl	%r15d, %esi
	jle	LBB0_5
## %bb.6:
	leal	(%rdx,%r15), %edi
	movl	4(%r14), %esi
	cmpl	%edi, %esi
	jg	LBB0_9
## %bb.7:
	cmpl	$100, %edi
	movl	$99, %edx
	cmovgel	%edi, %edx
	movl	%ecx, %edi
	subl	%esi, %edi
	cmpl	%edi, %edx
	leal	1(%rdx,%rsi), %r13d
	cmovgel	%ecx, %r13d
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_xmlRealloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movl	%r13d, 4(%r14)
	movq	%rax, 8(%r14)
	movq	%rax, (%rbx)
	movl	(%r14), %edx
LBB0_9:
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,8), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movslq	(%r14), %rax
	movslq	%r15d, %rcx
	addq	%rax, %rcx
	movl	%ecx, (%r14)
	movq	(%rbx), %rax
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_xsltTransformError
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsltCopyText: text allocation failed\n"

	.no_dead_strip	_xsltAddTextString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsltAddTextString
_xsltAddTextString:                     ; @xsltAddTextString
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	cbz	x1, LBB0_11
; %bb.1:
	mov	x22, x2
	cbz	x2, LBB0_11
; %bb.2:
	mov	x21, x3
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x20, x0
	ldr	x0, [x0, #8]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	bl	_xmlNodeAddContent
	ldr	x0, [x19]
	str	x0, [x20, #8]
	bl	_xmlStrlen
	stp	w0, w0, [x20]
	b	LBB0_11
LBB0_5:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x20]
	sub	w10, w9, w8
	cmp	w10, w21
	b.le	LBB0_10
; %bb.6:
	ldr	w10, [x20, #4]
	add	w11, w8, w21
	cmp	w10, w11
	b.gt	LBB0_9
; %bb.7:
	mov	w8, #99
	cmp	w11, #99
	csel	w8, w11, w8, gt
	add	w11, w8, w10
	sub	w10, w9, w10
	cmp	w8, w10
	csinc	w23, w9, w11, ge
	mov	x1, x23
	bl	_xmlRealloc
	cbz	x0, LBB0_10
; %bb.8:
	str	w23, [x20, #4]
	str	x0, [x20, #8]
	str	x0, [x19]
	ldr	w8, [x20]
LBB0_9:
	add	x0, x0, w8, sxtw #3
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, w21
	str	w8, [x20]
	ldr	x9, [x19]
	str	xzr, [x9, w8, sxtw #3]
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	bl	_xsltTransformError
	mov	x19, #0
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsltCopyText: text allocation failed\n"

	.no_dead_strip	_xsltAddTextString
.subsections_via_symbols
