	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltDocumentSortFunction       ## -- Begin function xsltDocumentSortFunction
	.p2align	4, 0x90
_xsltDocumentSortFunction:              ## @xsltDocumentSortFunction
	.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
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	cmpl	$2, %r14d
	jge	LBB0_2
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leal	-1(%r14), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leaq	1(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rax
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r12
	cmpq	%r12, %r14
	je	LBB0_3
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movl	(%rax,%r12,4), %esi
	callq	_xmlXPathCmpNodes
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %ecx
	movl	(%rax,%r12,4), %edx
	movl	%edx, (%rax,%r13,4)
	movl	%ecx, (%rax,%r12,4)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltDocumentSortFunction       ; -- Begin function xsltDocumentSortFunction
	.p2align	2
_xsltDocumentSortFunction:              ; @xsltDocumentSortFunction
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0]
	cmp	w20, #2
	b.ge	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, #0
	sub	w21, w20, #1
	mov	w23, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	mov	x22, x24
	cmp	x24, x21
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x24, x22, #1
	cmp	x24, x20
	b.hs	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x23
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x25, x25, #1
	cmp	x20, x25
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x8, x25, lsl #2]
	bl	_xmlXPathCmpNodes
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x19, #8]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	lsl	x11, x25, #2
	ldr	w12, [x8, x11]
	str	w12, [x8, x9]
	str	w10, [x8, x11]
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
