	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltElementAvailableFunction   ## -- Begin function xsltElementAvailableFunction
	.p2align	4, 0x90
_xsltElementAvailableFunction:          ## @xsltElementAvailableFunction
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$1, %esi
	jne	LBB0_1
## %bb.3:
	movl	$1, %esi
	callq	_xmlXPathStringFunction
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movq	_XPATH_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_valuePop
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_xsltXPathGetTransformContext
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	%rax, %r12
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.8:
	movl	(%r14), %edi
	leaq	-48(%rbp), %rsi
	callq	_xmlSplitQName2
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	callq	_xmlXPathNsLookup
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r13
	jmp	LBB0_14
LBB0_1:
	callq	_xsltXPathGetTransformContext
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
	movq	_XPATH_INVALID_ARITY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	callq	_xsltXPathGetTransformContext
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
	movq	_XPATH_INVALID_TYPE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%rbx, %rdi
	callq	_xsltXPathGetTransformContext
	leaq	L_.str.2(%rip), %rcx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
	movq	%r14, %rdi
	callq	_xmlXPathFreeObject
	xorl	%edi, %edi
	callq	_xmlXPathNewBoolean
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_valuePush                      ## TAILCALL
LBB0_9:
	movl	(%r14), %edi
	callq	_xmlStrdup
	movq	%rax, %r15
	movq	(%r12), %rsi
	movl	(%rsi), %edi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_xmlSearchNs
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	(%rax), %r13
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_xsltXPathGetTransformContext
	movq	-48(%rbp), %r8
	leaq	L_.str.3(%rip), %rcx
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
LBB0_14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_xsltExtElementLookup
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_xmlXPathNewBoolean
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_valuePush
	movq	%r14, %rdi
	callq	_xmlXPathFreeObject
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_xmlFree
LBB0_16:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_xmlFree
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"element-available() : expects one string arg\n"

	.comm	_XPATH_INVALID_ARITY,4,2        ## @XPATH_INVALID_ARITY
	.comm	_XPATH_STRING,8,3               ## @XPATH_STRING
L_.str.1:                               ## @.str.1
	.asciz	"element-available() : invalid arg expecting a string\n"

	.comm	_XPATH_INVALID_TYPE,4,2         ## @XPATH_INVALID_TYPE
L_.str.2:                               ## @.str.2
	.asciz	"element-available() : internal error tctxt == NULL\n"

L_.str.3:                               ## @.str.3
	.asciz	"element-available() : prefix %s is not bound\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltElementAvailableFunction   ; -- Begin function xsltElementAvailableFunction
	.p2align	2
_xsltElementAvailableFunction:          ; @xsltElementAvailableFunction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	cmp	w1, #1
	b.ne	LBB0_8
; %bb.1:
	bl	_xmlXPathStringFunction
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _XPATH_STRING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XPATH_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_valuePop
	mov	x20, x0
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
	cbz	x0, LBB0_12
; %bb.4:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.5:
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_xmlSplitQName2
	cbz	x0, LBB0_13
; %bb.6:
	mov	x21, x0
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_xmlXPathNsLookup
	cbz	x0, LBB0_15
; %bb.7:
	mov	x2, x0
	b	LBB0_17
LBB0_8:
	bl	_xsltXPathGetTransformContext
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
Lloh5:
	adrp	x8, _XPATH_INVALID_ARITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XPATH_INVALID_ARITY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
Lloh9:
	adrp	x8, _XPATH_INVALID_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XPATH_INVALID_TYPE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
	mov	x0, x20
	bl	_xmlXPathFreeObject
	mov	w0, #0
	bl	_xmlXPathNewBoolean
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_valuePush
LBB0_13:
	ldr	w0, [x20]
	bl	_xmlStrdup
	mov	x21, x0
	ldr	x1, [x22]
	ldr	w0, [x1]
	mov	x2, #0
	bl	_xmlSearchNs
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x2, [x0]
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x3, l_.str.3@PAGE
Lloh14:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
LBB0_16:
	mov	x2, #0
LBB0_17:
	mov	x0, x22
	mov	x1, x21
	bl	_xsltExtElementLookup
	cmp	x0, #0
	cset	w0, ne
	bl	_xmlXPathNewBoolean
	mov	x1, x0
	mov	x0, x19
	bl	_valuePush
	mov	x0, x20
	bl	_xmlXPathFreeObject
	cbz	x21, LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_xmlFree
LBB0_19:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.20:
	bl	_xmlFree
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"element-available() : expects one string arg\n"

	.comm	_XPATH_INVALID_ARITY,4,2        ; @XPATH_INVALID_ARITY
	.comm	_XPATH_STRING,8,3               ; @XPATH_STRING
l_.str.1:                               ; @.str.1
	.asciz	"element-available() : invalid arg expecting a string\n"

	.comm	_XPATH_INVALID_TYPE,4,2         ; @XPATH_INVALID_TYPE
l_.str.2:                               ; @.str.2
	.asciz	"element-available() : internal error tctxt == NULL\n"

l_.str.3:                               ; @.str.3
	.asciz	"element-available() : prefix %s is not bound\n"

.subsections_via_symbols
