	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run
_run:                                   ## @run
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	%r15d, %r13d
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r13d, %r15d
	movl	%eax, %edx
	callq	_ERRX
LBB0_2:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %r13d
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.4:
	movl	-56(%rbp), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_receiver
	jmp	LBB0_23
LBB0_5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ebx
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %r15d
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_ERRX
LBB0_6:
	movl	-52(%rbp), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_sender
	movl	%eax, %r14d
	leaq	-60(%rbp), %r15
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_waitpid
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r12d, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_ERRX
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_kill
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r12d, %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_ERRX
	jmp	LBB0_7
LBB0_13:
	movl	-60(%rbp), %edi
	callq	_WIFSIGNALED
	movl	-60(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	callq	_WTERMSIG
	movl	(%rbx), %ebx
	movq	_SIGTERM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	callq	_ERRX0
	jmp	LBB0_23
LBB0_17:
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	-60(%rbp), %edi
	callq	_WEXITSTATUS
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:
	movl	(%rbx), %ebx
	movl	-60(%rbp), %edi
	callq	_WEXITSTATUS
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	movl	-60(%rbp), %edi
	callq	_WTERMSIG
	movl	%eax, %edi
	callq	_strsignal
	leaq	L_.str.5(%rip), %rsi
LBB0_20:
	movl	%ebx, %edi
	movl	%eax, %edx
	jmp	LBB0_22
LBB0_21:
	movl	(%rbx), %edi
	movl	-60(%rbp), %edx
	leaq	L_.str.7(%rip), %rsi
LBB0_22:
	callq	_ERRX
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socketpair (%s)"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"fork (%s)"

	.comm	_WNOHANG,4,2                    ## @WNOHANG
L_.str.2:                               ## @.str.2
	.asciz	"wait (%s)"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
L_.str.3:                               ## @.str.3
	.asciz	"kill (%s)"

L_.str.4:                               ## @.str.4
	.asciz	"receiver failed and was killedby sender"

L_.str.5:                               ## @.str.5
	.asciz	"receiver got signaled (%s)"

L_.str.6:                               ## @.str.6
	.asciz	"receiver exited with status %d"

L_.str.7:                               ## @.str.7
	.asciz	"receiver exited with unexpected status %d"

	.no_dead_strip	_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run
_run:                                   ; @run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
Lloh9:
	adrp	x26, _EXIT_FAILURE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EXIT_FAILURE@GOTPAGEOFF]
Lloh11:
	adrp	x27, _errno@GOTPAGE
Lloh12:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w19, [x26]
	ldr	w0, [x27]
	bl	_strerror
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ERRX
LBB0_2:
	bl	_fork
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	cbnz	w19, LBB0_6
; %bb.4:
	ldr	w0, [sp, #16]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_receiver
	b	LBB0_22
LBB0_5:
	ldr	w25, [x26]
	ldr	w0, [x27]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	bl	_ERRX
LBB0_6:
	ldr	w0, [sp, #20]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_sender
	mov	x20, x0
Lloh17:
	adrp	x25, _WNOHANG@GOTPAGE
Lloh18:
	ldr	x25, [x25, _WNOHANG@GOTPAGEOFF]
Lloh19:
	adrp	x24, _SIGTERM@GOTPAGE
Lloh20:
	ldr	x24, [x24, _SIGTERM@GOTPAGEOFF]
Lloh21:
	adrp	x21, l_.str.3@PAGE
Lloh22:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh23:
	adrp	x22, l_.str.2@PAGE
Lloh24:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	add	x1, sp, #12
	mov	x0, x19
	bl	_waitpid
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w23, [x26]
	ldr	w0, [x27]
	bl	_strerror
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_ERRX
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w20, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_kill
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w23, [x26]
	ldr	w0, [x27]
	bl	_strerror
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_ERRX
	b	LBB0_7
LBB0_13:
	ldr	w0, [sp, #12]
	bl	_WIFSIGNALED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_16
; %bb.14:
	bl	_WTERMSIG
	ldr	w8, [x24]
	ldr	w19, [x26]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.15:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ERRX0
	b	LBB0_22
LBB0_16:
	bl	_WIFEXITED
	cbz	w0, LBB0_20
; %bb.17:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	cbz	w0, LBB0_22
; %bb.18:
	ldr	w19, [x26]
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	b	LBB0_21
LBB0_19:
	ldr	w0, [sp, #12]
	bl	_WTERMSIG
	bl	_strsignal
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	b	LBB0_21
LBB0_20:
	ldr	w0, [x26]
	ldr	w2, [sp, #12]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_21:
	bl	_ERRX
LBB0_22:
	ldr	x8, [sp, #24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socketpair (%s)"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"fork (%s)"

	.comm	_WNOHANG,4,2                    ; @WNOHANG
l_.str.2:                               ; @.str.2
	.asciz	"wait (%s)"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
l_.str.3:                               ; @.str.3
	.asciz	"kill (%s)"

l_.str.4:                               ; @.str.4
	.asciz	"receiver failed and was killedby sender"

l_.str.5:                               ; @.str.5
	.asciz	"receiver got signaled (%s)"

l_.str.6:                               ; @.str.6
	.asciz	"receiver exited with status %d"

l_.str.7:                               ; @.str.7
	.asciz	"receiver exited with unexpected status %d"

	.no_dead_strip	_run
.subsections_via_symbols
