	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_negotiate_hmacid          ## -- Begin function sctp_negotiate_hmacid
	.p2align	4, 0x90
_sctp_negotiate_hmacid:                 ## @sctp_negotiate_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
	movq	_SCTP_AUTH_HMAC_ID_RSVD@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r15
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.3:
	movl	(%rsi), %edi
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%r8, %rcx
	je	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%edi, %edi
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rcx,8), %rdx
	movq	8(%rsi), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rax,%rbx,8), %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%rbx, %rdi
	jne	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movl	%ecx, %r14d
	movq	_SCTP_DEBUG_AUTH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_SCTPDBG
	shlq	$3, %r14
	addq	8(%r15), %r14
LBB0_10:
	movq	(%r14), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_AUTH_HMAC_ID_RSVD,8,3     ## @SCTP_AUTH_HMAC_ID_RSVD
	.comm	_SCTP_DEBUG_AUTH1,4,2           ## @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCTP: negotiated peer HMAC id %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_negotiate_hmacid          ; -- Begin function sctp_negotiate_hmacid
	.p2align	2
_sctp_negotiate_hmacid:                 ; @sctp_negotiate_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
Lloh0:
	adrp	x8, _SCTP_AUTH_HMAC_ID_RSVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_AUTH_HMAC_ID_RSVD@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.1:
	cbz	x1, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x20, #0
	ldr	w10, [x1]
Lloh2:
	adrp	x8, _SCTP_AUTH_HMAC_ID_RSVD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCTP_AUTH_HMAC_ID_RSVD@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	cmp	x20, x9
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x19, #8]
	ldr	x2, [x11, x20, lsl #3]
	ldr	x11, [x1, #8]
	mov	x12, x10
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x11]
	cmp	x2, x13
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x11, x11, #8
	subs	x12, x12, #1
	b.ne	LBB0_7
	b	LBB0_4
LBB0_9:
Lloh4:
	adrp	x8, _SCTP_DEBUG_AUTH1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCTP_DEBUG_AUTH1@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SCTPDBG
	ldr	x8, [x19, #8]
	add	x8, x8, w20, uxtw #3
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _SCTP_AUTH_HMAC_ID_RSVD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCTP_AUTH_HMAC_ID_RSVD@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_AUTH_HMAC_ID_RSVD,8,3     ; @SCTP_AUTH_HMAC_ID_RSVD
	.comm	_SCTP_DEBUG_AUTH1,4,2           ; @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCTP: negotiated peer HMAC id %u\n"

.subsections_via_symbols
