	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_test
_stream_test:                           ## @stream_test
	.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	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_bzero
	movl	$12, -40(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	-36(%rbp), %edi
	movq	_socket_path@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_strcpy
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	movl	%r14d, %edi
	movl	$-1, %esi
	callq	_listen
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_6:
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	jne	LBB0_9
## %bb.10:
	movl	%r14d, %edi
	callq	_stream_server
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_9:
	movl	$1, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_stream_client
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kill
	movl	$1, %edi
	callq	_sleep
LBB0_11:
	movl	(%r15), %edi
	callq	_unlink
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stream_test: socket"

	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_socket_path,4,2                ## @socket_path
L_.str.1:                               ## @.str.1
	.asciz	"stream_test: bind"

L_.str.2:                               ## @.str.2
	.asciz	"stream_test: listen"

L_.str.3:                               ## @.str.3
	.asciz	"stream_test: fork"

	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.no_dead_strip	_stream_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_test
_stream_test:                           ; @stream_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _PF_UNIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_UNIX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	mov	w20, #12
	mov	x0, sp
	mov	w1, #12
	bl	_bzero
Lloh8:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w20, [sp]
	str	w8, [sp, #8]
	ldr	w0, [sp, #4]
Lloh11:
	adrp	x21, _socket_path@GOTPAGE
Lloh12:
	ldr	x21, [x21, _socket_path@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_strcpy
	mov	x1, sp
	mov	x0, x19
	mov	w2, #12
	bl	_bind
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
	mov	x0, x19
	mov	w1, #-1
	bl	_listen
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_6:
	bl	_fork
	mov	x20, x0
	tbnz	x0, #63, LBB0_9
; %bb.7:
	cbnz	x20, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_stream_server
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_10:
	mov	w0, #1
	bl	_sleep
	bl	_stream_client
Lloh19:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kill
	mov	w0, #1
	bl	_sleep
LBB0_11:
	ldr	w0, [x21]
	bl	_unlink
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stream_test: socket"

	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_socket_path,4,2                ; @socket_path
l_.str.1:                               ; @.str.1
	.asciz	"stream_test: bind"

l_.str.2:                               ; @.str.2
	.asciz	"stream_test: listen"

l_.str.3:                               ; @.str.3
	.asciz	"stream_test: fork"

	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.no_dead_strip	_stream_test
.subsections_via_symbols
