	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dn_listen
_dn_listen:                             ## @dn_listen
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_DN_SK
	movq	(%rax), %rax
	movq	_DN_O@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	%r15d, 8(%rbx)
	movq	$0, 16(%rbx)
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_dn_rehash_sock
	xorl	%r14d, %r14d
LBB0_4:
	movq	%rbx, %rdi
	callq	_release_sock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_DN_O,8,3                       ## @DN_O
	.comm	_TCP_LISTEN,8,3                 ## @TCP_LISTEN
	.no_dead_strip	_dn_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dn_listen
_dn_listen:                             ; @dn_listen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_lock_sock
Lloh3:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_DN_SK
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _DN_O@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DN_O@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x19]
Lloh9:
	adrp	x8, _TCP_LISTEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCP_LISTEN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	str	w21, [x19, #8]
	str	xzr, [x19, #16]
	str	x8, [x19]
	mov	x0, x19
	bl	_dn_rehash_sock
	mov	w20, #0
LBB0_4:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_DN_O,8,3                       ; @DN_O
	.comm	_TCP_LISTEN,8,3                 ; @TCP_LISTEN
	.no_dead_strip	_dn_listen
.subsections_via_symbols
