	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test
_test:                                  ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	movl	(%r15), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_4:
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_6:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_fcntl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_8:
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_10:
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	jle	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_errx
	jmp	LBB0_14
LBB0_12:
	jns	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_14:
	movl	%r12d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_send
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_16:
	movl	$1, %edi
	callq	_sleep
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_18:
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	jle	LBB0_19
## %bb.21:
	leaq	L_.str.8(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errx                           ## TAILCALL
LBB0_19:
	js	LBB0_22
## %bb.20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str.9(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(%s, SOCK_DGRAM, 0)"

L_.str.1:                               ## @.str.1
	.asciz	"Protocol %s bind(sock_receive)"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.2:                               ## @.str.2
	.asciz	"Protocll %s fcntl(sock_receive, FL_SETFL, O_NONBLOCK)"

L_.str.3:                               ## @.str.3
	.asciz	"Protocol %s connect(sock_send)"

L_.str.4:                               ## @.str.4
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) before: %zd"

L_.str.5:                               ## @.str.5
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) before"

L_.str.6:                               ## @.str.6
	.asciz	"Protocol %s send(sock_send, NULL, 0)"

L_.str.7:                               ## @.str.7
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) test"

L_.str.8:                               ## @.str.8
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) after: %zd"

L_.str.9:                               ## @.str.9
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) after"

	.no_dead_strip	_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test
_test:                                  ; @test
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_2:
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_4:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_bind
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_6:
Lloh8:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_fcntl
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_8:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_connect
	tbz	x0, #63, LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_10:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_recv
	mov	x3, x0
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.11:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_errx
	b	LBB0_14
LBB0_12:
	tbz	x3, #63, LBB0_14
; %bb.13:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_14:
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_send
	tbz	x0, #63, LBB0_16
; %bb.15:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_16:
	mov	w0, #1
	bl	_sleep
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_recv
	tbz	x0, #63, LBB0_18
; %bb.17:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_18:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_recv
	mov	x3, x0
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.19:
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_errx
LBB0_20:
	tbnz	x3, #63, LBB0_22
; %bb.21:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh28:
	adrp	x1, l_.str.9@PAGE
Lloh29:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(%s, SOCK_DGRAM, 0)"

l_.str.1:                               ; @.str.1
	.asciz	"Protocol %s bind(sock_receive)"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.2:                               ; @.str.2
	.asciz	"Protocll %s fcntl(sock_receive, FL_SETFL, O_NONBLOCK)"

l_.str.3:                               ; @.str.3
	.asciz	"Protocol %s connect(sock_send)"

l_.str.4:                               ; @.str.4
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) before: %zd"

l_.str.5:                               ; @.str.5
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) before"

l_.str.6:                               ; @.str.6
	.asciz	"Protocol %s send(sock_send, NULL, 0)"

l_.str.7:                               ; @.str.7
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) test"

l_.str.8:                               ; @.str.8
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) after: %zd"

l_.str.9:                               ; @.str.9
	.asciz	"Protocol %s recv(sock_receive, NULL, 0) after"

	.no_dead_strip	_test
.subsections_via_symbols
