	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltFormatNumberFunction       ## -- Begin function xsltFormatNumberFunction
	.p2align	4, 0x90
_xsltFormatNumberFunction:              ## @xsltFormatNumberFunction
	.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
	movl	%esi, %ebx
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	callq	_xsltXPathGetTransformContext
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.2:
	movq	8(%r14), %r13
	testq	%r13, %r13
	je	LBB0_22
## %bb.3:
	movq	8(%r13), %r15
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.5:
	cmpl	$3, %ebx
	jne	LBB0_17
## %bb.6:
	movl	%r12d, %edi
	callq	_valuePop
	movl	4(%r13), %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_xsltSplitQName
	movq	%rax, %rbx
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:
	movq	(%r14), %rsi
	movl	(%rsi), %edi
	callq	_xmlSearchNs
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%rax), %rsi
	jmp	LBB0_11
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_17:
	movq	_XPATH_INVALID_ARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XP_ERROR
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_19
	jmp	LBB0_21
LBB0_7:
	xorl	%esi, %esi
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_xsltDecimalFormatGetByQName
	movq	%rax, %r15
LBB0_13:
	testq	%r15, %r15
	je	LBB0_15
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	movl	-48(%rbp), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_xsltTransformError
	incl	(%r13)
	testq	%r15, %r15
	jne	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %r8d
	leaq	L_.str.1(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %r14
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_xsltTransformError
LBB0_16:
	movl	%r12d, %edi
	callq	_valuePop
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	_valuePop
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_21
LBB0_19:
	movl	4(%r13), %esi
	movl	(%rbx), %edx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_xsltFormatNumberConversion
	movq	_XPATH_EXPRESSION_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rdi
	callq	_xmlXPathNewString
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_valuePush
	movq	-64(%rbp), %rdi
	callq	_xmlFree
LBB0_21:
	movq	%rbx, %rdi
	callq	_xmlXPathFreeObject
	movq	%r13, %rdi
	callq	_xmlXPathFreeObject
	movq	%r14, %rdi
	callq	_xmlXPathFreeObject
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAST_TO_STRING,4,2             ## @CAST_TO_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format-number : No namespace found for QName '%s:%s'\n"

L_.str.1:                               ## @.str.1
	.asciz	"format-number() : undeclared decimal format '%s'\n"

	.comm	_CAST_TO_NUMBER,4,2             ## @CAST_TO_NUMBER
	.comm	_XPATH_INVALID_ARITY,4,2        ## @XPATH_INVALID_ARITY
	.comm	_XPATH_EXPRESSION_OK,8,3        ## @XPATH_EXPRESSION_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltFormatNumberFunction       ; -- Begin function xsltFormatNumberFunction
	.p2align	2
_xsltFormatNumberFunction:              ; @xsltFormatNumberFunction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #16]
	bl	_xsltXPathGetTransformContext
	cbz	x0, LBB0_19
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.2:
	ldr	x23, [x22, #8]
	cbz	x23, LBB0_19
; %bb.3:
	ldr	x21, [x23, #8]
	cmp	w20, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, #3
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_valuePop
	mov	x20, x0
	ldr	w0, [x23, #4]
	ldr	w1, [x20, #4]
	add	x2, sp, #16
	bl	_xsltSplitQName
	mov	x24, x0
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_10
; %bb.6:
	ldr	x1, [x22]
	ldr	w0, [x1]
	bl	_xmlSearchNs
	cbz	x0, LBB0_20
; %bb.7:
	ldr	x1, [x0]
	b	LBB0_11
LBB0_8:
	mov	x20, #0
	b	LBB0_15
LBB0_9:
Lloh0:
	adrp	x8, _XPATH_INVALID_ARITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPATH_INVALID_ARITY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_XP_ERROR
	mov	x20, #0
	mov	x22, #0
	mov	x23, #0
	cbnz	x21, LBB0_16
	b	LBB0_18
LBB0_10:
	mov	x1, #0
LBB0_11:
	cbz	x24, LBB0_13
; %bb.12:
	mov	x0, x23
	mov	x2, x24
	bl	_xsltDecimalFormatGetByQName
	mov	x21, x0
LBB0_13:
	cbnz	x21, LBB0_15
LBB0_14:
	ldr	w4, [x20, #4]
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
LBB0_15:
	mov	x0, x19
	bl	_valuePop
	mov	x22, x0
	mov	x0, x19
	bl	_valuePop
	mov	x23, x0
	cbz	x21, LBB0_18
LBB0_16:
	ldr	w1, [x22, #4]
	ldr	w2, [x23]
	add	x3, sp, #24
	mov	x0, x21
	bl	_xsltFormatNumberConversion
Lloh5:
	adrp	x8, _XPATH_EXPRESSION_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XPATH_EXPRESSION_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
	ldr	x0, [sp, #24]
	bl	_xmlXPathNewString
	mov	x1, x0
	mov	x0, x19
	bl	_valuePush
	ldr	x0, [sp, #24]
	bl	_xmlFree
LBB0_18:
	mov	x0, x23
	bl	_xmlXPathFreeObject
	mov	x0, x22
	bl	_xmlXPathFreeObject
	mov	x0, x20
	bl	_xmlXPathFreeObject
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	ldr	w4, [sp, #16]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	str	x24, [sp]
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	cbnz	x21, LBB0_15
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CAST_TO_STRING,4,2             ; @CAST_TO_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format-number : No namespace found for QName '%s:%s'\n"

l_.str.1:                               ; @.str.1
	.asciz	"format-number() : undeclared decimal format '%s'\n"

	.comm	_CAST_TO_NUMBER,4,2             ; @CAST_TO_NUMBER
	.comm	_XPATH_INVALID_ARITY,4,2        ; @XPATH_INVALID_ARITY
	.comm	_XPATH_EXPRESSION_OK,8,3        ; @XPATH_EXPRESSION_OK
.subsections_via_symbols
