	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltGenerateIdFunction         ## -- Begin function xsltGenerateIdFunction
	.p2align	4, 0x90
_xsltGenerateIdFunction:                ## @xsltGenerateIdFunction
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1, %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	jne	LBB0_17
## %bb.2:
	movq	16(%r14), %rax
	movq	(%rax), %r13
LBB0_20:
	leaq	_xsltGenerateIdFunction.base_address(%rip), %rax
	subq	%rax, %r13
	js	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_23
LBB0_3:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movq	_XPATH_NODESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	movq	%r14, %rdi
	callq	_valuePop
	movq	%rax, %r15
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.11:
	movq	8(%r12), %rax
	movq	(%rax), %r13
	cmpl	$1, %ecx
	je	LBB0_19
## %bb.12:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax,%rbx,8), %rsi
	movq	%r13, %rdi
	callq	_xmlXPathCmpNodes
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r12), %rax
	movq	-8(%rax,%rbx,8), %r13
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r12), %rax
	incq	%rbx
	jmp	LBB0_13
LBB0_17:
	movq	%r14, %rdi
	callq	_xsltXPathGetTransformContext
	leaq	L_.str.2(%rip), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_xsltTransformError
	movq	_XPATH_INVALID_ARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_24
LBB0_5:
	movq	_XPATH_INVALID_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_xsltXPathGetTransformContext
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.6:
	leaq	L_.str(%rip), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xsltTransformError             ## TAILCALL
LBB0_22:
	negq	%r13
	leaq	L_.str.4(%rip), %rdx
LBB0_23:
	leaq	-176(%rbp), %rdi
	movl	$120, %esi
	movq	%r13, %rcx
	callq	_snprintf
	leaq	-176(%rbp), %rdi
	callq	_xmlXPathNewString
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_valuePush
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_xmlXPathFreeObject
	leaq	L_.str.1(%rip), %rdi
	callq	_xmlXPathNewCString
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.10:
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_valuePush                      ## TAILCALL
LBB0_18:
	testq	%r15, %r15
	je	LBB0_20
LBB0_19:
	movq	%r15, %rdi
	callq	_xmlXPathFreeObject
	jmp	LBB0_20
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_xsltGenerateIdFunction.base_address,1,0 ## @xsltGenerateIdFunction.base_address
	.comm	_XPATH_NODESET,8,3              ## @XPATH_NODESET
	.comm	_XPATH_INVALID_TYPE,4,2         ## @XPATH_INVALID_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"generate-id() : invalid arg expecting a node-set\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"generate-id() : invalid number of args %d\n"

	.comm	_XPATH_INVALID_ARITY,4,2        ## @XPATH_INVALID_ARITY
L_.str.3:                               ## @.str.3
	.asciz	"idp%ld"

L_.str.4:                               ## @.str.4
	.asciz	"idm%ld"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltGenerateIdFunction         ; -- Begin function xsltGenerateIdFunction
	.p2align	2
_xsltGenerateIdFunction:                ; @xsltGenerateIdFunction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x1
	cbnz	w1, LBB0_15
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
LBB0_3:
Lloh3:
	adrp	x8, _xsltGenerateIdFunction.base_address@PAGE
Lloh4:
	add	x8, x8, _xsltGenerateIdFunction.base_address@PAGEOFF
	subs	x3, x21, x8
	b.mi	LBB0_18
; %bb.4:
Lloh5:
	adrp	x2, l_.str.3@PAGE
Lloh6:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _XPATH_NODESET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _XPATH_NODESET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.7:
	mov	x0, x19
	bl	_valuePop
	mov	x20, x0
	ldr	x22, [x0]
	cbz	x22, LBB0_22
; %bb.8:
	ldr	w9, [x22]
	cmp	w9, #0
	b.le	LBB0_22
; %bb.9:
	ldr	x8, [x22, #8]
	ldr	x21, [x8]
	cmp	w9, #1
	b.eq	LBB0_25
; %bb.10:
	mov	w23, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x21
	bl	_xmlXPathCmpNodes
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22, #8]
	ldr	x21, [x8, x23, lsl #3]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22, #8]
	b	LBB0_11
LBB0_15:
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
	str	x20, [sp]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_xsltTransformError
Lloh12:
	adrp	x8, _XPATH_INVALID_ARITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XPATH_INVALID_ARITY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_20
LBB0_16:
Lloh15:
	adrp	x8, _XPATH_INVALID_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XPATH_INVALID_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_xsltXPathGetTransformContext
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.17:
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_xsltTransformError
LBB0_18:
	neg	x3, x3
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_19:
	add	x0, sp, #16
	mov	w1, #120
	bl	_snprintf
	add	x0, sp, #16
	bl	_xmlXPathNewString
	mov	x1, x0
	mov	x0, x19
	bl	_valuePush
LBB0_20:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.21:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_22:
	mov	x0, x20
	bl	_xmlXPathFreeObject
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xmlXPathNewCString
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.23:
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_valuePush
LBB0_24:
	cbz	x20, LBB0_3
LBB0_25:
	mov	x0, x20
	bl	_xmlXPathFreeObject
	b	LBB0_3
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_xsltGenerateIdFunction.base_address,1,0 ; @xsltGenerateIdFunction.base_address
	.comm	_XPATH_NODESET,8,3              ; @XPATH_NODESET
	.comm	_XPATH_INVALID_TYPE,4,2         ; @XPATH_INVALID_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"generate-id() : invalid arg expecting a node-set\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"generate-id() : invalid number of args %d\n"

	.comm	_XPATH_INVALID_ARITY,4,2        ; @XPATH_INVALID_ARITY
l_.str.3:                               ; @.str.3
	.asciz	"idp%ld"

l_.str.4:                               ; @.str.4
	.asciz	"idm%ld"

.subsections_via_symbols
