	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function listen_connect_drop
_listen_connect_drop:                   ## @listen_connect_drop
	.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	$32, %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)
	leaq	L_.str(%rip), %rsi
	movq	_test@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	leaq	-60(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_save_sysctls
	movq	_PF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_my_socket
	movl	%eax, %ebx
	leaq	-64(%rbp), %r14
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_my_bind
	movl	%ebx, %edi
	movl	$-1, %esi
	callq	_my_listen
	leaq	-48(%rbp), %rdi
	callq	_my_socketpair
	movl	$4, -52(%rbp)
	leaq	-52(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_my_getsockname
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_my_socket
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_setnonblock
	movl	-52(%rbp), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_my_connect
	movl	$1, %edi
	callq	_sleep
	movl	-48(%rbp), %edi
	movl	%ebx, %esi
	callq	_sendfd
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movl	%ebx, %edi
	callq	_close3
	movl	$1, %edi
	callq	_sleep
	movl	%r15d, %edi
	callq	_close
	movl	-60(%rbp), %edi
	movl	-56(%rbp), %esi
	callq	_test_sysctls
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"listen_connect_drop"

	.comm	_test,8,3                       ## @test
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.no_dead_strip	_listen_connect_drop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function listen_connect_drop
_listen_connect_drop:                   ; @listen_connect_drop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _test@GOTPAGE
Lloh4:
	ldr	x8, [x8, _test@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	str	x1, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	x0, sp, #20
	add	x1, sp, #16
	bl	_save_sysctls
Lloh10:
	adrp	x20, _PF_INET@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PF_INET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh12:
	adrp	x21, _SOCK_STREAM@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_my_socket
	mov	x19, x0
	mov	w22, #4
	add	x1, sp, #24
	mov	w2, #4
	bl	_my_bind
	mov	x0, x19
	mov	w1, #-1
	bl	_my_listen
	add	x0, sp, #32
	bl	_my_socketpair
	str	w22, [sp, #12]
	add	x1, sp, #24
	add	x2, sp, #12
	mov	x0, x19
	bl	_my_getsockname
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_my_socket
	mov	x20, x0
	bl	_setnonblock
	ldr	w2, [sp, #12]
	add	x1, sp, #24
	mov	x0, x20
	bl	_my_connect
	mov	w0, #1
	bl	_sleep
	ldr	w0, [sp, #32]
	mov	x1, x19
	bl	_sendfd
	ldp	w1, w2, [sp, #32]
	mov	x0, x19
	bl	_close3
	mov	w0, #1
	bl	_sleep
	mov	x0, x20
	bl	_close
	ldp	w1, w0, [sp, #16]
	bl	_test_sysctls
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"listen_connect_drop"

	.comm	_test,8,3                       ; @test
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.no_dead_strip	_listen_connect_drop
.subsections_via_symbols
