	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parent
_parent:                                ## @parent
	.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	%edi, %ebx
	movl	$1, %edi
	callq	_usleep
	movq	_state@GOTPCREL(%rip), %r14
	cmpl	$1, (%r14)
	jne	LBB0_1
## %bb.2:
	movq	_filetype@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_FT_FIFO@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	movq	_FIFONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movq	_cpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIGUSR1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kill
	movl	$1, %edi
	callq	_usleep
	cmpl	$2, (%r14)
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_write
	cmpl	$1, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	movq	_cpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kill
	movl	$1, %edi
	callq	_usleep
	cmpl	$3, (%r14)
	jne	LBB0_10
## %bb.11:
	movl	%ebx, %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_13:
	movq	_cpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kill
	movl	$1, %edi
	callq	_usleep
	cmpl	$4, (%r14)
	jne	LBB0_14
## %bb.15:
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	jne	LBB0_28
## %bb.16:
	movq	_FIFONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_18:
	movq	_cpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kill
	movl	$1, %edi
	callq	_usleep
	cmpl	$5, (%r14)
	jne	LBB0_19
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_write
	cmpl	$1, %eax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_22:
	movq	_cpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kill
	movl	$1, %edi
	callq	_usleep
	cmpl	$6, (%r14)
	jne	LBB0_23
## %bb.24:
	movl	%ebx, %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_26:
	movq	_cpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kill
	movl	$1, %edi
	callq	_usleep
	cmpl	$7, (%r14)
	jne	LBB0_27
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_state,4,2                      ## @state
	.comm	_filetype,8,3                   ## @filetype
	.comm	_FT_FIFO,8,3                    ## @FT_FIFO
	.comm	_FIFONAME,4,2                   ## @FIFONAME
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open for write"

	.comm	_cpid,4,2                       ## @cpid
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
L_.str.1:                               ## @.str.1
	.space	1

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

L_.str.3:                               ## @.str.3
	.asciz	"close for write"

	.no_dead_strip	_parent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parent
_parent:                                ; @parent
	.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	x19, x0
	mov	w0, #1
	bl	_usleep
Lloh0:
	adrp	x20, _state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _state@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_22
; %bb.1:
Lloh2:
	adrp	x23, _filetype@GOTPAGE
Lloh3:
	ldr	x23, [x23, _filetype@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh4:
	adrp	x24, _FT_FIFO@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FT_FIFO@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _FIFONAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIFONAME@GOTPAGEOFF]
Lloh8:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
Lloh17:
	adrp	x21, _cpid@GOTPAGE
Lloh18:
	ldr	x21, [x21, _cpid@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh19:
	adrp	x22, _SIGUSR1@GOTPAGE
Lloh20:
	ldr	x22, [x22, _SIGUSR1@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kill
	mov	w0, #1
	bl	_usleep
	ldr	w8, [x20]
	cmp	w8, #2
	b.ne	LBB0_23
; %bb.5:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_write
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.6:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_kill
	mov	w0, #1
	bl	_usleep
	ldr	w8, [x20]
	cmp	w8, #3
	b.ne	LBB0_24
; %bb.8:
	mov	x0, x19
	bl	_close
	cbz	x0, LBB0_10
; %bb.9:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_kill
	mov	w0, #1
	bl	_usleep
	ldr	w8, [x20]
	cmp	w8, #4
	b.ne	LBB0_25
; %bb.11:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.12:
Lloh27:
	adrp	x8, _FIFONAME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FIFONAME@GOTPAGEOFF]
Lloh29:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh30:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	ldr	w8, [x9]
Lloh33:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_14
; %bb.13:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_kill
	mov	w0, #1
	bl	_usleep
	ldr	w8, [x20]
	cmp	w8, #5
	b.ne	LBB0_26
; %bb.15:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_write
	cmp	w0, #1
	b.eq	LBB0_17
; %bb.16:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_17:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_kill
	mov	w0, #1
	bl	_usleep
	ldr	w8, [x20]
	cmp	w8, #6
	b.ne	LBB0_27
; %bb.18:
	mov	x0, x19
	bl	_close
	cbz	x0, LBB0_20
; %bb.19:
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_20:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_kill
	mov	w0, #1
	bl	_usleep
	ldr	w8, [x20]
	cmp	w8, #7
	b.ne	LBB0_28
LBB0_21:
	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_22:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_22
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_23
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_24
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_25
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_26
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_27
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_state,4,2                      ; @state
	.comm	_filetype,8,3                   ; @filetype
	.comm	_FT_FIFO,8,3                    ; @FT_FIFO
	.comm	_FIFONAME,4,2                   ; @FIFONAME
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open for write"

	.comm	_cpid,4,2                       ; @cpid
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
l_.str.1:                               ; @.str.1
	.space	1

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

l_.str.3:                               ; @.str.3
	.asciz	"close for write"

	.no_dead_strip	_parent
.subsections_via_symbols
