	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$4168, %eax                     ## imm = 0x1048
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_do_alrm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	$20, %edi
	callq	_alarm
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	$1, %r12d
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.1:
	movl	%eax, %ebx
	movl	$1, -4188(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-4188(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	leaq	-4200(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r15), %eax
	movl	%eax, -4192(%rbp)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -4196(%rbp)
	movl	$3737, %edi                     ## imm = 0xE99
	callq	_htons
	movl	%eax, -4200(%rbp)
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_bind
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.2:
	movl	$1, %r12d
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_listen
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.3:
	movl	(%r15), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.4:
	movl	%eax, %r15d
	leaq	-4200(%rbp), %rsi
	movl	%eax, %edi
	movl	$12, %edx
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.5:
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.6:
	movl	%ebx, %edi
	movl	%eax, %r14d
	callq	_close
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_F_GETFL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	_O_NONBLOCK@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	orl	(%r13), %eax
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	movl	%r15d, -80(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	%r14d, -4180(%rbp)              ## 4-byte Spill
	movl	%r14d, -68(%rbp)
	movl	%eax, -64(%rbp)
	movl	$1, -4184(%rbp)                 ## 4-byte Folded Spill
	movb	$1, %r12b
	leaq	-80(%rbp), %rbx
	movb	$1, %r14b
	movl	$1, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-4184(%rbp), %ecx               ## 4-byte Reload
	testl	%ecx, %ecx
	setne	%r14b
	testl	%r13d, %r13d
	setne	%r12b
	movl	%r13d, %eax
	orl	%ecx, %eax
	je	LBB0_20
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_poll
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r12b
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	callq	_close
	movl	$-1, -80(%rbp)
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %r14b
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_poll
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r13d, %r13d
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_POLLOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	leaq	-4176(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	callq	_close
	movl	$-1, -80(%rbp)
	xorl	%r13d, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-4180(%rbp), %edi               ## 4-byte Reload
	leaq	-4176(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-4180(%rbp), %edi               ## 4-byte Reload
	callq	_close
	movl	$-1, -68(%rbp)
	movl	$0, -4184(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_20:
	leaq	L_str.2(%rip), %rdi
	callq	_puts
	xorl	%r12d, %r12d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	addq	$4168, %rsp                     ## imm = 0x1048
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_do_alrm,4,2                    ## @do_alrm
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"1..1"

L_str.2:                                ## @str.2
	.asciz	"ok 1 - tcpfullwindowrst"

.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #4160
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #64
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh7:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _do_alrm@GOTPAGE
Lloh11:
	ldr	x8, [x8, _do_alrm@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_signal
	mov	w0, #20
	bl	_alarm
Lloh13:
	adrp	x20, _AF_INET@GOTPAGE
Lloh14:
	ldr	x20, [x20, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh15:
	adrp	x22, _SOCK_STREAM@GOTPAGE
Lloh16:
	ldr	x22, [x22, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	w19, #1
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.1:
	mov	x21, x0
	str	w19, [sp, #28]
Lloh17:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	w4, #4
	bl	_setsockopt
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20]
	str	w8, [sp, #24]
Lloh23:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [sp, #20]
	mov	w0, #3737
	bl	_htons
	str	w0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #12
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.2:
	mov	w19, #1
	mov	x0, x21
	mov	w1, #1
	bl	_listen
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.3:
	ldr	w0, [x20]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.4:
	mov	x19, x0
	add	x1, sp, #16
	mov	w2, #12
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_accept
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.6:
	mov	x20, x0
	mov	x0, x21
	bl	_close
Lloh26:
	adrp	x22, _F_SETFL@GOTPAGE
Lloh27:
	ldr	x22, [x22, _F_SETFL@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh28:
	adrp	x23, _F_GETFL@GOTPAGE
Lloh29:
	ldr	x23, [x23, _F_GETFL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_fcntl
Lloh30:
	adrp	x24, _O_NONBLOCK@GOTPAGE
Lloh31:
	ldr	x24, [x24, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_fcntl
	ldr	w21, [x22]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_fcntl
	ldr	w8, [x24]
	orr	w8, w8, w0
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_fcntl
Lloh32:
	adrp	x21, _POLLOUT@GOTPAGE
Lloh33:
	ldr	x21, [x21, _POLLOUT@GOTPAGEOFF]
	ldr	w8, [x21]
	stp	w19, w8, [x29, #-112]
	mov	w26, #1
	stp	w20, w8, [x29, #-100]
	mov	w22, #-1
	mov	w25, #1
	mov	w23, #1
	mov	w24, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	w23, #0
	cset	w25, ne
	cmp	w24, #0
	cset	w26, ne
	orr	w8, w24, w23
	cbz	w8, LBB0_21
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	sub	x0, x29, #112
	mov	w1, #2
	mov	w2, #1000
	bl	_poll
	cbnz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	tbz	w26, #0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_close
	stur	w22, [x29, #-112]
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w25, #0, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	sub	x0, x29, #112
	mov	w1, #2
	mov	w2, #1000
	bl	_poll
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w24, #0
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-104]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #4096
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_close
	mov	w24, #0
	stur	w22, [x29, #-112]
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x29, #-92]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #4096
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_close
	mov	w23, #0
	stur	w22, [x29, #-100]
	b	LBB0_7
LBB0_20:
	mov	w19, #1
	b	LBB0_22
LBB0_21:
Lloh34:
	adrp	x0, l_str.2@PAGE
Lloh35:
	add	x0, x0, l_str.2@PAGEOFF
	bl	_puts
	mov	w19, #0
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x19
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #64
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_do_alrm,4,2                    ; @do_alrm
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"1..1"

l_str.2:                                ; @str.2
	.asciz	"ok 1 - tcpfullwindowrst"

.subsections_via_symbols
