	.file	"extr_functions.c_xsltDocumentFunction.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"document() : invalid number of args %d\n"
	.align 8
.LC1:
	.string	"document() : invalid arg value\n"
	.align 8
.LC2:
	.string	"document() : invalid arg expecting a nodeset\n"
	.align 8
.LC3:
	.string	"document() : invalid arg expecting a string\n"
	.text
	.p2align 4
	.globl	xsltDocumentFunction
	.type	xsltDocumentFunction, @function
xsltDocumentFunction:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, -1[rsi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	eax, 1
	ja	.L82
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L83
	mov	rdx, QWORD PTR [rax]
	xor	r12d, r12d
	mov	rax, QWORD PTR XPATH_NODESET[rip]
	cmp	esi, 2
	je	.L84
	cmp	rdx, rax
	je	.L85
.L7:
	mov	rdi, rbp
	mov	esi, 1
	call	xmlXPathStringFunction@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR XPATH_STRING[rip]
	mov	rdi, rbp
	cmp	QWORD PTR [rax], rcx
	je	.L14
	call	xsltXPathGetTransformContext@PLT
	lea	rcx, .LC3[rip]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rax
	xor	eax, eax
	call	xsltTransformError@PLT
	mov	rax, QWORD PTR XPATH_INVALID_TYPE[rip]
	mov	QWORD PTR 0[rbp], rax
	test	r12, r12
	je	.L1
.L80:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	xmlXPathFreeObject@PLT
	.p2align 4,,10
	.p2align 3
.L84:
	.cfi_restore_state
	cmp	rdx, rax
	je	.L6
	call	xsltXPathGetTransformContext@PLT
	lea	rcx, .LC2[rip]
	mov	rdi, rax
.L79:
	xor	edx, edx
	xor	esi, esi
	xor	eax, eax
	call	xsltTransformError@PLT
	mov	rax, QWORD PTR XPATH_INVALID_TYPE[rip]
	mov	QWORD PTR 0[rbp], rax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L82:
	.cfi_restore_state
	call	xsltXPathGetTransformContext@PLT
	mov	r8d, ebx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rax
	lea	rcx, .LC0[rip]
	xor	eax, eax
	call	xsltTransformError@PLT
	mov	rax, QWORD PTR XPATH_INVALID_ARITY[rip]
	mov	QWORD PTR 0[rbp], rax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	valuePop@PLT
	cmp	QWORD PTR [rax], 0
	mov	r13, rax
	je	.L24
	mov	rdi, rbp
	call	xsltXPathGetTransformContext@PLT
	mov	rbx, rax
	test	r12, r12
	je	.L18
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L18
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jg	.L86
.L18:
	test	rbx, rbx
	je	.L22
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	je	.L23
.L77:
	mov	rdi, QWORD PTR 8[rsi]
	call	xmlNodeGetBase@PLT
	mov	r15, rax
.L21:
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, r15
	call	xmlBuildURI@PLT
	mov	r14, rax
	test	r15, r15
	je	.L29
	mov	rdi, r15
	call	xmlFree@PLT
.L29:
	test	r14, r14
	je	.L87
.L25:
	mov	rdi, rbp
	mov	rsi, r14
	call	xsltDocumentFunctionLoadDocument@PLT
	mov	rdi, r14
	call	xmlFree@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L85:
	mov	rdi, rbp
	call	valuePop@PLT
	xor	edi, edi
	mov	r14, rax
	call	xmlXPathNewNodeSet@PLT
	mov	r15, rax
	test	r14, r14
	je	.L8
	mov	rax, QWORD PTR 8[r14]
	test	rax, rax
	je	.L9
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jle	.L9
	xor	r13d, r13d
.L12:
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	xmlXPathNewNodeSet@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	valuePush@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	xmlXPathStringFunction@PLT
	cmp	ebx, 2
	je	.L88
	mov	rax, QWORD PTR 8[r14]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	xmlXPathNewNodeSet@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	valuePush@PLT
.L11:
	mov	esi, 2
	mov	rdi, rbp
	add	r13, 1
	call	xsltDocumentFunction
	mov	rdi, rbp
	call	valuePop@PLT
	mov	rdi, QWORD PTR 8[r15]
	mov	rsi, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rsp], rax
	call	xmlXPathNodeSetMerge@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[r15], rax
	mov	rdi, r8
	call	xmlXPathFreeObject@PLT
	mov	rax, QWORD PTR 8[r14]
	cmp	DWORD PTR [rax], r13d
	jg	.L12
.L9:
	mov	rdi, r14
	call	xmlXPathFreeObject@PLT
.L8:
	test	r12, r12
	je	.L13
	mov	rdi, r12
	call	xmlXPathFreeObject@PLT
.L13:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r15
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	valuePush@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	call	valuePop@PLT
	mov	r12, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR XPATH_NODESET[rip]
	cmp	rdx, rax
	jne	.L7
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 0[r13]
	xor	esi, esi
	call	xmlBuildURI@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	xor	edi, edi
	call	xmlXPathNewNodeSet@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	valuePush@PLT
