	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_sf_authenticate
_sctp_sf_authenticate:                  ## @sctp_sf_authenticate
	.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
	movq	%rcx, %r15
	movq	%rsi, %r14
	movq	16(%rcx), %rdi
	movq	(%rdi), %rbx
	movq	%rbx, 24(%rcx)
	movl	$16, %esi
	callq	_skb_pull
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_sctp_auth_asoc_verify_hmac_id
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	12(%rbx), %edi
	callq	_ntohs
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sctp_auth_get_shkey
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	%rax, %r12
	addl	$-4, %r12d
	movl	8(%rbx), %edi
	callq	_ntohs
	movq	%rax, %rdi
	callq	_sctp_auth_get_hmac
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.7:
	movq	(%rbx), %rbx
	movq	16(%r15), %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	8(%r15), %rdx
	movq	16(%r15), %rsi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_sctp_auth_calculate_hmac
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcmp
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_kfree
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	_SCTP_IERROR_BAD_SIG@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_SCTP_IERROR_AUTH_BAD_HMAC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_SCTP_IERROR_PROTO_VIOLATION@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_SCTP_IERROR_AUTH_BAD_KEYID@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_SCTP_IERROR_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movl	$1, (%r15)
	movq	_SCTP_IERROR_NO_ERROR@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_IERROR_AUTH_BAD_HMAC,4,2  ## @SCTP_IERROR_AUTH_BAD_HMAC
	.comm	_SCTP_IERROR_AUTH_BAD_KEYID,4,2 ## @SCTP_IERROR_AUTH_BAD_KEYID
	.comm	_SCTP_IERROR_PROTO_VIOLATION,4,2 ## @SCTP_IERROR_PROTO_VIOLATION
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_SCTP_IERROR_BAD_SIG,4,2        ## @SCTP_IERROR_BAD_SIG
	.comm	_SCTP_IERROR_NO_ERROR,4,2       ## @SCTP_IERROR_NO_ERROR
	.comm	_SCTP_IERROR_NOMEM,4,2          ## @SCTP_IERROR_NOMEM
	.no_dead_strip	_sctp_sf_authenticate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_sf_authenticate
_sctp_sf_authenticate:                  ; @sctp_sf_authenticate
	.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	x19, x3
	mov	x20, x1
	ldr	x0, [x3, #16]
	ldr	x22, [x0]
	str	x22, [x3, #24]
	mov	w1, #16
	bl	_skb_pull
	ldr	w1, [x22, #8]
	mov	x0, x20
	bl	_sctp_auth_asoc_verify_hmac_id
	cbz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x22, #12]
	bl	_ntohs
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_sctp_auth_get_shkey
	cbz	w0, LBB0_9
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_ntohs
	sub	w21, w0, #4
	ldr	w0, [x22, #8]
	bl	_ntohs
	bl	_sctp_auth_get_hmac
	ldr	w8, [x0]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	x22, [x22]
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_skb_pull
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_kmemdup
	cbz	x0, LBB0_10
; %bb.5:
	mov	x23, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	ldp	x2, x1, [x19, #8]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_sctp_auth_calculate_hmac
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_memcmp
	mov	x20, x0
	mov	x0, x23
	bl	_kfree
	cbz	x20, LBB0_11
; %bb.6:
Lloh2:
	adrp	x8, _SCTP_IERROR_BAD_SIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCTP_IERROR_BAD_SIG@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x8, _SCTP_IERROR_AUTH_BAD_HMAC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCTP_IERROR_AUTH_BAD_HMAC@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x8, _SCTP_IERROR_PROTO_VIOLATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_IERROR_PROTO_VIOLATION@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, _SCTP_IERROR_AUTH_BAD_KEYID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCTP_IERROR_AUTH_BAD_KEYID@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x8, _SCTP_IERROR_NOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCTP_IERROR_NOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x19]
Lloh12:
	adrp	x8, _SCTP_IERROR_NO_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCTP_IERROR_NO_ERROR@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_IERROR_AUTH_BAD_HMAC,4,2  ; @SCTP_IERROR_AUTH_BAD_HMAC
	.comm	_SCTP_IERROR_AUTH_BAD_KEYID,4,2 ; @SCTP_IERROR_AUTH_BAD_KEYID
	.comm	_SCTP_IERROR_PROTO_VIOLATION,4,2 ; @SCTP_IERROR_PROTO_VIOLATION
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_SCTP_IERROR_BAD_SIG,4,2        ; @SCTP_IERROR_BAD_SIG
	.comm	_SCTP_IERROR_NO_ERROR,4,2       ; @SCTP_IERROR_NO_ERROR
	.comm	_SCTP_IERROR_NOMEM,4,2          ; @SCTP_IERROR_NOMEM
	.no_dead_strip	_sctp_sf_authenticate
.subsections_via_symbols
