	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xml_node_to_str                ## -- Begin function xml_node_to_str
	.p2align	4, 0x90
_xml_node_to_str:                       ## @xml_node_to_str
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_xmlNewDoc
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_xmlDocCopyNode
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_xmlDocSetRootElement
	leaq	-24(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_xmlDocDumpFormatMemory
	movl	%ebx, %edi
	callq	_xmlFreeDoc
	movq	-24(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movl	$62, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movzbl	(%rbx), %eax
	cmpb	$13, %al
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, %al
	je	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_os_strdup
	movq	%rax, %r14
	movq	-24(%rbp), %rdi
	callq	_xmlFree
	testq	%r14, %r14
	je	LBB0_14
## %bb.7:
	cmpb	$0, (%r14)
	movq	%r14, %rax
	je	LBB0_11
## %bb.8:
	leaq	-1(%r14), %rax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, 2(%rax)
	leaq	1(%rax), %rax
	jne	LBB0_9
## %bb.10:
	cmpq	%r14, %rax
	jae	LBB0_11
	jmp	LBB0_15
LBB0_13:
	movq	-24(%rbp), %rdi
	callq	_xmlFree
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%rax)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$0, (%rax)
	decq	%rax
	cmpq	%r14, %rax
	jae	LBB0_11
LBB0_15:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1.0"

L_.str.1:                               ## @.str.1
	.asciz	"<?xml"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xml_node_to_str                ; -- Begin function xml_node_to_str
	.p2align	2
_xml_node_to_str:                       ; @xml_node_to_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xmlNewDoc
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_xmlDocCopyNode
	mov	x1, x0
	mov	x0, x20
	bl	_xmlDocSetRootElement
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	mov	w3, #0
	bl	_xmlDocDumpFormatMemory
	mov	x0, x20
	bl	_xmlFreeDoc
	ldr	x19, [sp, #8]
	cbz	x19, LBB0_14
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_os_strdup
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_xmlFree
	cbz	x19, LBB0_14
; %bb.3:
	ldrb	w9, [x19]
	mov	x8, x19
	cbz	w9, LBB0_12
; %bb.4:
	sub	x8, x19, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, #2]
	add	x8, x8, #1
	cbnz	w9, LBB0_5
; %bb.6:
	cmp	x8, x19
	b.hs	LBB0_12
	b	LBB0_14
LBB0_7:
	mov	x0, x19
	mov	w1, #62
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.8:
	add	x19, x0, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cmp	w8, #13
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #1
	b	LBB0_9
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_xmlFree
	mov	x19, #0
	b	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #10
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	wzr, [x8], #-1
	cmp	x8, x19
	b.hs	LBB0_12
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1.0"

l_.str.1:                               ; @.str.1
	.asciz	"<?xml"

.subsections_via_symbols
