	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_kqueue
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_fail
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_OK
	movq	_PF_UNIX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_fail
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
	callq	_OK
	movl	-56(%rbp), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_fail
LBB0_6:
	leaq	L_.str.8(%rip), %rdi
	callq	_OK
	movl	-52(%rbp), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_fail
LBB0_8:
	leaq	L_.str.9(%rip), %rdi
	callq	_OK
	leaq	L_.str.4(%rip), %rdx
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_test_evfilt_read
	movl	-56(%rbp), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.11(%rip), %rdx
	leaq	L_.str.12(%rip), %rcx
	callq	_fail
LBB0_10:
	leaq	L_.str.13(%rip), %rdi
	callq	_OK
	movl	-52(%rbp), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.11(%rip), %rdx
	leaq	L_.str.14(%rip), %rcx
	callq	_fail
LBB0_12:
	leaq	L_.str.15(%rip), %rdi
	callq	_OK
	movl	(%r12), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.16(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_fail
LBB0_14:
	leaq	L_.str.17(%rip), %rdi
	callq	_OK
	movl	-56(%rbp), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.16(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_fail
LBB0_16:
	leaq	L_.str.18(%rip), %rdi
	callq	_OK
	movl	-52(%rbp), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.16(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_fail
LBB0_18:
	leaq	L_.str.19(%rip), %rdi
	callq	_OK
	leaq	L_.str.16(%rip), %rdx
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_test_evfilt_read
	movl	-56(%rbp), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.20(%rip), %rdx
	leaq	L_.str.12(%rip), %rcx
	callq	_fail
LBB0_20:
	leaq	L_.str.21(%rip), %rdi
	callq	_OK
	movl	-52(%rbp), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.20(%rip), %rdx
	leaq	L_.str.14(%rip), %rcx
	callq	_fail
LBB0_22:
	leaq	L_.str.22(%rip), %rdi
	callq	_OK
	movl	(%r12), %edi
	movl	(%r13), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.16(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_fail
LBB0_24:
	leaq	L_.str.23(%rip), %rdi
	callq	_OK
	movl	-56(%rbp), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.16(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_fail
LBB0_26:
	leaq	L_.str.24(%rip), %rdi
	callq	_OK
	movl	-52(%rbp), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.16(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	callq	_fail
LBB0_28:
	leaq	L_.str.25(%rip), %rdi
	callq	_OK
	leaq	L_.str.16(%rip), %rdx
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_test_evfilt_write
	movl	-56(%rbp), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_30
## %bb.29:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.20(%rip), %rdx
	leaq	L_.str.12(%rip), %rcx
	callq	_fail
LBB0_30:
	leaq	L_.str.26(%rip), %rdi
	callq	_OK
	movl	-52(%rbp), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_32
## %bb.31:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.20(%rip), %rdx
	leaq	L_.str.14(%rip), %rcx
	callq	_fail
LBB0_32:
	leaq	L_.str.27(%rip), %rdi
	callq	_OK
	movl	%ebx, %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_34
## %bb.33:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.28(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_fail
LBB0_34:
	leaq	L_.str.29(%rip), %rdi
	callq	_OK
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"kqueue"

L_.str.2:                               ## @.str.2
	.asciz	"kqueue()"

	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.3:                               ## @.str.3
	.asciz	"socketpair"

L_.str.4:                               ## @.str.4
	.asciz	"PF_UNIX, SOCK_DGRAM"

L_.str.5:                               ## @.str.5
	.asciz	"socketpair() 1"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.6:                               ## @.str.6
	.asciz	"fcntl"

L_.str.7:                               ## @.str.7
	.asciz	"O_NONBLOCK"

L_.str.8:                               ## @.str.8
	.asciz	"fcntl() 1"

L_.str.9:                               ## @.str.9
	.asciz	"fnctl() 2"

L_.str.10:                              ## @.str.10
	.asciz	"close"

L_.str.11:                              ## @.str.11
	.asciz	"PF_UNIX/SOCK_DGRAM"

L_.str.12:                              ## @.str.12
	.asciz	"sv[0]"

L_.str.13:                              ## @.str.13
	.asciz	"close() 1"

L_.str.14:                              ## @.str.14
	.asciz	"sv[1]"

L_.str.15:                              ## @.str.15
	.asciz	"close() 2"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.16:                              ## @.str.16
	.asciz	"PF_UNIX, SOCK_STREAM"

L_.str.17:                              ## @.str.17
	.asciz	"socketpair() 2"

L_.str.18:                              ## @.str.18
	.asciz	"fcntl() 3"

L_.str.19:                              ## @.str.19
	.asciz	"fcntl() 4"

L_.str.20:                              ## @.str.20
	.asciz	"PF_UNIX/SOCK_STREAM"

L_.str.21:                              ## @.str.21
	.asciz	"close() 3"

L_.str.22:                              ## @.str.22
	.asciz	"close() 4"

L_.str.23:                              ## @.str.23
	.asciz	"socketpair() 3"

L_.str.24:                              ## @.str.24
	.asciz	"fcntl() 5"

L_.str.25:                              ## @.str.25
	.asciz	"fcntl() 6"

L_.str.26:                              ## @.str.26
	.asciz	"close() 5"

L_.str.27:                              ## @.str.27
	.asciz	"close() 6"

L_.str.28:                              ## @.str.28
	.asciz	"kq"

L_.str.29:                              ## @.str.29
	.asciz	"close() 7"

L_str:                                  ## @str
	.asciz	"1..49"

.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_kqueue
	mov	x19, x0
Lloh5:
	adrp	x20, _errno@GOTPAGE
Lloh6:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	bl	_fail
LBB0_2:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_OK
Lloh11:
	adrp	x23, _PF_UNIX@GOTPAGE
Lloh12:
	ldr	x23, [x23, _PF_UNIX@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh13:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x3, sp
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, #0
	bl	_fail
LBB0_4:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_OK
	ldr	w0, [sp]
Lloh22:
	adrp	x21, _F_SETFL@GOTPAGE
Lloh23:
	ldr	x21, [x21, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh24:
	adrp	x22, _O_NONBLOCK@GOTPAGE
Lloh25:
	ldr	x22, [x22, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_fcntl
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
Lloh30:
	adrp	x3, l_.str.7@PAGE
Lloh31:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_fail
LBB0_6:
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_OK
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_fcntl
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x20]
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
Lloh38:
	adrp	x3, l_.str.7@PAGE
Lloh39:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_fail
LBB0_8:
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_OK
Lloh42:
	adrp	x2, l_.str.4@PAGE
Lloh43:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, sp
	mov	x0, x19
	bl	_test_evfilt_read
	ldr	w0, [sp]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x20]
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh46:
	adrp	x2, l_.str.11@PAGE
Lloh47:
	add	x2, x2, l_.str.11@PAGEOFF
Lloh48:
	adrp	x3, l_.str.12@PAGE
Lloh49:
	add	x3, x3, l_.str.12@PAGEOFF
	bl	_fail
LBB0_10:
Lloh50:
	adrp	x0, l_.str.13@PAGE
Lloh51:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_OK
	ldr	w0, [sp, #4]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x20]
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh54:
	adrp	x2, l_.str.11@PAGE
Lloh55:
	add	x2, x2, l_.str.11@PAGEOFF
Lloh56:
	adrp	x3, l_.str.14@PAGE
Lloh57:
	add	x3, x3, l_.str.14@PAGEOFF
	bl	_fail
LBB0_12:
Lloh58:
	adrp	x0, l_.str.15@PAGE
Lloh59:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_OK
	ldr	w0, [x23]
Lloh60:
	adrp	x24, _SOCK_STREAM@GOTPAGE
Lloh61:
	ldr	x24, [x24, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x3, sp
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x20]
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh64:
	adrp	x2, l_.str.16@PAGE
Lloh65:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x3, #0
	bl	_fail
LBB0_14:
Lloh66:
	adrp	x0, l_.str.17@PAGE
Lloh67:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_OK
	ldr	w0, [sp]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_fcntl
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x20]
Lloh68:
	adrp	x1, l_.str.6@PAGE
Lloh69:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh70:
	adrp	x2, l_.str.16@PAGE
Lloh71:
	add	x2, x2, l_.str.16@PAGEOFF
Lloh72:
	adrp	x3, l_.str.7@PAGE
Lloh73:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_fail
LBB0_16:
Lloh74:
	adrp	x0, l_.str.18@PAGE
Lloh75:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_OK
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_fcntl
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x20]
Lloh76:
	adrp	x1, l_.str.6@PAGE
Lloh77:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh78:
	adrp	x2, l_.str.16@PAGE
Lloh79:
	add	x2, x2, l_.str.16@PAGEOFF
Lloh80:
	adrp	x3, l_.str.7@PAGE
Lloh81:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_fail
LBB0_18:
Lloh82:
	adrp	x0, l_.str.19@PAGE
Lloh83:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_OK
Lloh84:
	adrp	x2, l_.str.16@PAGE
Lloh85:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x1, sp
	mov	x0, x19
	bl	_test_evfilt_read
	ldr	w0, [sp]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.19:
	ldr	w0, [x20]
Lloh86:
	adrp	x1, l_.str.10@PAGE
Lloh87:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh88:
	adrp	x2, l_.str.20@PAGE
Lloh89:
	add	x2, x2, l_.str.20@PAGEOFF
Lloh90:
	adrp	x3, l_.str.12@PAGE
Lloh91:
	add	x3, x3, l_.str.12@PAGEOFF
	bl	_fail
LBB0_20:
Lloh92:
	adrp	x0, l_.str.21@PAGE
Lloh93:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_OK
	ldr	w0, [sp, #4]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_22
; %bb.21:
	ldr	w0, [x20]
Lloh94:
	adrp	x1, l_.str.10@PAGE
Lloh95:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh96:
	adrp	x2, l_.str.20@PAGE
Lloh97:
	add	x2, x2, l_.str.20@PAGEOFF
Lloh98:
	adrp	x3, l_.str.14@PAGE
Lloh99:
	add	x3, x3, l_.str.14@PAGEOFF
	bl	_fail
LBB0_22:
Lloh100:
	adrp	x0, l_.str.22@PAGE
Lloh101:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_OK
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	x3, sp
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.23:
	ldr	w0, [x20]
Lloh102:
	adrp	x1, l_.str.3@PAGE
Lloh103:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh104:
	adrp	x2, l_.str.16@PAGE
Lloh105:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x3, #0
	bl	_fail
LBB0_24:
Lloh106:
	adrp	x0, l_.str.23@PAGE
Lloh107:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_OK
	ldr	w0, [sp]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_fcntl
	cbz	x0, LBB0_26
; %bb.25:
	ldr	w0, [x20]
Lloh108:
	adrp	x1, l_.str.6@PAGE
Lloh109:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh110:
	adrp	x2, l_.str.16@PAGE
Lloh111:
	add	x2, x2, l_.str.16@PAGEOFF
Lloh112:
	adrp	x3, l_.str.7@PAGE
Lloh113:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_fail
LBB0_26:
Lloh114:
	adrp	x0, l_.str.24@PAGE
Lloh115:
	add	x0, x0, l_.str.24@PAGEOFF
	bl	_OK
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_fcntl
	cbz	x0, LBB0_28
; %bb.27:
	ldr	w0, [x20]
Lloh116:
	adrp	x1, l_.str.6@PAGE
Lloh117:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh118:
	adrp	x2, l_.str.16@PAGE
Lloh119:
	add	x2, x2, l_.str.16@PAGEOFF
Lloh120:
	adrp	x3, l_.str.7@PAGE
Lloh121:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_fail
LBB0_28:
Lloh122:
	adrp	x0, l_.str.25@PAGE
Lloh123:
	add	x0, x0, l_.str.25@PAGEOFF
	bl	_OK
Lloh124:
	adrp	x2, l_.str.16@PAGE
Lloh125:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x1, sp
	mov	x0, x19
	bl	_test_evfilt_write
	ldr	w0, [sp]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_30
; %bb.29:
	ldr	w0, [x20]
Lloh126:
	adrp	x1, l_.str.10@PAGE
Lloh127:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh128:
	adrp	x2, l_.str.20@PAGE
Lloh129:
	add	x2, x2, l_.str.20@PAGEOFF
Lloh130:
	adrp	x3, l_.str.12@PAGE
Lloh131:
	add	x3, x3, l_.str.12@PAGEOFF
	bl	_fail
LBB0_30:
Lloh132:
	adrp	x0, l_.str.26@PAGE
Lloh133:
	add	x0, x0, l_.str.26@PAGEOFF
	bl	_OK
	ldr	w0, [sp, #4]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_32
; %bb.31:
	ldr	w0, [x20]
Lloh134:
	adrp	x1, l_.str.10@PAGE
Lloh135:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh136:
	adrp	x2, l_.str.20@PAGE
Lloh137:
	add	x2, x2, l_.str.20@PAGEOFF
Lloh138:
	adrp	x3, l_.str.14@PAGE
Lloh139:
	add	x3, x3, l_.str.14@PAGEOFF
	bl	_fail
LBB0_32:
Lloh140:
	adrp	x0, l_.str.27@PAGE
Lloh141:
	add	x0, x0, l_.str.27@PAGEOFF
	bl	_OK
	mov	x0, x19
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_34
; %bb.33:
	ldr	w0, [x20]
Lloh142:
	adrp	x1, l_.str.10@PAGE
Lloh143:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh144:
	adrp	x2, l_.str.28@PAGE
Lloh145:
	add	x2, x2, l_.str.28@PAGEOFF
	mov	x3, #0
	bl	_fail
LBB0_34:
Lloh146:
	adrp	x0, l_.str.29@PAGE
Lloh147:
	add	x0, x0, l_.str.29@PAGEOFF
	bl	_OK
	ldr	x8, [sp, #8]
Lloh148:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh149:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh150:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpAdd	Lloh132, Lloh133
	.loh AdrpAdd	Lloh138, Lloh139
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpAdd	Lloh144, Lloh145
	.loh AdrpAdd	Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpAdd	Lloh146, Lloh147
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"kqueue"

l_.str.2:                               ; @.str.2
	.asciz	"kqueue()"

	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.3:                               ; @.str.3
	.asciz	"socketpair"

l_.str.4:                               ; @.str.4
	.asciz	"PF_UNIX, SOCK_DGRAM"

l_.str.5:                               ; @.str.5
	.asciz	"socketpair() 1"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.6:                               ; @.str.6
	.asciz	"fcntl"

l_.str.7:                               ; @.str.7
	.asciz	"O_NONBLOCK"

l_.str.8:                               ; @.str.8
	.asciz	"fcntl() 1"

l_.str.9:                               ; @.str.9
	.asciz	"fnctl() 2"

l_.str.10:                              ; @.str.10
	.asciz	"close"

l_.str.11:                              ; @.str.11
	.asciz	"PF_UNIX/SOCK_DGRAM"

l_.str.12:                              ; @.str.12
	.asciz	"sv[0]"

l_.str.13:                              ; @.str.13
	.asciz	"close() 1"

l_.str.14:                              ; @.str.14
	.asciz	"sv[1]"

l_.str.15:                              ; @.str.15
	.asciz	"close() 2"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.16:                              ; @.str.16
	.asciz	"PF_UNIX, SOCK_STREAM"

l_.str.17:                              ; @.str.17
	.asciz	"socketpair() 2"

l_.str.18:                              ; @.str.18
	.asciz	"fcntl() 3"

l_.str.19:                              ; @.str.19
	.asciz	"fcntl() 4"

l_.str.20:                              ; @.str.20
	.asciz	"PF_UNIX/SOCK_STREAM"

l_.str.21:                              ; @.str.21
	.asciz	"close() 3"

l_.str.22:                              ; @.str.22
	.asciz	"close() 4"

l_.str.23:                              ; @.str.23
	.asciz	"socketpair() 3"

l_.str.24:                              ; @.str.24
	.asciz	"fcntl() 5"

l_.str.25:                              ; @.str.25
	.asciz	"fcntl() 6"

l_.str.26:                              ; @.str.26
	.asciz	"close() 5"

l_.str.27:                              ; @.str.27
	.asciz	"close() 6"

l_.str.28:                              ; @.str.28
	.asciz	"kq"

l_.str.29:                              ; @.str.29
	.asciz	"close() 7"

l_str:                                  ; @str
	.asciz	"1..49"

.subsections_via_symbols
