	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_fill_hmac_digest_m        ## -- Begin function sctp_fill_hmac_digest_m
	.p2align	4, 0x90
_sctp_fill_hmac_digest_m:               ## @sctp_fill_hmac_digest_m
	.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
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	movq	%rcx, %rbx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.2:
	movq	%r8, %r13
	movq	%rdx, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	24(%rbx), %edi
	callq	_sctp_get_hmac_digest_len
	movl	(%r12), %r14d
	movl	%eax, %edi
	callq	_SCTP_SIZE32
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%rbx), %rdi
	cmpq	%r13, (%rbx)
	jne	LBB0_4
## %bb.3:
	testq	%rdi, %rdi
	movl	%r15d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_10
	jmp	LBB0_6
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%rdi, %rdi
	movl	%r15d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	callq	_sctp_free_key
LBB0_6:
	leaq	28(%rbx), %rdi
	movq	%r13, %rsi
	callq	_sctp_find_sharedkey
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%rax), %rdx
	jmp	LBB0_9
LBB0_7:
	xorl	%edx, %edx
LBB0_9:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_sctp_compute_hashkey
	movq	%rax, 8(%rbx)
	movq	%r13, (%rbx)
	movq	_SCTP_DEBUG_AUTH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_SCTPDBG
LBB0_10:
	movq	%r13, %rdi
	callq	_htons
	movl	%eax, 4(%r12)
	movl	24(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	(%r12), %r8d
	movq	%r15, %rdx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_compute_hmac_m            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DEBUG_AUTH1,4,2           ## @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"caching key id %u\n"

	.comm	_SCTP_AUTH_DEBUG,8,3            ## @SCTP_AUTH_DEBUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_fill_hmac_digest_m        ; -- Begin function sctp_fill_hmac_digest_m
	.p2align	2
_sctp_fill_hmac_digest_m:               ; @sctp_fill_hmac_digest_m
	.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
	cbz	x2, LBB0_4
; %bb.1:
	mov	x22, x3
	cbz	x3, LBB0_4
; %bb.2:
	mov	x23, x4
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x22, #24]
	bl	_sctp_get_hmac_digest_len
	ldr	w24, [x21]
	bl	_SCTP_SIZE32
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldp	x8, x0, [x22]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.3:
	cbnz	x0, LBB0_11
	b	LBB0_7
LBB0_4:
	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
LBB0_5:
	cbz	x0, LBB0_7
; %bb.6:
	bl	_sctp_free_key
LBB0_7:
	add	x0, x22, #28
	mov	x1, x23
	bl	_sctp_find_sharedkey
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x2, [x0]
	b	LBB0_10
LBB0_9:
	mov	x2, #0
LBB0_10:
	ldp	w1, w0, [x22, #16]
	bl	_sctp_compute_hashkey
	stp	x23, x0, [x22]
Lloh0:
	adrp	x8, _SCTP_DEBUG_AUTH1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_DEBUG_AUTH1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_SCTPDBG
LBB0_11:
	mov	x0, x23
	bl	_htons
	str	w0, [x21, #4]
	ldr	w0, [x22, #24]
	ldr	x1, [x22, #8]
	ldr	w4, [x21]
	mov	x2, x20
	mov	x3, x19
	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
	b	_sctp_compute_hmac_m
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DEBUG_AUTH1,4,2           ; @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"caching key id %u\n"

	.comm	_SCTP_AUTH_DEBUG,8,3            ; @SCTP_AUTH_DEBUG
.subsections_via_symbols
