	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_err_lookup                ## -- Begin function sctp_err_lookup
	.p2align	4, 0x90
_sctp_err_lookup:                       ## @sctp_err_lookup
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	$0, -64(%rbp)
	movl	(%rdx), %edi
	callq	_ntohl
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r13d
	subl	%r12d, %r13d
	addl	(%rbx), %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%r14)
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%r15)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_sctp_get_af_specific
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	*(%r14)
	leaq	-96(%rbp), %r15
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	*(%r14)
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	___sctp_lookup_association
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	16(%rax), %r12
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	cmpq	8(%r14), %rax
	jne	LBB0_6
LBB0_9:
	movq	%r12, %rdi
	callq	_sctp_bh_lock_sock
	movq	%r12, %rdi
	callq	_sock_owned_by_user
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_LINUX_MIB_LOCKDROPPEDICMPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_NET_INC_STATS_BH
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	-64(%rbp), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_12
LBB0_3:
	cmpl	$12, %r13d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_6
## %bb.4:
	movq	12(%rdx), %rax
	movq	_SCTP_CID_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	4(%rdx), %edi
	callq	_ntohl
	cmpq	(%r14), %rax
	je	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_sctp_association_put
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_CID_INIT,8,3              ## @SCTP_CID_INIT
	.comm	_init_net,4,2                   ## @init_net
	.comm	_LINUX_MIB_LOCKDROPPEDICMPS,4,2 ## @LINUX_MIB_LOCKDROPPEDICMPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_err_lookup                ; -- Begin function sctp_err_lookup
	.p2align	2
_sctp_err_lookup:                       ; @sctp_err_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	ldr	w0, [x2]
	bl	_ntohl
	mov	x24, x0
	ldr	w26, [x23]
	ldr	w27, [x23, #8]
	str	xzr, [x20]
	str	xzr, [x19]
	mov	x0, x22
	bl	_sctp_get_af_specific
	mov	x25, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	mov	x22, #0
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	x8, [x25]
	add	x0, sp, #24
	mov	x1, x23
	mov	w2, #1
	blr	x8
	ldr	x8, [x25]
	add	x0, sp, #16
	mov	x1, x23
	mov	w2, #0
	blr	x8
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	___sctp_lookup_association
	cbz	x0, LBB0_11
; %bb.2:
	mov	x23, x0
	ldr	x22, [x0, #16]
	cbz	x24, LBB0_7
; %bb.3:
	ldr	x8, [x23, #8]
	cmp	x24, x8
	b.ne	LBB0_10
LBB0_4:
	mov	x0, x22
	bl	_sctp_bh_lock_sock
	mov	x0, x22
	bl	_sock_owned_by_user
	cbz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _LINUX_MIB_LOCKDROPPEDICMPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINUX_MIB_LOCKDROPPEDICMPS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _init_net@GOTPAGE
Lloh4:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_NET_INC_STATS_BH
LBB0_6:
	str	x23, [x20]
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_12
LBB0_7:
	sub	w8, w27, w21
	add	w8, w26, w8
	cmp	w8, #12
	b.lo	LBB0_10
; %bb.8:
	ldur	x8, [x21, #12]
Lloh5:
	adrp	x9, _SCTP_CID_INIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCTP_CID_INIT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x21, #4]
	bl	_ntohl
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_10:
	mov	x0, x23
	bl	_sctp_association_put
LBB0_11:
	mov	x22, #0
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_CID_INIT,8,3              ; @SCTP_CID_INIT
	.comm	_init_net,4,2                   ; @init_net
	.comm	_LINUX_MIB_LOCKDROPPEDICMPS,4,2 ; @LINUX_MIB_LOCKDROPPEDICMPS
.subsections_via_symbols
