	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dofile
_dofile:                                ## @dofile
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	callq	_XML_ParserCreate
	movl	%eax, %r14d
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_new_node
	movq	%rax, %rbx
	movq	%rax, (%r12)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 16(%rbx)
	movq	%rbx, 8(%r12)
	movl	12(%rbx), %edi
	callq	_sbuf_finish
	movl	8(%rbx), %edi
	movl	%r14d, %ebx
	callq	_sbuf_finish
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_XML_SetUserData
	movq	_StartElement@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EndElement@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_XML_SetElementHandler
	movq	_CharData@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_XML_SetCharacterDataHandler
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_err
LBB0_2:
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_fstat
	movl	-48(%rbp), %r15d
	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	%r15d, %esi
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %r14
	movl	%ebx, %edi
	movq	%rax, %rsi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_XML_Parse
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_errx
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_munmap
	movl	%r13d, %edi
	callq	_close
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_XML_ParserFree
	movq	(%r12), %rax
	movl	8(%rax), %edi
	callq	_sbuf_finish
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmoveq	%rax, %r12
	movq	%r12, %rax
	addq	$24, %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	"(top)"

	.comm	_StartElement,4,2               ## @StartElement
	.comm	_EndElement,4,2                 ## @EndElement
	.comm	_CharData,4,2                   ## @CharData
	.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
L_.str.1:                               ## @.str.1
	.asciz	"XML_Parse complained -> %d"

	.no_dead_strip	_dofile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dofile
_dofile:                                ; @dofile
	.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	x21, x0
	mov	x0, #0
	bl	_XML_ParserCreate
	mov	x20, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	bl	_new_node
	mov	x22, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	str	x0, [x0, #16]
	stp	x0, x0, [x19]
	ldr	w0, [x0, #12]
	bl	_sbuf_finish
	ldr	w0, [x22, #8]
	bl	_sbuf_finish
	mov	x0, x20
	mov	x1, x19
	bl	_XML_SetUserData
Lloh2:
	adrp	x8, _StartElement@GOTPAGE
Lloh3:
	ldr	x8, [x8, _StartElement@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _EndElement@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EndElement@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_XML_SetElementHandler
Lloh8:
	adrp	x8, _CharData@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CharData@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_XML_SetCharacterDataHandler
Lloh11:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, x21
	bl	_err
LBB0_2:
	add	x1, sp, #8
	mov	x0, x22
	bl	_fstat
	ldr	w21, [sp, #8]
Lloh14:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MAP_NOCORE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAP_NOCORE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	ldr	w8, [x9]
Lloh20:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	x1, x21
	mov	x4, x22
	mov	w5, #0
	bl	_mmap
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	mov	w3, #1
	bl	_XML_Parse
	mov	x23, x0
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_errx
LBB0_4:
	mov	x0, x24
	mov	x1, x21
	bl	_munmap
	mov	x0, x22
	bl	_close
	mov	x0, x20
	bl	_XML_ParserFree
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_sbuf_finish
	cmp	w23, #0
	csel	x0, xzr, x19, eq
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(top)"

	.comm	_StartElement,4,2               ; @StartElement
	.comm	_EndElement,4,2                 ; @EndElement
	.comm	_CharData,4,2                   ; @CharData
	.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
l_.str.1:                               ; @.str.1
	.asciz	"XML_Parse complained -> %d"

	.no_dead_strip	_dofile
.subsections_via_symbols
