	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xml_parse
_xml_parse:                             ## @xml_parse
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_XML_ParserCreate
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	%eax, %r14d
	leaq	-96(%rbp), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_xml_parse_setup
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_BIO_seek
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_BIO_get_mem_data
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.9:
	movl	%r14d, %edi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_XML_Parse
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	_verb@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_14
## %bb.13:
	movl	-96(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	movl	-40(%rbp), %edi
	callq	_free
	movl	%r14d, %edi
	callq	_XML_ParserFree
	cmpl	$4, (%rbx)
	jl	LBB0_18
## %bb.15:
	movq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_BIO_seek
	movq	-88(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_BIO_get_mem_data
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-32(%rbp), %rdi
	movslq	%ebx, %rsi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_fwrite
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
LBB0_17:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
LBB0_18:
	movq	-48(%rbp), %rdi
	callq	_BIO_free
	movq	-56(%rbp), %rdi
	callq	_BIO_free
	movq	-64(%rbp), %rdi
	callq	_BIO_free
	movq	-72(%rbp), %rdi
	callq	_BIO_free
	movq	-80(%rbp), %rdi
	callq	_BIO_free
	cmpl	$0, -96(%rbp)
	movq	-88(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rax, %rdi
	callq	_BIO_free
	xorl	%eax, %eax
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.8:
	leaq	L_str.8(%rip), %rdi
LBB0_3:
	callq	_puts
	jmp	LBB0_4
LBB0_10:
	movl	%r14d, %edi
	callq	_XML_GetErrorCode
	movl	%eax, %edi
	callq	_XML_ErrorString
	movq	_verb@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_11
LBB0_4:
	xorl	%edi, %edi
	callq	_exit
LBB0_11:
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rsi
	cmovneq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,4,2                       ## @verb
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"XML_Parse failure %s\n"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"XML was parsed successfully, %d keys\n"

L_.str.5:                               ## @.str.5
	.asciz	"got DS bio %d: '"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"error writing to stdout\n"

L_str:                                  ## @str
	.asciz	"could not XML_ParserCreate"

L_str.8:                                ## @str.8
	.asciz	"out of memory"

L_str.9:                                ## @str.9
	.asciz	"'"

	.no_dead_strip	_xml_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xml_parse
_xml_parse:                             ; @xml_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x0, #0
	bl	_XML_ParserCreate
	cbz	w0, LBB0_13
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, x21
	bl	_xml_parse_setup
	mov	x0, x20
	mov	w1, #0
	bl	_BIO_seek
	sub	x1, x29, #40
	mov	x0, x20
	bl	_BIO_get_mem_data
	cbz	w0, LBB0_15
; %bb.2:
	ldur	x1, [x29, #-40]
	cbz	x1, LBB0_15
; %bb.3:
	mov	x2, x0
	mov	x0, x19
	mov	w3, #1
	bl	_XML_Parse
	cbz	w0, LBB0_18
; %bb.4:
Lloh0:
	adrp	x20, _verb@GOTPAGE
Lloh1:
	ldr	x20, [x20, _verb@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_6:
	ldr	w0, [sp, #64]
	bl	_free
	mov	x0, x19
	bl	_XML_ParserFree
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_10
; %bb.7:
	ldr	x0, [sp, #16]
	mov	w1, #0
	bl	_BIO_seek
	ldr	x0, [sp, #16]
	sub	x1, x29, #40
	bl	_BIO_get_mem_data
	mov	x19, x0
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str.5@PAGE
Lloh5:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldur	x0, [x29, #-40]
	sxtw	x1, w19
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w2, #1
	bl	_fwrite
	cbnz	w0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_9:
Lloh14:
	adrp	x0, l_str.9@PAGE
Lloh15:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
LBB0_10:
	ldr	x0, [sp, #56]
	bl	_BIO_free
	ldr	x0, [sp, #48]
	bl	_BIO_free
	ldr	x0, [sp, #40]
	bl	_BIO_free
	ldr	x0, [sp, #32]
	bl	_BIO_free
	ldr	x0, [sp, #24]
	bl	_BIO_free
	ldr	w8, [sp, #8]
	ldr	x0, [sp, #16]
	cbnz	w8, LBB0_12
; %bb.11:
	bl	_BIO_free
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
Lloh16:
	adrp	x8, _verb@GOTPAGE
Lloh17:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.14:
Lloh19:
	adrp	x0, l_str@PAGE
Lloh20:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh21:
	adrp	x8, _verb@GOTPAGE
Lloh22:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.16:
Lloh24:
	adrp	x0, l_str.8@PAGE
Lloh25:
	add	x0, x0, l_str.8@PAGEOFF
LBB0_17:
	bl	_puts
	b	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_XML_GetErrorCode
	bl	_XML_ErrorString
Lloh26:
	adrp	x8, _verb@GOTPAGE
Lloh27:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_20
LBB0_19:
	mov	w0, #0
	bl	_exit
LBB0_20:
Lloh29:
	adrp	x8, l_.str.3@PAGE
Lloh30:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x8, x8, x0, eq
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,4,2                       ; @verb
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"XML_Parse failure %s\n"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"XML was parsed successfully, %d keys\n"

l_.str.5:                               ; @.str.5
	.asciz	"got DS bio %d: '"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"error writing to stdout\n"

l_str:                                  ; @str
	.asciz	"could not XML_ParserCreate"

l_str.8:                                ; @str.8
	.asciz	"out of memory"

l_str.9:                                ; @str.9
	.asciz	"'"

	.no_dead_strip	_xml_parse
.subsections_via_symbols
