	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_listen                    ## -- Begin function inet_listen
	.p2align	4, 0x90
_inet_listen:                           ## @inet_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_lock_sock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	(%rbx), %rax
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movl	(%r15), %eax
	movq	_TCPF_CLOSE@GOTPCREL(%rip), %rcx
	movq	_TCPF_LISTEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	btl	%eax, %edx
	jae	LBB0_6
## %bb.3:
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_inet_csk_listen_start
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movl	%r14d, 4(%r15)
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r15, %rdi
	callq	_release_sock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_TCPF_CLOSE,4,2                 ## @TCPF_CLOSE
	.comm	_TCPF_LISTEN,4,2                ## @TCPF_LISTEN
	.comm	_TCP_LISTEN,1,0                 ## @TCP_LISTEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_listen                    ; -- Begin function inet_listen
	.p2align	2
_inet_listen:                           ; @inet_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	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_lock_sock
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldrb	w8, [x19]
Lloh9:
	adrp	x9, _TCPF_CLOSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCPF_CLOSE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _TCPF_LISTEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TCPF_LISTEN@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_6
; %bb.3:
Lloh15:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_inet_csk_listen_start
	mov	x21, x0
	cbnz	w0, LBB0_6
LBB0_5:
	mov	w21, #0
	str	w20, [x19, #4]
LBB0_6:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x21
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_TCPF_CLOSE,4,2                 ; @TCPF_CLOSE
	.comm	_TCPF_LISTEN,4,2                ; @TCPF_LISTEN
	.comm	_TCP_LISTEN,1,0                 ; @TCP_LISTEN
.subsections_via_symbols
