	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_listen
_unix_listen:                           ## @unix_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	%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	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_unix_sk
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$0, 4(%r12)
	je	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	callq	_unix_state_lock
	movq	(%r15), %rcx
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rdx
	movq	_TCP_LISTEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.5:
	cmpq	%rax, %rcx
	jne	LBB0_9
LBB0_6:
	cmpl	%r14d, 8(%r15)
	jge	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_wake_up_interruptible_all
	movq	(%r13), %rax
LBB0_8:
	movl	%r14d, 8(%r15)
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_init_peercred
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_unix_state_unlock
	xorl	%edi, %edi
	callq	_put_pid
	jmp	LBB0_10
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCP_CLOSE,8,3                  ## @TCP_CLOSE
	.comm	_TCP_LISTEN,8,3                 ## @TCP_LISTEN
	.no_dead_strip	_unix_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_listen
_unix_listen:                           ; @unix_listen
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_unix_sk
	mov	x21, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _SOCK_SEQPACKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_unix_state_lock
	ldr	x9, [x19]
Lloh9:
	adrp	x8, _TCP_CLOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x8]
Lloh12:
	adrp	x23, _TCP_LISTEN@GOTPAGE
Lloh13:
	ldr	x23, [x23, _TCP_LISTEN@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x9, x10
	ccmp	x9, x8, #4, ne
	b.ne	LBB0_7
; %bb.4:
	ldr	w9, [x19, #8]
	cmp	w9, w20
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_wake_up_interruptible_all
	ldr	x8, [x23]
LBB0_6:
	str	w20, [x19, #8]
	str	x8, [x19]
	mov	x0, x19
	bl	_init_peercred
	mov	w22, #0
LBB0_7:
	mov	x0, x19
	bl	_unix_state_unlock
	mov	x0, #0
	bl	_put_pid
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCP_CLOSE,8,3                  ; @TCP_CLOSE
	.comm	_TCP_LISTEN,8,3                 ; @TCP_LISTEN
	.no_dead_strip	_unix_listen
.subsections_via_symbols
