	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgxml_xpath
_pgxml_xpath:                           ## @pgxml_xpath
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_VARSIZE_ANY_EXHDR
	movl	%eax, %r13d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	movq	_PG_XML_STRICTNESS_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgxml_parser_init
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	%r12, %rdi
	callq	_VARDATA_ANY
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_xmlParseMemory
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rdi
	callq	_xmlXPathNewContext
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rdi
	callq	_xmlDocGetRootElement
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_xmlXPathCompile
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERRCODE_EXTERNAL_ROUTINE_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_xml_ereport
LBB0_3:
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_xmlXPathCompiledEval
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_xmlXPathFreeCompExpr
LBB0_4:
	xorl	%eax, %eax
	callq	_PG_CATCH
	movq	%rbx, %rdi
	callq	_cleanup_workspace
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pg_xml_done
	xorl	%eax, %eax
	callq	_PG_RE_THROW
	xorl	%eax, %eax
	callq	_PG_END_TRY
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_cleanup_workspace
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pg_xml_done
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_XML_STRICTNESS_LEGACY,4,2   ## @PG_XML_STRICTNESS_LEGACY
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_EXTERNAL_ROUTINE_EXCEPTION,4,2 ## @ERRCODE_EXTERNAL_ROUTINE_EXCEPTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XPath Syntax Error"

	.no_dead_strip	_pgxml_xpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgxml_xpath
_pgxml_xpath:                           ; @pgxml_xpath
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_VARSIZE_ANY_EXHDR
	mov	x23, x0
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19]
Lloh0:
	adrp	x8, _PG_XML_STRICTNESS_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_XML_STRICTNESS_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_pgxml_parser_init
	mov	x20, x0
	bl	_PG_TRY
	mov	x0, x22
	bl	_VARDATA_ANY
	mov	x1, x23
	bl	_xmlParseMemory
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_xmlXPathNewContext
	str	x0, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_xmlDocGetRootElement
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	x0, x21
	bl	_xmlXPathCompile
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ERRCODE_EXTERNAL_ROUTINE_EXCEPTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_EXTERNAL_ROUTINE_EXCEPTION@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_xml_ereport
LBB0_3:
	ldr	x1, [x19, #8]
	mov	x0, x21
	bl	_xmlXPathCompiledEval
	str	x0, [x19]
	mov	x0, x21
	bl	_xmlXPathFreeCompExpr
LBB0_4:
	bl	_PG_CATCH
	mov	x0, x19
	bl	_cleanup_workspace
	mov	x0, x20
	mov	w1, #1
	bl	_pg_xml_done
	bl	_PG_RE_THROW
	bl	_PG_END_TRY
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_cleanup_workspace
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	bl	_pg_xml_done
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_XML_STRICTNESS_LEGACY,4,2   ; @PG_XML_STRICTNESS_LEGACY
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_EXTERNAL_ROUTINE_EXCEPTION,4,2 ; @ERRCODE_EXTERNAL_ROUTINE_EXCEPTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XPath Syntax Error"

	.no_dead_strip	_pgxml_xpath
.subsections_via_symbols
