	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpl	$2, %edi
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	8(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	ja	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_usage
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movq	_PF_LOCAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_7:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_test_send_wantsignal
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_9:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_test_write_wantsignal
	movq	%rbx, %rdi
	callq	_tcp_setup
	leaq	-40(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tcp_pair
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.4(%rip), %rdi
	callq	_test_send_wantsignal
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tcp_pair
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.5(%rip), %rdi
	callq	_test_write_wantsignal
	xorl	%eax, %eax
	callq	_tcp_teardown
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sigpipe: SO_NOSIGPIPE not defined, skipping some tests"

	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM)"

L_.str.2:                               ## @.str.2
	.asciz	"test_send_wantsignal(PF_LOCAL)"

L_.str.3:                               ## @.str.3
	.asciz	"test_write_wantsignal(PF_LOCAL)"

L_.str.4:                               ## @.str.4
	.asciz	"test_send_wantsignal(PF_INET)"

L_.str.5:                               ## @.str.5
	.asciz	"test_write_wantsignal(PF_INET)"

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"PASS\n"

.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	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x19, x0
	lsr	x8, x0, #16
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_5
LBB0_4:
	bl	_usage
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh5:
	adrp	x20, _PF_LOCAL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PF_LOCAL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x21, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_7:
	ldp	w1, w2, [sp, #16]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_test_send_wantsignal
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_9:
	ldp	w1, w2, [sp, #16]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_test_write_wantsignal
	mov	x0, x19
	bl	_tcp_setup
	add	x1, sp, #16
	mov	x0, x19
	bl	_tcp_pair
	ldp	w1, w2, [sp, #16]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_test_send_wantsignal
	add	x1, sp, #16
	mov	x0, x19
	bl	_tcp_pair
	ldp	w1, w2, [sp, #16]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_test_write_wantsignal
	bl	_tcp_teardown
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	x8, [sp, #24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sigpipe: SO_NOSIGPIPE not defined, skipping some tests"

	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM)"

l_.str.2:                               ; @.str.2
	.asciz	"test_send_wantsignal(PF_LOCAL)"

l_.str.3:                               ; @.str.3
	.asciz	"test_write_wantsignal(PF_LOCAL)"

l_.str.4:                               ; @.str.4
	.asciz	"test_send_wantsignal(PF_INET)"

l_.str.5:                               ; @.str.5
	.asciz	"test_write_wantsignal(PF_INET)"

	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"PASS\n"

.subsections_via_symbols
