	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltFunctionAvailableFunction  ## -- Begin function xsltFunctionAvailableFunction
	.p2align	4, 0x90
_xsltFunctionAvailableFunction:         ## @xsltFunctionAvailableFunction
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_xmlSplitQName2
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	-40(%rbp), %rsi
	callq	_xmlXPathNsLookup
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %r12
	jmp	LBB0_11
LBB0_1:
	callq	_xsltXPathGetTransformContext
	leaq	L_.str(%rip), %rcx
	movl	%eax, %edi
	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
	movl	%eax, %edi
	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_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %edi
	callq	_xmlStrdup
	movq	%rax, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_xsltXPathGetTransformContext
	movq	-40(%rbp), %r8
	leaq	L_.str.2(%rip), %rcx
	xorl	%r12d, %r12d
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
LBB0_11:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_xmlXPathFunctionLookupNS
	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_13
## %bb.12:
	movq	%r15, %rdi
	callq	_xmlFree
LBB0_13:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_xmlFree
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function-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	"function-available() : invalid arg expecting a string\n"

	.comm	_XPATH_INVALID_TYPE,4,2         ## @XPATH_INVALID_TYPE
L_.str.2:                               ## @.str.2
	.asciz	"function-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	_xsltFunctionAvailableFunction  ; -- Begin function xsltFunctionAvailableFunction
	.p2align	2
_xsltFunctionAvailableFunction:         ; @xsltFunctionAvailableFunction
	.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_6
; %bb.1:
	bl	_xmlXPathStringFunction
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %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_7
; %bb.3:
	mov	x0, x19
	bl	_valuePop
	mov	x20, x0
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_xmlSplitQName2
	cbz	x0, LBB0_10
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_xmlXPathNsLookup
	cbz	x0, LBB0_11
; %bb.5:
	mov	x2, x0
	b	LBB0_13
LBB0_6:
	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_8
LBB0_7:
	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_8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_9:
	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_10:
	ldr	w0, [x20]
	bl	_xmlStrdup
	mov	x21, x0
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
LBB0_12:
	mov	x2, #0
LBB0_13:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_xmlXPathFunctionLookupNS
	cmp	x0, #0
	cset	w0, ne
	bl	_xmlXPathNewBoolean
	mov	x1, x0
	mov	x0, x19
	bl	_valuePush
	mov	x0, x20
	bl	_xmlXPathFreeObject
	cbz	x21, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_xmlFree
LBB0_15:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.16:
	bl	_xmlFree
	b	LBB0_9
	.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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function-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	"function-available() : invalid arg expecting a string\n"

	.comm	_XPATH_INVALID_TYPE,4,2         ; @XPATH_INVALID_TYPE
l_.str.2:                               ; @.str.2
	.asciz	"function-available() : prefix %s is not bound\n"

.subsections_via_symbols
