	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsltDocumentFunctionLoadDocument
_xsltDocumentFunctionLoadDocument:      ## @xsltDocumentFunctionLoadDocument
	.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
	movq	%rsi, %r12
	movl	%edi, %r15d
	callq	_xsltXPathGetTransformContext
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_xmlParseURI
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_xmlSaveUri
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_xsltLoadDocument
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	callq	_xmlFree
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rcx
	xorl	%edi, %edi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
LBB0_2:
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
	xorl	%edi, %edi
LBB0_16:
	callq	_xmlXPathNewNodeSet
	movl	%r15d, %edi
	movq	%rax, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_valuePush                      ## TAILCALL
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_xsltLoadDocument
	movq	%rax, %r14
LBB0_8:
	movq	%rbx, %rdi
	callq	_xmlFreeURI
	testq	%r14, %r14
	jne	LBB0_14
## %bb.9:
	testq	%r12, %r12
	je	LBB0_13
## %bb.10:
	cmpb	$35, (%r12)
	je	LBB0_13
## %bb.11:
	movq	(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_xmlStrEqual
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:
	movq	(%r13), %r14
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.19:
	xorl	%edi, %edi
	callq	_xmlXPathNewNodeSet
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_valuePush
	movq	%rbx, %rdi
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xmlFree                        ## TAILCALL
LBB0_15:
	movq	(%r14), %rdi
	jmp	LBB0_16
LBB0_17:
	xorl	%edi, %edi
	callq	_xmlXPathNewNodeSet
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_valuePush
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	jne	LBB0_18
## %bb.20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"document() : internal error tctxt == NULL\n"

L_.str.1:                               ## @.str.1
	.asciz	"document() : failed to parse URI\n"

	.no_dead_strip	_xsltDocumentFunctionLoadDocument
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsltDocumentFunctionLoadDocument
_xsltDocumentFunctionLoadDocument:      ; @xsltDocumentFunctionLoadDocument
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	bl	_xsltXPathGetTransformContext
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	bl	_xmlParseURI
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.3:
	str	xzr, [x23]
	mov	x0, x23
	bl	_xmlSaveUri
	mov	x25, x0
	mov	x0, x21
	mov	x1, x25
	bl	_xsltLoadDocument
	mov	x24, x0
	mov	x0, x25
	bl	_xmlFree
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
LBB0_6:
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
	mov	x0, #0
LBB0_7:
	bl	_xmlXPathNewNodeSet
	mov	x1, x0
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_valuePush
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_xsltLoadDocument
	mov	x24, x0
LBB0_9:
	mov	x0, x23
	bl	_xmlFreeURI
	cbz	x24, LBB0_13
; %bb.10:
	cbz	x20, LBB0_18
LBB0_11:
	mov	x0, #0
	bl	_xmlXPathNewNodeSet
	mov	x1, x0
	mov	x0, x19
	bl	_valuePush
LBB0_12:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_xmlFree
LBB0_13:
	cbz	x22, LBB0_17
; %bb.14:
	ldrb	w8, [x22]
	cmp	w8, #35
	b.eq	LBB0_17
; %bb.15:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_xmlStrEqual
	cbz	x0, LBB0_19
LBB0_17:
	ldr	x24, [x21]
	cbnz	x20, LBB0_11
LBB0_18:
	ldr	x0, [x24]
	b	LBB0_7
LBB0_19:
	mov	x0, #0
	bl	_xmlXPathNewNodeSet
	mov	x1, x0
	mov	x0, x19
	bl	_valuePush
	cbnz	x20, LBB0_12
; %bb.20:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"document() : internal error tctxt == NULL\n"

l_.str.1:                               ; @.str.1
	.asciz	"document() : failed to parse URI\n"

	.no_dead_strip	_xsltDocumentFunctionLoadDocument
.subsections_via_symbols
