	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_asoc_init_active_key ## -- Begin function sctp_auth_asoc_init_active_key
	.p2align	4, 0x90
_sctp_auth_asoc_init_active_key:        ## @sctp_auth_asoc_init_active_key
	.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
	movq	_sctp_auth_enable@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 12(%rdi)
	je	LBB0_5
## %bb.2:
	movl	%esi, %r15d
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sctp_auth_get_shkey
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_sctp_auth_asoc_create_secret
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_sctp_auth_key_put
	movq	%r15, (%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_auth_enable,4,2           ## @sctp_auth_enable
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_asoc_init_active_key ; -- Begin function sctp_auth_asoc_init_active_key
	.p2align	2
_sctp_auth_asoc_init_active_key:        ; @sctp_auth_asoc_init_active_key
	.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
Lloh0:
	adrp	x8, _sctp_auth_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_auth_enable@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x1
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_sctp_auth_get_shkey
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_sctp_auth_asoc_create_secret
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_sctp_auth_key_put
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_auth_enable,4,2           ; @sctp_auth_enable
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
