	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_inet_listen               ## -- Begin function sctp_inet_listen
	.p2align	4, 0x90
_sctp_inet_listen:                      ## @sctp_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	%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, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_sctp_sk
	movq	8(%rax), %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	%r15d, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_sctp_lock_sock
	movq	_UDP_HIGH_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_style
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movq	(%r13), %rax
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.7:
	movq	_LISTENING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_sstate
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	%r15d, (%r14)
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_sstate
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	callq	_sctp_unhash_endpoint
	movq	_SCTP_SS_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	callq	_sctp_sk
	movq	(%rax), %rax
	movl	$1, (%rax)
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sctp_listen_start
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_sctp_release_sock
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UDP_HIGH_BANDWIDTH,4,2         ## @UDP_HIGH_BANDWIDTH
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_CLOSED,4,2                     ## @CLOSED
	.comm	_SCTP_SS_CLOSED,4,2             ## @SCTP_SS_CLOSED
	.comm	_LISTENING,4,2                  ## @LISTENING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_inet_listen               ; -- Begin function sctp_inet_listen
	.p2align	2
_sctp_inet_listen:                      ; @sctp_inet_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	x21, x1
	mov	x23, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_sctp_sk
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	lsr	w0, w21, #31
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.1:
	mov	x0, x19
	bl	_sctp_lock_sock
Lloh3:
	adrp	x8, _UDP_HIGH_BANDWIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UDP_HIGH_BANDWIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_style
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	cbz	w21, LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _LISTENING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LISTENING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_sstate
	cbz	x0, LBB0_10
; %bb.5:
	str	w21, [x19]
LBB0_6:
	mov	w20, #0
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _CLOSED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLOSED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_sstate
	cbnz	x0, LBB0_11
; %bb.8:
	mov	x0, x22
	bl	_sctp_unhash_endpoint
Lloh15:
	adrp	x8, _SCTP_SS_CLOSED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCTP_SS_CLOSED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.9:
	mov	x0, x19
	bl	_sctp_sk
	mov	w20, #0
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_sctp_listen_start
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_sctp_release_sock
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UDP_HIGH_BANDWIDTH,4,2         ; @UDP_HIGH_BANDWIDTH
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_CLOSED,4,2                     ; @CLOSED
	.comm	_SCTP_SS_CLOSED,4,2             ; @SCTP_SS_CLOSED
	.comm	_LISTENING,4,2                  ; @LISTENING
.subsections_via_symbols