.L17:
	mov	rdi, r13
	call	xmlXPathFreeObject@PLT
	test	r12, r12
	jne	.L80
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L83:
	call	xsltXPathGetTransformContext@PLT
	lea	rcx, .LC1[rip]
	mov	rdi, rax
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L78
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L78
	mov	rsi, rdi
	call	xmlNodeGetBase@PLT
	mov	r15, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L87:
	test	rbx, rbx
	je	.L24
.L31:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L24
	mov	esi, DWORD PTR [rax]
	xor	edi, edi
	call	xmlStrEqual@PLT
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax]
	call	xmlXPathNewNodeSet@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	valuePush@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L86:
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax]
	call	IS_XSLT_REAL_NODE@PLT
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR 8[r12]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR XML_ATTRIBUTE_NODE[rip]
	je	.L19
	cmp	rax, QWORD PTR XML_PI_NODE[rip]
	jne	.L77
.L19:
	mov	rsi, rax
	jmp	.L77
	.p2align 4,,10
	.p2align 3
.L78:
	mov	rdi, QWORD PTR 0[r13]
	xor	esi, esi
	call	xmlBuildURI@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L25
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L88:
	mov	rdi, r12
	call	xmlXPathObjectCopy@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	valuePush@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	xsltDocumentFunction, .-xsltDocumentFunction
	.comm	XPATH_STRING,8,8
	.comm	XPATH_NODESET,8,8
	.comm	XPATH_INVALID_TYPE,8,8
	.comm	XPATH_INVALID_ARITY,8,8
	.comm	XML_PI_NODE,8,8
	.comm	XML_ATTRIBUTE_NODE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_functions.c_xsltDocumentFunction.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"document() : invalid number of args %d\012\000"
	.align	2
.LC1:
	.ascii	"document() : invalid arg value\012\000"
	.align	2
.LC2:
	.ascii	"document() : invalid arg expecting a nodeset\012\000"
	.align	2
.LC3:
	.ascii	"document() : invalid arg expecting a string\012\000"
	.text
	.align	2
	.global	xsltDocumentFunction
	.syntax unified
	.arm
	.fpu softvfp
	.type	xsltDocumentFunction, %function
