	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_add_hmacid           ## -- Begin function sctp_auth_add_hmacid
	.p2align	4, 0x90
_sctp_auth_add_hmacid:                  ## @sctp_auth_add_hmacid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	4(%rdi), %eax
	jne	LBB0_3
## %bb.2:
	movq	_SCTP_DEBUG_AUTH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_SCTPDBG
	jmp	LBB0_10
LBB0_3:
	movq	_SCTP_AUTH_HMAC_ID_SHA1@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_SCTP_AUTH_HMAC_ID_SHA256@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_10
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rcx,%rdx,8)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_8
LBB0_9:
	movq	_SCTP_DEBUG_AUTH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_SCTPDBG
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movq	%r15, (%rax,%rcx,8)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DEBUG_AUTH1,4,2           ## @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCTP: HMAC id list full, ignoring add %u\n"

	.comm	_SCTP_AUTH_HMAC_ID_SHA1,8,3     ## @SCTP_AUTH_HMAC_ID_SHA1
	.comm	_SCTP_AUTH_HMAC_ID_SHA256,8,3   ## @SCTP_AUTH_HMAC_ID_SHA256
L_.str.1:                               ## @.str.1
	.asciz	"SCTP: add HMAC id %u to list\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_add_hmacid           ; -- Begin function sctp_auth_add_hmacid
	.p2align	2
_sctp_auth_add_hmacid:                  ; @sctp_auth_add_hmacid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
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, x19
	bl	_SCTPDBG
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x9, _SCTP_AUTH_HMAC_ID_SHA1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCTP_AUTH_HMAC_ID_SHA1@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _SCTP_AUTH_HMAC_ID_SHA256@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SCTP_AUTH_HMAC_ID_SHA256@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x19
	ccmp	x10, x19, #4, ne
	b.ne	LBB0_9
; %bb.4:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x9, [x20, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x19
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_8:
Lloh11:
	adrp	x8, _SCTP_DEBUG_AUTH1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCTP_DEBUG_AUTH1@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_SCTPDBG
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	w10, w9, #1
	str	w10, [x20]
	str	x19, [x8, x9, lsl #3]
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DEBUG_AUTH1,4,2           ; @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCTP: HMAC id list full, ignoring add %u\n"

	.comm	_SCTP_AUTH_HMAC_ID_SHA1,8,3     ; @SCTP_AUTH_HMAC_ID_SHA1
	.comm	_SCTP_AUTH_HMAC_ID_SHA256,8,3   ; @SCTP_AUTH_HMAC_ID_SHA256
l_.str.1:                               ; @.str.1
	.asciz	"SCTP: add HMAC id %u to list\n"

.subsections_via_symbols
