	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsltPatPushState
_xsltPatPushState:                      ## @xsltPatPushState
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.3:
	cmpl	4(%rbx), %esi
	jg	LBB0_6
## %bb.4:
	movq	%rdi, %r12
	shll	$5, %esi
	movq	%rax, %rdi
	callq	_xmlRealloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, 8(%rbx)
	shll	(%rbx)
	jmp	LBB0_6
LBB0_2:
	movq	$4, (%rbx)
	movl	$64, %edi
	callq	_xmlMalloc
	movq	%rax, 8(%rbx)
LBB0_6:
	movslq	4(%rbx), %rcx
	leal	1(%rcx), %edx
	shlq	$4, %rcx
	movl	%r15d, (%rax,%rcx)
	movl	%edx, 4(%rbx)
	movq	%r14, 8(%rax,%rcx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_xsltGenericErrorContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_xsltGenericError
	movq	_XSLT_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	$-1, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_xsltGenericErrorContext,4,2    ## @xsltGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsltPatPushState: memory re-allocation failure.\n"

	.comm	_XSLT_STATE_STOPPED,4,2         ## @XSLT_STATE_STOPPED
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_xsltPatPushState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function xsltPatPushState
lCPI0_0:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xsltPatPushState:                      ; @xsltPatPushState
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.2:
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.3:
	lsl	w1, w8, #5
	bl	_xmlRealloc
	cbz	x0, LBB0_8
; %bb.4:
	str	x0, [x20, #8]
	ldr	w8, [x20]
	lsl	w8, w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	mov	w0, #64
	bl	_xmlMalloc
	str	x0, [x20, #8]
LBB0_6:
	mov	w8, #0
	ldrsw	x9, [x20, #4]
	add	x10, x0, x9, lsl #4
	str	w21, [x10]
	add	w9, w9, #1
	str	w9, [x20, #4]
	str	x19, [x10, #8]
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh2:
	adrp	x8, _xsltGenericErrorContext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xsltGenericErrorContext@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xsltGenericError
Lloh7:
	adrp	x8, _XSLT_STATE_STOPPED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XSLT_STATE_STOPPED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	w8, #-1
	b	LBB0_7
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_xsltGenericErrorContext,4,2    ; @xsltGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsltPatPushState: memory re-allocation failure.\n"

	.comm	_XSLT_STATE_STOPPED,4,2         ; @XSLT_STATE_STOPPED
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_xsltPatPushState
.subsections_via_symbols
