	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mk_pair_of_sockets
_mk_pair_of_sockets:                    ## @mk_pair_of_sockets
	.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	%rdi, %r14
	movq	_PF_LOCAL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_ATF_REQUIRE
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_bzero
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$12, -56(%rbp)
	movl	-52(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	$12, %edx
	callq	_bind
	movl	%r12d, %edi
	movl	$-1, %esi
	callq	_listen
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_CHECK_EQ
	movl	(%r13), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r13d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_ATF_REQUIRE
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	$12, %edx
	callq	_connect
	testl	%eax, %eax
	jne	LBB0_1
LBB0_2:
	movl	%r12d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_3
LBB0_4:
	movl	%ebx, (%r14)
	movl	%r13d, 4(%r14)
	movl	%r12d, %edi
	callq	_close
	leaq	L_.str(%rip), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_mk_pair_of_sockets.cold.2
	jmp	LBB0_2
LBB0_3:
	callq	_mk_pair_of_sockets.cold.1
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function mk_pair_of_sockets.cold.1
_mk_pair_of_sockets.cold.1:             ## @mk_pair_of_sockets.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_tc_fail
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function mk_pair_of_sockets.cold.2
_mk_pair_of_sockets.cold.2:             ## @mk_pair_of_sockets.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sock"

	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_SEQPACKET,4,2             ## @SOCK_SEQPACKET
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
L_.str.1:                               ## @.str.1
	.asciz	"connect"

L_.str.2:                               ## @.str.2
	.asciz	"connect(2) failed"

L_.str.3:                               ## @.str.3
	.asciz	"accept"

L_.str.4:                               ## @.str.4
	.asciz	"accept(2) failed"

	.no_dead_strip	_mk_pair_of_sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mk_pair_of_sockets
_mk_pair_of_sockets:                    ; @mk_pair_of_sockets
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _PF_LOCAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PF_LOCAL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _SOCK_SEQPACKET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SOCK_SEQPACKET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_ATF_REQUIRE
	mov	w23, #12
	mov	x0, sp
	mov	w1, #12
	bl	_bzero
Lloh4:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w23, [sp]
	ldr	w0, [sp, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	x1, sp
	mov	x0, x20
	mov	w2, #12
	bl	_bind
	mov	x0, x20
	mov	w1, #-1
	bl	_listen
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_CHECK_EQ
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_ATF_REQUIRE
	mov	x1, sp
	mov	x0, x21
	mov	w2, #12
	bl	_connect
	cbnz	w0, LBB0_3
LBB0_1:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	mov	x22, x0
	cmn	w0, #1
	b.eq	LBB0_4
LBB0_2:
	stp	w22, w21, [x19]
	mov	x0, x20
	bl	_close
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	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_3:
	bl	_mk_pair_of_sockets.cold.2
	b	LBB0_1
LBB0_4:
	bl	_mk_pair_of_sockets.cold.1
	b	LBB0_2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function mk_pair_of_sockets.cold.1
_mk_pair_of_sockets.cold.1:             ; @mk_pair_of_sockets.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function mk_pair_of_sockets.cold.2
_mk_pair_of_sockets.cold.2:             ; @mk_pair_of_sockets.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sock"

	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_SEQPACKET,4,2             ; @SOCK_SEQPACKET
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
l_.str.1:                               ; @.str.1
	.asciz	"connect"

l_.str.2:                               ; @.str.2
	.asciz	"connect(2) failed"

l_.str.3:                               ; @.str.3
	.asciz	"accept"

l_.str.4:                               ; @.str.4
	.asciz	"accept(2) failed"

	.no_dead_strip	_mk_pair_of_sockets
.subsections_via_symbols
