	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltComputeSortResult          ## -- Begin function xsltComputeSortResult
	.p2align	4, 0x90
_xsltComputeSortResult:                 ## @xsltComputeSortResult
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	(%rsi), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	cmpq	$0, 48(%r13)
	je	LBB0_8
## %bb.2:
	cmpq	$0, 24(%r13)
	je	LBB0_8
## %bb.3:
	movq	%rdi, %r12
	movq	32(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.11:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	(,%rax,8), %edi
	callq	_xmlMalloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.12:
	movups	8(%r12), %xmm0
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
	movq	(%r12), %rsi
	movl	(%rsi), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	4(%rsi), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	8(%rsi), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	16(%rsi), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_XSLT_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax,%r14,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r12), %rsi
	cmpq	%r15, %rcx
	je	LBB0_27
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r14
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%r12)
	movl	%ecx, 4(%rsi)
	incq	%r15
	movl	%r15d, (%rsi)
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	%rax, 16(%r12)
	movq	%rax, 24(%rsi)
	movq	32(%r13), %rax
	movq	%rax, 16(%rsi)
	movl	(%r13), %eax
	movl	%eax, 8(%rsi)
	movq	24(%r13), %rdi
	callq	_xmlXPathCompiledEval
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_XPATH_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_xmlXPathConvertString
	movq	%rax, %rbx
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 16(%r13)
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_xmlXPathConvertNumber
	movq	%rax, %rbx
	cmpq	$0, 16(%r13)
	movl	%r14d, 8(%rax)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rbx), %rax
	movq	_XPATH_NUMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_25
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r14d, 8(%rbx)
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	_XPATH_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rbx), %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	callq	_xsltStrxfrm
	movq	%rax, 16(%rbx)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_xmlFree
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax,%r14,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax,%r14,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_6:
	movq	_xsltGenericErrorContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_7:
	callq	_xsltGenericError
LBB0_8:
	xorl	%eax, %eax
LBB0_28:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movaps	-128(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, 8(%r12)
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rsi)
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsi)
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rsi)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rsi)
	jmp	LBB0_28
LBB0_29:
	movq	_xsltGenericErrorContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_xsltGenericErrorContext,4,2    ## @xsltGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xsl:sort : compilation failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"xsltComputeSortResult: memory allocation failure\n"

	.comm	_XPATH_STRING,8,3               ## @XPATH_STRING
	.comm	_XPATH_NUMBER,8,3               ## @XPATH_NUMBER
	.comm	_XSLT_STATE_STOPPED,4,2         ## @XSLT_STATE_STOPPED
	.comm	_xsltGenericDebugContext,4,2    ## @xsltGenericDebugContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltComputeSortResult          ; -- Begin function xsltComputeSortResult
	.p2align	2
_xsltComputeSortResult:                 ; @xsltComputeSortResult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	ldr	x24, [x1]
	cbz	x24, LBB0_21
; %bb.1:
	ldr	x8, [x24, #48]
	cbz	x8, LBB0_22
; %bb.2:
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_22
; %bb.3:
	mov	x19, x0
	ldr	x25, [x0, #32]
	cbz	x25, LBB0_22
; %bb.4:
	ldr	w26, [x25]
	cmp	w26, #2
	b.lt	LBB0_22
; %bb.5:
	mov	x20, x1
	lsl	w0, w26, #3
	bl	_xmlMalloc
	mov	x21, x0
	cbz	x0, LBB0_25
; %bb.6:
	mov	x27, #0
	ldr	x9, [x19, #16]
	ldp	x1, x8, [x19]
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	ldr	d8, [x1]
	ldr	w8, [x1, #8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x1, #16]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x23, _XSLT_STATE_STOPPED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XSLT_STATE_STOPPED@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	str	w8, [x19, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	xzr, [x21, x27, lsl #3]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x19]
	mov	x27, x28
	cmp	x26, x28
	b.eq	LBB0_24
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x20, [x19, #8]
	add	x28, x27, #1
	stp	w28, w26, [x1]
	ldr	x8, [x25, #8]
	ldr	x8, [x8, x27, lsl #3]
	str	x8, [x19, #16]
	ldp	x0, x9, [x24, #24]
	stp	x9, x8, [x1, #16]
	ldr	w8, [x24]
	str	w8, [x1, #8]
	bl	_xmlXPathCompiledEval
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _XPATH_STRING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XPATH_STRING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_xmlXPathConvertString
	mov	x22, x0
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_xmlXPathConvertNumber
	mov	x22, x0
	ldr	x8, [x24, #16]
	str	w27, [x0, #8]
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _XPATH_NUMBER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XPATH_NUMBER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	str	w27, [x22, #8]
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _XPATH_STRING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XPATH_STRING@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x23, [x22, #16]
	mov	x1, x23
	bl	_xsltStrxfrm
	str	x0, [x22, #16]
	mov	x0, x23
Lloh11:
	adrp	x23, _XSLT_STATE_STOPPED@GOTPAGE
Lloh12:
	ldr	x23, [x23, _XSLT_STATE_STOPPED@GOTPAGEOFF]
	bl	_xmlFree
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x22, [x21, x27, lsl #3]
	b	LBB0_9
LBB0_21:
Lloh13:
	adrp	x8, _xsltGenericErrorContext@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xsltGenericErrorContext@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xsltGenericError
LBB0_22:
	mov	x21, #0
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	stp	x8, x9, [x19, #8]
	str	d8, [x1]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x1, #8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x8, [x1, #16]
	b	LBB0_23
LBB0_25:
Lloh18:
	adrp	x8, _xsltGenericErrorContext@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xsltGenericErrorContext@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_xsltGenericError
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_xsltGenericErrorContext,4,2    ; @xsltGenericErrorContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xsl:sort : compilation failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"xsltComputeSortResult: memory allocation failure\n"

	.comm	_XPATH_STRING,8,3               ; @XPATH_STRING
	.comm	_XPATH_NUMBER,8,3               ; @XPATH_NUMBER
	.comm	_XSLT_STATE_STOPPED,4,2         ; @XSLT_STATE_STOPPED
	.comm	_xsltGenericDebugContext,4,2    ; @xsltGenericDebugContext
.subsections_via_symbols
