	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xml_validate                   ## -- Begin function xml_validate
	.p2align	4, 0x90
_xml_validate:                          ## @xml_validate
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_xmlNewDoc
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_xmlDocCopyNode
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_xmlDocSetRootElement
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movq	%r12, %rdi
	callq	_xmlSchemaNewParserCtxt
	movl	%eax, %r13d
	movq	_add_str@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	%edx, %esi
	movq	%rbx, %rcx
	callq	_xmlSchemaSetParserErrors
	movl	%r13d, %edi
	callq	_xmlSchemaParse
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_xmlSchemaFreeParserCtxt
	movl	%r12d, %edi
	callq	_xmlSchemaNewValidCtxt
	movl	%eax, %ebx
	movq	_add_str@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	%edx, %esi
	leaq	-48(%rbp), %rcx
	callq	_xmlSchemaSetValidErrors
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_xmlSchemaValidateDoc
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_xmlSchemaFreeValidCtxt
	movq	%r14, %rdi
	callq	_xmlFreeDoc
	movl	%r12d, %edi
	callq	_xmlSchemaFree
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.5:
	movq	-48(%rbp), %rdi
## %bb.6:
	testq	%r15, %r15
	movl	$-1, %ebx
	je	LBB0_11
## %bb.7:
	movq	%rdi, (%r15)
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_xmlFreeDoc
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_os_free
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	callq	_os_free
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1.0"

	.comm	_add_str,8,3                    ## @add_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xml_validate                   ; -- Begin function xml_validate
	.p2align	2
_xml_validate:                          ; @xml_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x21, x2
	mov	x22, x1
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xmlNewDoc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	w2, #1
	bl	_xmlDocCopyNode
	cbz	x0, LBB0_8
; %bb.4:
	mov	x1, x0
	mov	x0, x20
	bl	_xmlDocSetRootElement
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	mov	x0, x21
	bl	_xmlSchemaNewParserCtxt
	mov	x21, x0
Lloh2:
	adrp	x24, _add_str@GOTPAGE
Lloh3:
	ldr	x24, [x24, _add_str@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x3, sp, #8
	mov	x2, x1
	bl	_xmlSchemaSetParserErrors
	mov	x0, x21
	bl	_xmlSchemaParse
	mov	x22, x0
	mov	x0, x21
	bl	_xmlSchemaFreeParserCtxt
	mov	x0, x22
	bl	_xmlSchemaNewValidCtxt
	mov	x23, x0
	ldr	w1, [x24]
	add	x3, sp, #8
	mov	x2, x1
	bl	_xmlSchemaSetValidErrors
	mov	x0, x23
	mov	x1, x20
	bl	_xmlSchemaValidateDoc
	mov	x21, x0
	mov	x0, x23
	bl	_xmlSchemaFreeValidCtxt
	mov	x0, x20
	bl	_xmlFreeDoc
	mov	x0, x22
	bl	_xmlSchemaFree
	cbz	w21, LBB0_9
; %bb.5:
	ldr	x0, [sp, #8]
	cmp	w21, #1
; %bb.6:
	cbz	x19, LBB0_10
; %bb.7:
	str	x0, [x19]
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_xmlFreeDoc
	b	LBB0_11
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_os_free
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	bl	_os_free
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1.0"

	.comm	_add_str,8,3                    ; @add_str
.subsections_via_symbols
