	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltAllocateExtraCtxt          ## -- Begin function xsltAllocateExtraCtxt
	.p2align	4, 0x90
_xsltAllocateExtraCtxt:                 ## @xsltAllocateExtraCtxt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	movl	4(%rdi), %eax
	cmpl	%eax, %ecx
	jl	LBB0_10
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.5:
	leal	100(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	8(%r14), %rdi
	leal	400(,%rax,4), %esi
	callq	_xmlRealloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, 8(%r14)
	movslq	(%r14), %rcx
	movl	4(%r14), %edx
	cmpl	%edx, %ecx
	jge	LBB0_10
## %bb.8:
	leaq	(%rcx,%rcx,2), %rsi
	leaq	(%rax,%rsi,8), %rdi
	notl	%ecx
	addl	%ecx, %edx
	leaq	(%rdx,%rdx,2), %rax
	leaq	24(,%rax,8), %rsi
	jmp	LBB0_9
LBB0_2:
	movl	$20, 4(%r14)
	movl	$80, %edi
	callq	_xmlMalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	4(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.4:
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	movq	%rax, %rdi
LBB0_9:
	callq	___bzero
LBB0_10:
	movl	(%r14), %ebx
	leal	1(%rbx), %eax
	movl	%eax, (%r14)
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_xsltTransformError
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsltAllocateExtraCtxt: out of memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltAllocateExtraCtxt          ; -- Begin function xsltAllocateExtraCtxt
	.p2align	2
_xsltAllocateExtraCtxt:                 ; @xsltAllocateExtraCtxt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w9, w8, [x0]
	cmp	w9, w8
	b.lt	LBB0_9
; %bb.1:
	cbz	w9, LBB0_5
; %bb.2:
	add	w8, w8, #100
	str	w8, [x19, #4]
	ldr	x0, [x19, #8]
	lsl	w1, w8, #2
	bl	_xmlRealloc
	cbz	x0, LBB0_11
; %bb.3:
	str	x0, [x19, #8]
	ldp	w8, w9, [x19]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.4:
	mov	w10, #24
	madd	x0, x8, x10, x0
	mvn	w8, w8
	add	w8, w9, w8
	umull	x8, w8, w10
	add	x1, x8, #24
	b	LBB0_8
LBB0_5:
	mov	w8, #20
	str	w8, [x19, #4]
	mov	w0, #80
	bl	_xmlMalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	add	x8, x8, x8, lsl #1
	lsl	x1, x8, #3
LBB0_8:
	bl	_bzero
LBB0_9:
	ldr	w0, [x19]
	add	w8, w0, #1
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsltAllocateExtraCtxt: out of memory\n"

.subsections_via_symbols
