	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltParseStylesheetProcess     ## -- Begin function xsltParseStylesheetProcess
	.p2align	4, 0x90
_xsltParseStylesheetProcess:            ## @xsltParseStylesheetProcess
	.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	%rsi, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_xsltInitGlobals
	testq	%r12, %r12
	je	LBB0_21
## %bb.1:
	testq	%r14, %r14
	je	LBB0_21
## %bb.2:
	movq	%r14, %rdi
	callq	_xmlDocGetRootElement
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_XSLT_ELEM
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_IS_XSLT_NAME
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_IS_XSLT_NAME
	testq	%rax, %rax
	je	LBB0_16
LBB0_6:
	movl	$0, (%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_xsltParseStylesheetExcludePrefix
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_xsltParseStylesheetExtPrefix
	cmpl	$0, 20(%r12)
	jne	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_xsltPreprocessStylesheet
LBB0_8:
	cmpl	$0, (%r12)
	je	LBB0_17
## %bb.9:
	movq	_XSLT_NAMESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_xmlGetNsProp
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	callq	_xmlStrEqual
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xmlStrEqual
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.7(%rip), %rcx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_xsltTransformError
	movl	$1, 4(%r12)
	incl	16(%r12)
LBB0_13:
	movq	%rbx, %rdi
	callq	_xmlFree
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_xsltNewTemplate
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	%rax, %r15
	movq	8(%r12), %rax
	movq	%rax, 24(%r15)
	movq	%r15, 8(%r12)
	leaq	L_.str.8(%rip), %rdi
	callq	_xmlStrdup
	movl	%eax, 16(%r15)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_xsltParseTemplateContent
	movq	%r14, 8(%r15)
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_xsltAddTemplate
	movl	$1, (%r12)
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	jmp	LBB0_20
LBB0_16:
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_xsltParseStylesheetExcludePrefix
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_xsltParseStylesheetExtPrefix
	movl	$1, (%r12)
	cmpl	$0, 20(%r12)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_17:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_xsltParseStylesheetTop
LBB0_18:
	movq	%r12, %rbx
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.4(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
LBB0_20:
	callq	_xsltTransformError
LBB0_21:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsltParseStylesheetProcess : empty stylesheet\n"

L_.str.1:                               ## @.str.1
	.asciz	"stylesheet"

L_.str.2:                               ## @.str.2
	.asciz	"transform"

L_.str.3:                               ## @.str.3
	.asciz	"version"

	.comm	_XSLT_NAMESPACE,4,2             ## @XSLT_NAMESPACE
L_.str.4:                               ## @.str.4
	.asciz	"xsltParseStylesheetProcess : document is not a stylesheet\n"

L_.str.5:                               ## @.str.5
	.asciz	"1.0"

L_.str.6:                               ## @.str.6
	.asciz	"1.1"

L_.str.7:                               ## @.str.7
	.asciz	"xsl:version: only 1.1 features are supported\n"

L_.str.8:                               ## @.str.8
	.asciz	"/"

	.comm	_xsltGenericDebugContext,4,2    ## @xsltGenericDebugContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltParseStylesheetProcess     ; -- Begin function xsltParseStylesheetProcess
	.p2align	2
_xsltParseStylesheetProcess:            ; @xsltParseStylesheetProcess
	.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	x20, x1
	mov	x19, x0
	bl	_xsltInitGlobals
	mov	x0, #0
	cbz	x19, LBB0_21
; %bb.1:
	cbz	x20, LBB0_21
; %bb.2:
	mov	x0, x20
	bl	_xmlDocGetRootElement
	cbz	x0, LBB0_15
; %bb.3:
	mov	x21, x0
	bl	_IS_XSLT_ELEM
	cbz	x0, LBB0_16
; %bb.4:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_IS_XSLT_NAME
	cbnz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_IS_XSLT_NAME
	cbz	x0, LBB0_16
LBB0_6:
	str	wzr, [x19]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_xsltParseStylesheetExcludePrefix
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_xsltParseStylesheetExtPrefix
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_xsltPreprocessStylesheet
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.9:
Lloh4:
	adrp	x8, _XSLT_NAMESPACE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XSLT_NAMESPACE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_xmlGetNsProp
	cbz	x0, LBB0_19
; %bb.10:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_xmlStrEqual
	cbnz	w0, LBB0_13
; %bb.11:
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_xmlStrEqual
	cbnz	w0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x3, l_.str.7@PAGE
Lloh14:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, #0
	mov	x1, x19
	mov	x2, x21
	bl	_xsltTransformError
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_13:
	mov	x0, x22
	bl	_xmlFree
	bl	_xsltNewTemplate
	cbz	x0, LBB0_21
; %bb.14:
	mov	x21, x0
	ldr	x8, [x19, #8]
	str	x8, [x0, #24]
	str	x0, [x19, #8]
Lloh15:
	adrp	x0, l_.str.8@PAGE
Lloh16:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_xmlStrdup
	str	w0, [x21, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_xsltParseTemplateContent
	str	x20, [x21, #8]
	ldr	w8, [x20]
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_xsltAddTemplate
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_18
LBB0_15:
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	b	LBB0_20
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_xsltParseStylesheetExcludePrefix
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_xsltParseStylesheetExtPrefix
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_8
	b	LBB0_7
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	bl	_xsltParseStylesheetTop
LBB0_18:
	mov	x0, x19
	b	LBB0_21
LBB0_19:
Lloh19:
	adrp	x3, l_.str.4@PAGE
Lloh20:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	x2, x21
LBB0_20:
	bl	_xsltTransformError
	mov	x0, #0
LBB0_21:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsltParseStylesheetProcess : empty stylesheet\n"

l_.str.1:                               ; @.str.1
	.asciz	"stylesheet"

l_.str.2:                               ; @.str.2
	.asciz	"transform"

l_.str.3:                               ; @.str.3
	.asciz	"version"

	.comm	_XSLT_NAMESPACE,4,2             ; @XSLT_NAMESPACE
l_.str.4:                               ; @.str.4
	.asciz	"xsltParseStylesheetProcess : document is not a stylesheet\n"

l_.str.5:                               ; @.str.5
	.asciz	"1.0"

l_.str.6:                               ; @.str.6
	.asciz	"1.1"

l_.str.7:                               ; @.str.7
	.asciz	"xsl:version: only 1.1 features are supported\n"

l_.str.8:                               ; @.str.8
	.asciz	"/"

	.comm	_xsltGenericDebugContext,4,2    ; @xsltGenericDebugContext
.subsections_via_symbols
