	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltParseStylesheetImport      ## -- Begin function xsltParseStylesheetImport
	.p2align	4, 0x90
_xsltParseStylesheetImport:             ## @xsltParseStylesheetImport
	.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
	subq	$24, %rsp
	.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_26
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.2:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_xmlGetNsProp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	32(%r14), %rdi
	movq	%r13, %rsi
	callq	_xmlNodeGetBase
	movq	%rbx, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_xmlBuildURI
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_27
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_xmlStrEqual
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_12:
	xorl	%eax, %eax
	callq	_xsltGetDefaultSecurityPrefs
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_xsltCheckRead
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:
	movl	24(%r14), %esi
	movq	_XSLT_PARSE_OPTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XSLT_LOAD_STYLESHEET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_xsltDocDefaultLoader
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_xsltParseStylesheetImportedDoc
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.18:
	movq	8(%r14), %rcx
	movq	%rcx, 16(%rax)
	movq	%rax, 8(%r14)
	xorl	%r15d, %r15d
	cmpq	$0, (%r14)
	jne	LBB0_22
## %bb.19:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_xsltFixImportedCompSteps
	jmp	LBB0_22
LBB0_3:
	leaq	L_.str.1(%rip), %rcx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_xsltTransformError
	jmp	LBB0_26
LBB0_27:
	leaq	L_.str.2(%rip), %rcx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_xsltTransformError
LBB0_21:
	movl	$-1, %r15d
	jmp	LBB0_22
LBB0_8:
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_9
LBB0_16:
	leaq	L_.str.5(%rip), %rcx
LBB0_9:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	jmp	LBB0_10
LBB0_14:
	leaq	L_.str.4(%rip), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_10:
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_xsltTransformError
	movl	$-1, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_xmlFree
	testq	%r14, %r14
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_xmlFree
LBB0_24:
	testq	%r12, %r12
	je	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	callq	_xmlFree
LBB0_26:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r15, %rdi
	callq	_xmlFreeDoc
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"href"

L_.str.1:                               ## @.str.1
	.asciz	"xsl:import : missing href attribute\n"

L_.str.2:                               ## @.str.2
	.asciz	"xsl:import : invalid URI reference %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"xsl:import : recursion detected on imported URL %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"xsl:import: read rights for %s denied\n"

	.comm	_XSLT_PARSE_OPTIONS,4,2         ## @XSLT_PARSE_OPTIONS
	.comm	_XSLT_LOAD_STYLESHEET,4,2       ## @XSLT_LOAD_STYLESHEET
L_.str.5:                               ## @.str.5
	.asciz	"xsl:import : unable to load %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltParseStylesheetImport      ; -- Begin function xsltParseStylesheetImport
	.p2align	2
_xsltParseStylesheetImport:             ; @xsltParseStylesheetImport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w24, #-1
	cbz	x0, LBB0_25
; %bb.1:
	mov	x23, x1
	cbz	x1, LBB0_25
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_xmlGetNsProp
	cbz	x0, LBB0_14
; %bb.3:
	mov	x19, x0
	ldr	x0, [x22, #32]
	mov	x1, x23
	bl	_xmlNodeGetBase
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_xmlBuildURI
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.4:
	mov	x24, x22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8]
	mov	x1, x21
	bl	_xmlStrEqual
	cbnz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [x24]
	cbnz	x24, LBB0_5
LBB0_8:
	bl	_xsltGetDefaultSecurityPrefs
	cbz	x0, LBB0_10
; %bb.9:
	mov	x1, #0
	mov	x2, x21
	bl	_xsltCheckRead
	cbz	w0, LBB0_26
LBB0_10:
	ldr	w1, [x22, #24]
Lloh2:
	adrp	x8, _XSLT_PARSE_OPTIONS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XSLT_PARSE_OPTIONS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _XSLT_LOAD_STYLESHEET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XSLT_LOAD_STYLESHEET@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, x22
	bl	_xsltDocDefaultLoader
	cbz	x0, LBB0_17
; %bb.11:
	mov	x24, x0
	mov	x1, x22
	bl	_xsltParseStylesheetImportedDoc
	cbz	x0, LBB0_27
; %bb.12:
	mov	x1, x0
	ldp	x9, x8, [x22]
	str	x8, [x0, #16]
	str	x0, [x22, #8]
	cbz	x9, LBB0_28
; %bb.13:
	mov	w24, #0
	b	LBB0_21
LBB0_14:
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_xsltTransformError
	mov	w24, #-1
	b	LBB0_25
LBB0_15:
	str	x19, [sp]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_16:
	str	x21, [sp]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, #0
	b	LBB0_18
LBB0_17:
	str	x21, [sp]
Lloh14:
	adrp	x3, l_.str.5@PAGE
Lloh15:
	add	x3, x3, l_.str.5@PAGEOFF
LBB0_18:
	mov	x1, x22
	mov	x2, x23
LBB0_19:
	bl	_xsltTransformError
LBB0_20:
	mov	w24, #-1
LBB0_21:
	mov	x0, x19
	bl	_xmlFree
	cbz	x20, LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_xmlFree
LBB0_23:
	cbz	x21, LBB0_25
; %bb.24:
	mov	x0, x21
	bl	_xmlFree
LBB0_25:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_26:
	str	x21, [sp]
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	b	LBB0_19
LBB0_27:
	mov	x0, x24
	bl	_xmlFreeDoc
	b	LBB0_20
LBB0_28:
	mov	x0, x22
	bl	_xsltFixImportedCompSteps
	mov	w24, #0
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"href"

l_.str.1:                               ; @.str.1
	.asciz	"xsl:import : missing href attribute\n"

l_.str.2:                               ; @.str.2
	.asciz	"xsl:import : invalid URI reference %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"xsl:import : recursion detected on imported URL %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"xsl:import: read rights for %s denied\n"

	.comm	_XSLT_PARSE_OPTIONS,4,2         ; @XSLT_PARSE_OPTIONS
	.comm	_XSLT_LOAD_STYLESHEET,4,2       ; @XSLT_LOAD_STYLESHEET
l_.str.5:                               ; @.str.5
	.asciz	"xsl:import : unable to load %s\n"

.subsections_via_symbols
