	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltParseStylesheetImportedDoc ## -- Begin function xsltParseStylesheetImportedDoc
	.p2align	4, 0x90
_xsltParseStylesheetImportedDoc:        ## @xsltParseStylesheetImportedDoc
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_xsltNewStylesheet
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 48(%rax)
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	32(%rbx), %rdi
	callq	_xmlDictFree
	movq	8(%r14), %rdi
	movq	%rdi, 32(%rbx)
	callq	_xmlDictReference
LBB0_4:
	movq	%rbx, %rdi
	callq	_xsltGatherNamespaces
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xsltParseStylesheetProcess
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.7:
	movq	$0, 8(%rbx)
	testq	%r15, %r15
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_xmlDocGetRootElement
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xsltCleanupStylesheetTree
	jmp	LBB0_9
LBB0_5:
	movq	$0, 8(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_xsltFreeStylesheet
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xsltGenericDebugContext,4,2    ## @xsltGenericDebugContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltParseStylesheetImportedDoc ; -- Begin function xsltParseStylesheetImportedDoc
	.p2align	2
_xsltParseStylesheetImportedDoc:        ; @xsltParseStylesheetImportedDoc
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	bl	_xsltNewStylesheet
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.2:
	str	x21, [x19, #48]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x19, #32]
	bl	_xmlDictFree
	ldr	x0, [x20, #8]
	str	x0, [x19, #32]
	bl	_xmlDictReference
LBB0_4:
	mov	x0, x19
	bl	_xsltGatherNamespaces
	str	x20, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_xsltParseStylesheetProcess
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.6:
	str	xzr, [x19, #8]
	cbnz	x21, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_xmlDocGetRootElement
	mov	x1, x0
	mov	x0, x20
	bl	_xsltCleanupStylesheetTree
	b	LBB0_9
LBB0_8:
	str	xzr, [x19, #8]
LBB0_9:
	mov	x0, x19
	bl	_xsltFreeStylesheet
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_xsltGenericDebugContext,4,2    ; @xsltGenericDebugContext
.subsections_via_symbols
