	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g_simdisk_xml_load
_g_simdisk_xml_load:                    ## @g_simdisk_xml_load
	.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	%rdi, %r12
	xorl	%edi, %edi
	callq	_XML_ParserCreate
	movl	%eax, %r15d
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_sbuf_new_auto
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_LIST_INIT
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_XML_SetUserData
	movq	_startElement@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_endElement@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_XML_SetElementHandler
	movq	_characterData@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_XML_SetCharacterDataHandler
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_err
LBB0_2:
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_fstat
	movl	-48(%rbp), %r12d
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_NOCORE@GOTPCREL(%rip), %rax
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r12d, %esi
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rax, %rsi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_XML_Parse
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_munmap
	movl	%r13d, %edi
	callq	_close
	movl	%r15d, %edi
	callq	_XML_ParserFree
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_startElement,4,2               ## @startElement
	.comm	_endElement,4,2                 ## @endElement
	.comm	_characterData,4,2              ## @characterData
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_NOCORE,4,2                 ## @MAP_NOCORE
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XML_Parse complains: return %d"

	.no_dead_strip	_g_simdisk_xml_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g_simdisk_xml_load
_g_simdisk_xml_load:                    ; @g_simdisk_xml_load
	.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	x22, x0
	mov	x0, #0
	bl	_XML_ParserCreate
	mov	x19, x0
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	mov	x20, x0
	bl	_sbuf_new_auto
	str	w0, [x20, #4]
	mov	x0, x20
	bl	_LIST_INIT
	mov	x0, x19
	mov	x1, x20
	bl	_XML_SetUserData
Lloh0:
	adrp	x8, _startElement@GOTPAGE
Lloh1:
	ldr	x8, [x8, _startElement@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _endElement@GOTPAGE
Lloh4:
	ldr	x8, [x8, _endElement@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XML_SetElementHandler
Lloh6:
	adrp	x8, _characterData@GOTPAGE
Lloh7:
	ldr	x8, [x8, _characterData@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XML_SetCharacterDataHandler
Lloh9:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, x22
	bl	_err
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_fstat
	ldr	w22, [sp, #8]
Lloh12:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MAP_NOCORE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAP_NOCORE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	x1, x22
	mov	x4, x21
	mov	w5, #0
	bl	_mmap
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	w3, #1
	bl	_XML_Parse
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	bl	_munmap
	mov	x0, x21
	bl	_close
	mov	x0, x19
	bl	_XML_ParserFree
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_startElement,4,2               ; @startElement
	.comm	_endElement,4,2                 ; @endElement
	.comm	_characterData,4,2              ; @characterData
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_NOCORE,4,2                 ; @MAP_NOCORE
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XML_Parse complains: return %d"

	.no_dead_strip	_g_simdisk_xml_load
.subsections_via_symbols
