	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsltAddStackElem
_xsltAddStackElem:                      ## @xsltAddStackElem
	.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
	movl	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r12
	leaq	L_.str(%rip), %r14
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rcx), %edx
	movl	%edx, 4(%r12)
	movslq	%ecx, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%rbx, 8(%r12)
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	testl	%esi, %esi
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, (%r12)
	movl	$80, %edi
	callq	_xmlMalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %esi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %ecx
	cmpl	%esi, %ecx
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rsi,%rsi), %eax
	movl	%eax, (%r12)
	movq	16(%r12), %rdi
	shll	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xmlRealloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %ecx
	jmp	LBB0_12
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_9:
	movq	%r13, %r14
LBB0_10:
	movq	_xmlGenericErrorContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_xmlGenericError
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xmlGenericErrorContext,4,2     ## @xmlGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed !\n"

L_.str.1:                               ## @.str.1
	.asciz	"realloc failed !\n"

	.no_dead_strip	_xsltAddStackElem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsltAddStackElem
_xsltAddStackElem:                      ; @xsltAddStackElem
	.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	x21, x0
	mov	w0, #-1
	cbz	x21, LBB0_14
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_14
; %bb.2:
	mov	w22, #10
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x21, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w8, #1
	str	w9, [x21, #4]
	str	x19, [x0, w8, sxtw #3]
	str	x19, [x21, #8]
	ldr	x19, [x19]
	cbz	x19, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	cbnz	w9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w22, [x21]
	mov	w0, #80
	bl	_xmlMalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21, #4]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w9, #1
	str	w8, [x21]
	ldr	x0, [x21, #16]
	lsl	w1, w9, #4
	bl	_xmlRealloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21, #4]
	b	LBB0_4
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	mov	x20, x23
LBB0_13:
Lloh4:
	adrp	x8, _xmlGenericErrorContext@GOTPAGE
Lloh5:
	ldr	x8, [x8, _xmlGenericErrorContext@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_xmlGenericError
	mov	w0, #-1
LBB0_14:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_xmlGenericErrorContext,4,2     ; @xmlGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed !\n"

l_.str.1:                               ; @.str.1
	.asciz	"realloc failed !\n"

	.no_dead_strip	_xsltAddStackElem
.subsections_via_symbols
