	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsltCompMatchAdd
_xsltCompMatchAdd:                      ## @xsltCompMatchAdd
	.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	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	movl	4(%rsi), %esi
	movq	8(%rbx), %rax
	cmpl	%esi, %ecx
	jl	LBB0_9
## %bb.1:
	shll	$3, %esi
	movq	%rax, %rdi
	callq	_xmlRealloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	shll	4(%rbx)
	movq	%rax, 8(%rbx)
	movl	(%rbx), %ecx
LBB0_9:
	movslq	%ecx, %rcx
	shlq	$6, %rcx
	movq	%r12, 56(%rax,%rcx)
	movq	%r15, 48(%rax,%rcx)
	movq	%r13, 40(%rax,%rcx)
	movq	$0, 32(%rax,%rcx)
	movq	$0, (%rax,%rcx)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_xsltAllocateExtraCtxt
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$6, %rdx
	movq	%rax, 24(%rcx,%rdx)
	movq	16(%r14), %rdi
	callq	_xsltAllocateExtraCtxt
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$6, %rdx
	movq	%rax, 16(%rcx,%rdx)
	movq	16(%r14), %rdi
	callq	_xsltAllocateExtraCtxt
	jmp	LBB0_12
LBB0_11:
	movq	(%r14), %rdi
	callq	_xsltAllocateExtra
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$6, %rdx
	movq	%rax, 24(%rcx,%rdx)
	movq	(%r14), %rdi
	callq	_xsltAllocateExtra
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$6, %rdx
	movq	%rax, 16(%rcx,%rdx)
	movq	(%r14), %rdi
	callq	_xsltAllocateExtra
LBB0_12:
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$6, %rdx
	movq	%rax, 8(%rcx,%rdx)
	movq	_XSLT_OP_PREDICATE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_21
## %bb.13:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	8(%rax), %rdi
	jmp	LBB0_16
LBB0_2:
	movq	_xsltGenericErrorContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_xsltGenericError
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incl	(%rax)
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_xmlFree
LBB0_6:
	movl	$-1, %ebx
	testq	%r13, %r13
	je	LBB0_22
## %bb.7:
	movq	%r13, %rdi
	callq	_xmlFree
	jmp	LBB0_22
LBB0_14:
	xorl	%edi, %edi
LBB0_16:
	callq	_xmlXPathNewContext
	movq	%rax, %r12
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	4(%rax), %eax
	movl	%eax, (%r12)
LBB0_18:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_xmlXPathCtxtCompile
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	shlq	$6, %rdx
	movq	%rax, (%rcx,%rdx)
	movq	%r12, %rdi
	callq	_xmlXPathFreeContext
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	shlq	$6, %rcx
	cmpq	$0, (%rax,%rcx)
	jne	LBB0_21
## %bb.19:
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%edi, %edi
	callq	_xsltTransformError
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	incl	(%rax)
LBB0_21:
	incl	(%rbx)
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xsltGenericErrorContext,4,2    ## @xsltGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsltCompMatchAdd: memory re-allocation failure.\n"

	.comm	_XSLT_OP_PREDICATE,8,3          ## @XSLT_OP_PREDICATE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to compile predicate\n"

	.comm	_XML_XPATH_NOVAR,4,2            ## @XML_XPATH_NOVAR
	.no_dead_strip	_xsltCompMatchAdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsltCompMatchAdd
_xsltCompMatchAdd:                      ; @xsltCompMatchAdd
	.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	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w8, w9, [x1]
	ldr	x0, [x1, #8]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.1:
	lsl	w1, w9, #3
	bl	_xmlRealloc
	cbz	x0, LBB0_9
; %bb.2:
	ldp	w8, w9, [x19]
	lsl	w9, w9, #1
	str	w9, [x19, #4]
	str	x0, [x19, #8]
LBB0_3:
	sxtw	x8, w8
	add	x8, x0, x8, lsl #6
	stp	x21, x22, [x8, #48]
	stp	xzr, x23, [x8, #32]
	str	xzr, [x8]
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_xsltAllocateExtraCtxt
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #6
	str	x0, [x8, #24]
	ldr	x0, [x20, #16]
	bl	_xsltAllocateExtraCtxt
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #6
	str	x0, [x8, #16]
	ldr	x0, [x20, #16]
	bl	_xsltAllocateExtraCtxt
	b	LBB0_6
LBB0_5:
	ldr	x0, [x20]
	bl	_xsltAllocateExtra
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #6
	str	x0, [x8, #24]
	ldr	x0, [x20]
	bl	_xsltAllocateExtra
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #6
	str	x0, [x8, #16]
	ldr	x0, [x20]
	bl	_xsltAllocateExtra
LBB0_6:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #6
	str	x0, [x8, #8]
Lloh0:
	adrp	x8, _XSLT_OP_PREDICATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XSLT_OP_PREDICATE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_21
; %bb.7:
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.8:
	ldr	x0, [x8, #8]
	b	LBB0_16
LBB0_9:
Lloh3:
	adrp	x8, _xsltGenericErrorContext@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xsltGenericErrorContext@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xsltGenericError
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_xmlFree
LBB0_13:
	cbz	x23, LBB0_23
; %bb.14:
	mov	x0, x23
	bl	_xmlFree
	mov	w0, #-1
	b	LBB0_22
LBB0_15:
	mov	x0, #0
LBB0_16:
	bl	_xmlXPathNewContext
	mov	x22, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w8, [x8, #4]
	str	w8, [x22]
LBB0_18:
	mov	x0, x22
	mov	x1, x21
	bl	_xmlXPathCtxtCompile
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	lsl	x9, x9, #6
	str	x0, [x8, x9]
	mov	x0, x22
	bl	_xmlXPathFreeContext
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	lsl	x9, x9, #6
	ldr	x8, [x8, x9]
	cbnz	x8, LBB0_21
; %bb.19:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_xsltTransformError
	ldr	x8, [x20]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_21:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_22:
	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
LBB0_23:
	mov	w0, #-1
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_xsltGenericErrorContext,4,2    ; @xsltGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsltCompMatchAdd: memory re-allocation failure.\n"

	.comm	_XSLT_OP_PREDICATE,8,3          ; @XSLT_OP_PREDICATE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to compile predicate\n"

	.comm	_XML_XPATH_NOVAR,4,2            ; @XML_XPATH_NOVAR
	.no_dead_strip	_xsltCompMatchAdd
.subsections_via_symbols
