	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgxml_result_to_text
_pgxml_result_to_text:                  ## @pgxml_result_to_text
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.3:
	movl	16(%rdi), %edi
	callq	_pgxmlNodeSetToText
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	retq
LBB0_4:
	movq	8(%rdi), %rdi
	jmp	LBB0_6
LBB0_5:
	movq	_NOTICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_elog
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_xmlStrdup
LBB0_7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cstring_to_text
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_xmlFree
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOTICE,4,2                     ## @NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported XQuery result: %d"

L_.str.1:                               ## @.str.1
	.asciz	"<unsupported/>"

	.no_dead_strip	_pgxml_result_to_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgxml_result_to_text
_pgxml_result_to_text:                  ; @pgxml_result_to_text
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x0, #16]
	bl	_pgxmlNodeSetToText
	b	LBB0_7
LBB0_4:
	ldr	x0, [x0, #8]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x9, _NOTICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NOTICE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_elog
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_xmlStrdup
LBB0_7:
	mov	x19, x0
	bl	_cstring_to_text
	mov	x20, x0
	mov	x0, x19
	bl	_xmlFree
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NOTICE,4,2                     ; @NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported XQuery result: %d"

l_.str.1:                               ; @.str.1
	.asciz	"<unsupported/>"

	.no_dead_strip	_pgxml_result_to_text
.subsections_via_symbols
