	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PF_LOCAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movl	%ebx, %edi
	callq	_close
	movl	(%r14), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	movl	%ebx, %edi
	callq	_close
	movl	(%r14), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_close
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPROTOTYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_8:
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	cmpl	$0, -48(%rbp)
	js	LBB0_11
LBB0_12:
	cmpl	$0, -44(%rbp)
	js	LBB0_13
LBB0_14:
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	js	LBB0_15
## %bb.16:
	cmpl	$0, -48(%rbp)
	js	LBB0_17
LBB0_18:
	cmpl	$0, -44(%rbp)
	js	LBB0_19
LBB0_20:
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	callq	_err
	cmpl	$0, -48(%rbp)
	jns	LBB0_12
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
	cmpl	$0, -44(%rbp)
	jns	LBB0_14
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	callq	_err
	cmpl	$0, -48(%rbp)
	jns	LBB0_18
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
	cmpl	$0, -44(%rbp)
	jns	LBB0_20
LBB0_19:
	leaq	L_.str.9(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.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	"socket(PF_LOCAL, SOCK_STREAM, 0)"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.1:                               ## @.str.1
	.asciz	"socket(PF_LOCAL, SOCK_DGRAM, 0)"

	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
L_.str.2:                               ## @.str.2
	.asciz	"socket(PF_LOCAL, SOCK_RAW, 0) returned %d"

	.comm	_errno,8,3                      ## @errno
	.comm	_EPROTOTYPE,8,3                 ## @EPROTOTYPE
L_.str.3:                               ## @.str.3
	.asciz	"socket(PF_LOCAL, SOCK_RAW, 0)"

L_.str.4:                               ## @.str.4
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks)"

L_.str.5:                               ## @.str.5
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [0] < 0"

L_.str.6:                               ## @.str.6
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [1] < 1"

L_.str.7:                               ## @.str.7
	.asciz	"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks)"

L_.str.8:                               ## @.str.8
	.asciz	"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [0] < 0"

L_.str.9:                               ## @.str.9
	.asciz	"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [1] < 1"

.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
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	x20, _PF_LOCAL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PF_LOCAL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x22, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	mov	x0, x19
	bl	_close
	ldr	w0, [x20]
Lloh9:
	adrp	x21, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
	mov	x0, x19
	bl	_close
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	x19, x0
	bl	_close
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_6:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _EPROTOTYPE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EPROTOTYPE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_8:
	ldr	w0, [x20]
	ldr	w1, [x22]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	tbnz	x0, #63, LBB0_16
; %bb.9:
	ldr	w8, [sp, #16]
	tbnz	w8, #31, LBB0_17
LBB0_10:
	ldr	w8, [sp, #20]
	tbnz	w8, #31, LBB0_18
LBB0_11:
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	tbnz	x0, #63, LBB0_19
; %bb.12:
	ldr	w8, [sp, #16]
	tbnz	w8, #31, LBB0_20
LBB0_13:
	ldr	w8, [sp, #20]
	tbnz	w8, #31, LBB0_21
LBB0_14:
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
	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_22
; %bb.15:
	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_16:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_err
	ldr	w8, [sp, #16]
	tbz	w8, #31, LBB0_10
LBB0_17:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_errx
	ldr	w8, [sp, #20]
	tbz	w8, #31, LBB0_11
LBB0_18:
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_errx
	b	LBB0_11
LBB0_19:
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	bl	_err
	ldr	w8, [sp, #16]
	tbz	w8, #31, LBB0_13
LBB0_20:
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #-1
	bl	_errx
	ldr	w8, [sp, #20]
	tbz	w8, #31, LBB0_14
LBB0_21:
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #-1
	bl	_errx
	b	LBB0_14
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.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	"socket(PF_LOCAL, SOCK_STREAM, 0)"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.1:                               ; @.str.1
	.asciz	"socket(PF_LOCAL, SOCK_DGRAM, 0)"

	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
l_.str.2:                               ; @.str.2
	.asciz	"socket(PF_LOCAL, SOCK_RAW, 0) returned %d"

	.comm	_errno,8,3                      ; @errno
	.comm	_EPROTOTYPE,8,3                 ; @EPROTOTYPE
l_.str.3:                               ; @.str.3
	.asciz	"socket(PF_LOCAL, SOCK_RAW, 0)"

l_.str.4:                               ; @.str.4
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks)"

l_.str.5:                               ; @.str.5
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [0] < 0"

l_.str.6:                               ; @.str.6
	.asciz	"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [1] < 1"

l_.str.7:                               ; @.str.7
	.asciz	"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks)"

l_.str.8:                               ; @.str.8
	.asciz	"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [0] < 0"

l_.str.9:                               ; @.str.9
	.asciz	"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [1] < 1"

.subsections_via_symbols
