	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %r14
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
	jmp	LBB0_6
LBB0_4:
	jne	LBB0_6
## %bb.5:
	movl	-20(%rbp), %edi
	callq	_receive_and_exit
LBB0_6:
	movl	$1, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	jns	LBB0_7
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	_SIGKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kill
	movl	$-1, %edi
	callq	_exit
LBB0_7:
	movq	%rax, %rbx
	jne	LBB0_9
## %bb.8:
	movl	-20(%rbp), %edi
	callq	_shutdown_and_exit
LBB0_9:
	movl	$1, %edi
	callq	_sleep
	movq	_SIGKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kill
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_11:
	movl	$1, %edi
	callq	_sleep
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socketpair"

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

	.comm	_SIGKILL,4,2                    ## @SIGKILL
L_.str.2:                               ## @.str.2
	.asciz	"kill"

L_str:                                  ## @str
	.asciz	"ok 1 - unix_sorflush"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _PF_LOCAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #0
	bl	_socketpair
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	bl	_fork
	mov	x19, x0
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
	b	LBB0_6
LBB0_4:
	cbnz	x19, LBB0_6
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_receive_and_exit
LBB0_6:
	mov	w0, #1
	bl	_sleep
	bl	_fork
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
Lloh12:
	adrp	x8, _SIGKILL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGKILL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kill
	mov	w0, #-1
	bl	_exit
LBB0_8:
	mov	x20, x0
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_shutdown_and_exit
LBB0_10:
	mov	w0, #1
	bl	_sleep
Lloh15:
	adrp	x8, _SIGKILL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGKILL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_12:
	mov	w0, #1
	bl	_sleep
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socketpair"

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

	.comm	_SIGKILL,4,2                    ; @SIGKILL
l_.str.2:                               ; @.str.2
	.asciz	"kill"

l_str:                                  ; @str
	.asciz	"ok 1 - unix_sorflush"

.subsections_via_symbols
