	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_ep_set_hmacs         ## -- Begin function sctp_auth_ep_set_hmacs
	.p2align	4, 0x90
_sctp_auth_ep_set_hmacs:                ## @sctp_auth_ep_set_hmacs
	.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	(%rsi), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r9
	movq	_SCTP_AUTH_HMAC_ID_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_sctp_hmac_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_SCTP_AUTH_HMAC_ID_SHA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	movl	$1, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rbx,8), %rcx
	cmpq	%r10, %rcx
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rsi,%rcx,4)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rdi
	cmovel	%r8d, %eax
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_2
## %bb.7:
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	8(%r15), %rsi
	shll	$3, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	(%r15), %eax
	leal	4(,%rax,8), %edi
	callq	_htons
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_AUTH_HMAC_ID_MAX,8,3      ## @SCTP_AUTH_HMAC_ID_MAX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SCTP_AUTH_HMAC_ID_SHA1,8,3     ## @SCTP_AUTH_HMAC_ID_SHA1
	.comm	_sctp_hmac_list,8,3             ## @sctp_hmac_list
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_ep_set_hmacs         ; -- Begin function sctp_auth_ep_set_hmacs
	.p2align	2
_sctp_auth_ep_set_hmacs:                ; @sctp_auth_ep_set_hmacs
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w9, #0
	ldr	x10, [x1, #8]
Lloh0:
	adrp	x11, _SCTP_AUTH_HMAC_ID_MAX@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SCTP_AUTH_HMAC_ID_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x12, _sctp_hmac_list@GOTPAGE
Lloh3:
	ldr	x12, [x12, _sctp_hmac_list@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
Lloh5:
	ldr	x12, [x12]
Lloh6:
	adrp	x13, _SCTP_AUTH_HMAC_ID_SHA1@GOTPAGE
Lloh7:
	ldr	x13, [x13, _SCTP_AUTH_HMAC_ID_SHA1@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x13]
	mov	x14, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x10]
	cmp	x15, x11
	b.hi	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w16, [x12, x15, lsl #2]
	cbz	w16, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x13, x15
	csinc	w9, w9, wzr, ne
	add	x10, x10, #8
	subs	x14, x14, #1
	b.ne	LBB0_2
; %bb.5:
	cbz	w9, LBB0_7
; %bb.6:
	ldr	x9, [x19]
	ldr	w0, [x9, #4]
	ldr	x1, [x20, #8]
	lsl	w2, w8, #3
	bl	_memcpy
	ldr	w8, [x20]
	mov	w0, #4
	bfi	w0, w8, #3, #29
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_AUTH_HMAC_ID_MAX,8,3      ; @SCTP_AUTH_HMAC_ID_MAX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SCTP_AUTH_HMAC_ID_SHA1,8,3     ; @SCTP_AUTH_HMAC_ID_SHA1
	.comm	_sctp_hmac_list,8,3             ; @sctp_hmac_list
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