xsltDocumentFunction:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	r3, r1, #1
	cmp	r3, #1
	mov	r6, r1
	mov	r4, r0
	sub	sp, sp, #8
	bhi	.L83
	ldr	r5, [r0, #4]
	cmp	r5, #0
	beq	.L84
	ldr	r7, .L91
	cmp	r1, #2
	ldr	r2, [r5]
	ldr	r3, [r7]
	movne	r5, #0
	beq	.L85
	cmp	r2, r3
	beq	.L86
.L7:
	mov	r1, #1
	mov	r0, r4
	bl	xmlXPathStringFunction
	ldr	r2, [r4, #4]
	ldr	r3, .L91+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	beq	.L14
	bl	xsltXPathGetTransformContext
	mov	r2, #0
	ldr	r3, .L91+8
	mov	r1, r2
	bl	xsltTransformError
	ldr	r3, .L91+12
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [r4]
	beq	.L1
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	xmlXPathFreeObject
.L85:
	cmp	r2, r3
	beq	.L6
	bl	xsltXPathGetTransformContext
	mov	r2, #0
	ldr	r3, .L91+16
.L80:
	mov	r1, r2
	bl	xsltTransformError
	ldr	r3, .L91+12
	ldr	r3, [r3]
	str	r3, [r4]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L83:
	bl	xsltXPathGetTransformContext
	mov	r2, #0
	ldr	r3, .L91+20
	mov	r1, r2
	str	r6, [sp]
	bl	xsltTransformError
	ldr	r3, .L91+24
	ldr	r3, [r3]
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	bl	valuePop
	mov	r6, r0
	ldr	r0, [r0]
	cmp	r0, #0
	beq	.L78
	mov	r0, r4
	bl	xsltXPathGetTransformContext
	cmp	r5, #0
	mov	r7, r0
	beq	.L18
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L18
	ldr	r2, [r3]
	cmp	r2, #0
	bgt	.L87
.L18:
	cmp	r7, #0
	beq	.L22
	ldr	r1, [r7, #4]
	cmp	r1, #0
	beq	.L23
.L77:
	ldr	r0, [r1, #4]
	bl	xmlNodeGetBase
	mov	r9, r0
.L21:
	mov	r1, r9
	ldr	r0, [r6]
	bl	xmlBuildURI
	cmp	r9, #0
	mov	r8, r0
	beq	.L29
	mov	r0, r9
	bl	xmlFree
.L29:
	cmp	r8, #0
	beq	.L88
.L25:
	mov	r0, r4
	mov	r1, r8
	bl	xsltDocumentFunctionLoadDocument
	mov	r0, r8
	bl	xmlFree
	b	.L17
.L86:
	mov	r0, r4
	bl	valuePop
	mov	r9, r0
	mov	r0, #0
	bl	xmlXPathNewNodeSet
	cmp	r9, #0
	mov	r10, r0
	beq	.L8
	ldr	r3, [r9, #4]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [r3]
	cmp	r2, #0
	ble	.L9
	mov	r8, #0
.L12:
	ldr	r3, [r3, #4]
	ldr	r0, [r3, r8, lsl #2]
	bl	xmlXPathNewNodeSet
	mov	r1, r0
	mov	r0, r4
	bl	valuePush
	mov	r1, #1
	mov	r0, r4
	bl	xmlXPathStringFunction
	cmp	r6, #2
	beq	.L89
	ldr	r3, [r9, #4]
	ldr	r3, [r3, #4]
	ldr	r0, [r3, r8, lsl #2]
	bl	xmlXPathNewNodeSet
	mov	r1, r0
	mov	r0, r4
	bl	valuePush
.L11:
	mov	r1, #2
	mov	r0, r4
	bl	xsltDocumentFunction
	mov	r0, r4
	bl	valuePop
	mov	r7, r0
	ldr	r0, [r10, #4]
	ldr	r1, [r7, #4]
	bl	xmlXPathNodeSetMerge
	mov	r3, r0
	mov	r0, r7
	str	r3, [r10, #4]
	bl	xmlXPathFreeObject
	ldr	r3, [r9, #4]
	add	r8, r8, #1
	ldr	r2, [r3]
	cmp	r2, r8
	bgt	.L12
.L9:
	mov	r0, r9
	bl	xmlXPathFreeObject
.L8:
	cmp	r5, #0
	beq	.L13
	mov	r0, r5
	bl	xmlXPathFreeObject
.L13:
	mov	r1, r10
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	valuePush
.L6:
	bl	valuePop
	ldr	r2, [r4, #4]
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r5, r0
	cmp	r2, r3
	bne	.L7
	b	.L86
.L90:
	ldr	r3, [r7]
	ldr	r0, [r3]
.L78:
	bl	xmlXPathNewNodeSet
	mov	r1, r0
	mov	r0, r4
	bl	valuePush
.L17:
	mov	r0, r6
	bl	xmlXPathFreeObject
	cmp	r5, #0
	beq	.L1
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	xmlXPathFreeObject
.L84:
	bl	xsltXPathGetTransformContext
	mov	r2, r5
	ldr	r3, .L91+28
	b	.L80
.L23:
	ldr	r1, [r7]
	cmp	r1, #0
	beq	.L79
	ldr	r1, [r1]
	cmp	r1, #0
	beq	.L79
	mov	r0, r1
	bl	xmlNodeGetBase
	mov	r9, r0
	b	.L21
.L88:
	cmp	r7, #0
	beq	.L24
.L31:
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	mov	r0, #0
	ldr	r1, [r3]
	bl	xmlStrEqual
	cmp	r0, #0
	bne	.L90
.L24:
	mov	r0, #0
	bl	xmlXPathNewNodeSet
	mov	r1, r0
	mov	r0, r4
	bl	valuePush
	b	.L17
.L87:
	ldr	r3, [r3, #4]
	ldr	r0, [r3]
	bl	IS_XSLT_REAL_NODE
	cmp	r0, #0
	beq	.L18
	ldr	r3, [r5, #4]
	ldr	r2, .L91+32
	ldr	r3, [r3, #4]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, [r1]
	cmp	r3, r2
	beq	.L19
	ldr	r2, .L91+36
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L77
.L19:
	mov	r1, r3
	b	.L77
.L79:
	ldr	r0, [r6]
	bl	xmlBuildURI
	cmp	r0, #0
	mov	r8, r0
	bne	.L25
	b	.L31
.L89:
	mov	r0, r5
	bl	xmlXPathObjectCopy
	mov	r1, r0
	mov	r0, r4
	bl	valuePush
	b	.L11
.L22:
	mov	r1, r7
	ldr	r0, [r6]
	bl	xmlBuildURI
	subs	r8, r0, #0
	bne	.L25
	b	.L24
.L92:
	.align	2
.L91:
	.word	XPATH_NODESET
	.word	XPATH_STRING
	.word	.LC3
	.word	XPATH_INVALID_TYPE
	.word	.LC2
	.word	.LC0
	.word	XPATH_INVALID_ARITY
	.word	.LC1
	.word	XML_ATTRIBUTE_NODE
	.word	XML_PI_NODE
	.size	xsltDocumentFunction, .-xsltDocumentFunction
	.comm	XPATH_STRING,4,4
	.comm	XPATH_NODESET,4,4
	.comm	XPATH_INVALID_TYPE,4,4
	.comm	XPATH_INVALID_ARITY,4,4
	.comm	XML_PI_NODE,4,4
	.comm	XML_ATTRIBUTE_NODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
