	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function processStream
_processStream:                         ## @processStream
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_topen
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	jmp	LBB0_23
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	movq	_READ_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%r12d, %edi
	callq	_XML_GetBuffer
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %edx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	sete	%al
	movzbl	%al, %edx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_XML_ParseBuffer
	movq	_XML_STATUS_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.11:
	movl	%r15d, %edi
	callq	_close
LBB0_12:
	movl	$1, %eax
	jmp	LBB0_25
LBB0_13:
	testq	%r14, %r14
	je	LBB0_20
## %bb.14:
	movl	%r15d, %edi
	callq	_close
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_T
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_15:
	testq	%r14, %r14
	je	LBB0_22
## %bb.16:
	movq	%r14, %rdi
	callq	_tperror
	jmp	LBB0_19
LBB0_17:
	testq	%r14, %r14
	je	LBB0_26
## %bb.18:
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_reportError
LBB0_19:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_24
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_T
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_T
	movq	%rax, %r14
LBB0_21:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ftprintf
	jmp	LBB0_24
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	callq	_T
	movq	%rax, %rdi
LBB0_23:
	callq	_tperror
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str.2(%rip), %rdi
	callq	_T
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_reportError
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_READ_SIZE,4,2                  ## @READ_SIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: out of memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"xmlwf"

L_.str.2:                               ## @.str.2
	.asciz	"STDIN"

	.comm	_XML_STATUS_ERROR,8,3           ## @XML_STATUS_ERROR
	.no_dead_strip	_processStream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function processStream
_processStream:                         ; @processStream
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _O_BINARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_BINARY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_topen
	mov	x21, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	b	LBB0_23
LBB0_3:
	mov	w21, #0
LBB0_4:
Lloh6:
	adrp	x23, _READ_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _READ_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _XML_STATUS_ERROR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _XML_STATUS_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XML_GetBuffer
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	bl	_read
	tbnz	w0, #31, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	cmp	w0, #0
	cset	w2, eq
	mov	x0, x20
	mov	x1, x22
	bl	_XML_ParseBuffer
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x19, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w22, LBB0_5
; %bb.11:
	mov	x0, x21
	bl	_close
LBB0_12:
	mov	w0, #1
	b	LBB0_25
LBB0_13:
	cbz	x19, LBB0_20
; %bb.14:
	mov	x0, x21
	bl	_close
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_T
	mov	x21, x0
	b	LBB0_21
LBB0_15:
	cbz	x19, LBB0_22
; %bb.16:
	mov	x0, x19
	bl	_tperror
	b	LBB0_19
LBB0_17:
	cbz	x19, LBB0_26
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_reportError
LBB0_19:
	mov	x0, x21
	bl	_close
	b	LBB0_24
LBB0_20:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_T
	mov	x21, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_T
	mov	x19, x0
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ftprintf
	b	LBB0_24
LBB0_22:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_T
LBB0_23:
	bl	_tperror
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_26:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_T
	mov	x1, x0
	mov	x0, x20
	bl	_reportError
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_READ_SIZE,4,2                  ; @READ_SIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: out of memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"xmlwf"

l_.str.2:                               ; @.str.2
	.asciz	"STDIN"

	.comm	_XML_STATUS_ERROR,8,3           ; @XML_STATUS_ERROR
	.no_dead_strip	_processStream
.subsections_via_symbols
