	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parseopen
_parseopen:                             ## @parseopen
	.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	%ecx, %ebx
	movq	%rdi, %r15
	movq	_DD_OPEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_parseprintf
	movq	_MODOPEN@GOTPCREL(%rip), %r12
	cmpl	%ebx, (%r12)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_u@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	callq	_parseprintf
LBB0_5:
	movq	_OPENFAIL@GOTPCREL(%rip), %r12
LBB0_6:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$48, %edi
	callq	_kmem_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_WR
	movq	%r14, (%rax)
	movq	(%r15), %r14
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_bzero
	movq	%r15, 40(%r14)
	movq	_PARSE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	$0, 24(%r14)
	movq	%r14, %rdi
	callq	_parse_ioinit
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	_M_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_setup_stream
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	callq	_init_linemon
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_parseprintf
	cmpb	$0, _parseopen.notice(%rip)
	jne	LBB0_6
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_printf
	movb	$1, _parseopen.notice(%rip)
	jmp	LBB0_6
LBB0_12:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_13:
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_kmem_free
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_parseopen.notice,1,2 ## @parseopen.notice
	.comm	_DD_OPEN,4,2                    ## @DD_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse: OPEN\n"

	.comm	_MODOPEN,4,2                    ## @MODOPEN
L_.str.1:                               ## @.str.1
	.asciz	"parse: OPEN - FAILED - not MODOPEN\n"

	.comm	_OPENFAIL,4,2                   ## @OPENFAIL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_u,4,2                          ## @u
L_.str.2:                               ## @.str.2
	.asciz	"parse: OPEN - FAILED - EXCLUSIVE ONLY\n"

L_.str.3:                               ## @.str.3
	.asciz	"parse: OPEN - FAILED - no memory\n"

	.comm	_PARSE_ENABLE,4,2               ## @PARSE_ENABLE
	.comm	_M_PARSE,4,2                    ## @M_PARSE
L_.str.4:                               ## @.str.4
	.asciz	"parse: OPEN - SUCCEEDED\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: Copyright (C) 1991-2005, Frank Kardel\n"

L_.str.6:                               ## @.str.6
	.asciz	"parsestreams.c,v 4.11 2005/04/16 17:32:10 kardel RELEASE_20050508_A"

	.comm	_parsebusy,4,2                  ## @parsebusy
	.comm	_parsesync_vd,8,3               ## @parsesync_vd
	.no_dead_strip	_parseopen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parseopen
_parseopen:                             ; @parseopen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x21, _DD_OPEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DD_OPEN@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_parseprintf
Lloh4:
	adrp	x8, _MODOPEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MODOPEN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _u@GOTPAGE
Lloh11:
	ldr	x9, [x9, _u@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_parseprintf
LBB0_5:
Lloh17:
	adrp	x8, _OPENFAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OPENFAIL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #48
	bl	_kmem_alloc
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.8:
	mov	x20, x0
	mov	x0, x19
	bl	_WR
	str	x20, [x0]
	ldr	x20, [x19]
	mov	x0, x20
	mov	w1, #48
	bl	_bzero
Lloh19:
	adrp	x8, _PARSE_ENABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PARSE_ENABLE@GOTPAGEOFF]
	str	x19, [x20, #40]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	stp	xzr, xzr, [x20, #16]
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_parse_ioinit
	cbz	w0, LBB0_14
; %bb.9:
Lloh22:
	adrp	x8, _M_PARSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M_PARSE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_setup_stream
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_init_linemon
	ldr	w0, [x21]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_parseprintf
	adrp	x19, _parseopen.notice@PAGE
	ldrb	w8, [x19, _parseopen.notice@PAGEOFF]
	tbnz	w8, #0, LBB0_12
; %bb.11:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_printf
	mov	w8, #1
	strb	w8, [x19, _parseopen.notice@PAGEOFF]
LBB0_12:
Lloh31:
	adrp	x8, _MODOPEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MODOPEN@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
	ldr	w0, [x21]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_14:
	mov	x0, x20
	mov	w1, #48
	bl	_kmem_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_parseopen.notice,1,2 ; @parseopen.notice
	.comm	_DD_OPEN,4,2                    ; @DD_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse: OPEN\n"

	.comm	_MODOPEN,4,2                    ; @MODOPEN
l_.str.1:                               ; @.str.1
	.asciz	"parse: OPEN - FAILED - not MODOPEN\n"

	.comm	_OPENFAIL,4,2                   ; @OPENFAIL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_u,4,2                          ; @u
l_.str.2:                               ; @.str.2
	.asciz	"parse: OPEN - FAILED - EXCLUSIVE ONLY\n"

l_.str.3:                               ; @.str.3
	.asciz	"parse: OPEN - FAILED - no memory\n"

	.comm	_PARSE_ENABLE,4,2               ; @PARSE_ENABLE
	.comm	_M_PARSE,4,2                    ; @M_PARSE
l_.str.4:                               ; @.str.4
	.asciz	"parse: OPEN - SUCCEEDED\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: Copyright (C) 1991-2005, Frank Kardel\n"

l_.str.6:                               ; @.str.6
	.asciz	"parsestreams.c,v 4.11 2005/04/16 17:32:10 kardel RELEASE_20050508_A"

	.comm	_parsebusy,4,2                  ; @parsebusy
	.comm	_parsesync_vd,8,3               ; @parsesync_vd
	.no_dead_strip	_parseopen
.subsections_via_symbols
