	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltLoadDocument               ## -- Begin function xsltLoadDocument
	.p2align	4, 0x90
_xsltLoadDocument:                      ## @xsltLoadDocument
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_xsltCheckRead
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	24(%r14), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rsi
	callq	_xmlStrEqual
	testq	%rax, %rax
	je	LBB0_11
	jmp	LBB0_5
LBB0_12:
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	movq	_XSLT_LOAD_DOCUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_xsltDocDefaultLoader
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	cmpq	$0, (%r14)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_xsltTransformError
LBB0_16:
	movq	%r14, %rdi
	callq	_xsltNeedElemSpaceHandling
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_xmlDocGetRootElement
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xsltApplyStripSpaces
LBB0_18:
	movq	8(%r14), %rax
	movq	_XSLT_DEBUG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_xmlXPathOrderDocElems
LBB0_20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xsltNewDocument                ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_xsltTransformError
	jmp	LBB0_5
LBB0_13:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsltLoadDocument: read rights for %s denied\n"

	.comm	_XSLT_LOAD_DOCUMENT,4,2         ## @XSLT_LOAD_DOCUMENT
L_.str.1:                               ## @.str.1
	.asciz	"xsltLoadDocument(%s) : XInclude processing not compiled in\n"

	.comm	_XSLT_DEBUG_NONE,8,3            ## @XSLT_DEBUG_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltLoadDocument               ; -- Begin function xsltLoadDocument
	.p2align	2
_xsltLoadDocument:                      ; @xsltLoadDocument
	.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	x21, #0
	cbz	x0, LBB0_18
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_18
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x19
	mov	x2, x20
	bl	_xsltCheckRead
	cbz	w0, LBB0_17
LBB0_4:
	ldr	x21, [x19, #24]
	cbnz	x21, LBB0_14
LBB0_5:
	ldp	w2, w1, [x19, #16]
Lloh0:
	adrp	x8, _XSLT_LOAD_DOCUMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XSLT_LOAD_DOCUMENT@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_xsltDocDefaultLoader
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x4, x20
	bl	_xsltTransformError
LBB0_8:
	mov	x0, x19
	bl	_xsltNeedElemSpaceHandling
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_xmlDocGetRootElement
	mov	x1, x0
	mov	x0, x19
	bl	_xsltApplyStripSpaces
LBB0_10:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _XSLT_DEBUG_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XSLT_DEBUG_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_xmlXPathOrderDocElems
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	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
	b	_xsltNewDocument
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x21, [x21]
	cbz	x21, LBB0_5
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x20
	bl	_xmlStrEqual
	cbz	x0, LBB0_13
	b	LBB0_18
LBB0_17:
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x4, x20
	bl	_xsltTransformError
	mov	x21, #0
LBB0_18:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsltLoadDocument: read rights for %s denied\n"

	.comm	_XSLT_LOAD_DOCUMENT,4,2         ; @XSLT_LOAD_DOCUMENT
l_.str.1:                               ; @.str.1
	.asciz	"xsltLoadDocument(%s) : XInclude processing not compiled in\n"

	.comm	_XSLT_DEBUG_NONE,8,3            ; @XSLT_DEBUG_NONE
.subsections_via_symbols
