	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_asoc_get_hmac        ## -- Begin function sctp_auth_asoc_get_hmac
	.p2align	4, 0x90
_sctp_auth_asoc_get_hmac:               ## @sctp_auth_asoc_get_hmac
	.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
	movslq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_sctp_hmac_list@GOTPCREL(%rip), %rax
	shlq	$2, %rbx
	addq	(%rax), %rbx
	jmp	LBB0_2
LBB0_3:
	movq	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	movl	8(%r14), %edi
	callq	_ntohs
	movslq	%eax, %rcx
	movabsq	$8589934588, %rax               ## imm = 0x1FFFFFFFC
	addq	%rcx, %rax
	shrq	%rax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	_SCTP_AUTH_HMAC_ID_MAX@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_2
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_ntohs
	cmpl	(%r12), %eax
	jg	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_sctp_hmac_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_6
## %bb.9:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	leaq	(%rcx,%rdx,4), %rax
	cmovneq	%rax, %rbx
	jmp	LBB0_2
LBB0_11:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_hmac_list,8,3             ## @sctp_hmac_list
	.comm	_SCTP_AUTH_HMAC_ID_MAX,4,2      ## @SCTP_AUTH_HMAC_ID_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_asoc_get_hmac        ; -- Begin function sctp_auth_asoc_get_hmac
	.p2align	2
_sctp_auth_asoc_get_hmac:               ; @sctp_auth_asoc_get_hmac
	.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
	ldrsw	x8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _sctp_hmac_list@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sctp_hmac_list@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8, lsl #2
	b	LBB0_10
LBB0_2:
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_9
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_ntohs
	mov	x8, #8589934588
	add	x8, x8, w0, sxtw
	lsr	x9, x8, #1
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x20, #0
	ubfx	x8, x8, #1, #32
	lsl	x21, x8, #2
Lloh3:
	adrp	x22, _SCTP_AUTH_HMAC_ID_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SCTP_AUTH_HMAC_ID_MAX@GOTPAGEOFF]
Lloh5:
	adrp	x23, _sctp_hmac_list@GOTPAGE
Lloh6:
	ldr	x23, [x23, _sctp_hmac_list@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #4
	cmp	x21, x20
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	ldr	w9, [x8, w0, sxtw #2]
	cbz	w9, LBB0_5
; %bb.8:
	sxtw	x9, w0
	add	x8, x8, x9, lsl #2
	cmp	w0, #0
	csel	x0, xzr, x8, eq
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_hmac_list,8,3             ; @sctp_hmac_list
	.comm	_SCTP_AUTH_HMAC_ID_MAX,4,2      ; @SCTP_AUTH_HMAC_ID_MAX
.subsections_via_symbols
