	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_asoc_set_default_hmac ## -- Begin function sctp_auth_asoc_set_default_hmac
	.p2align	4, 0x90
_sctp_auth_asoc_set_default_hmac:       ## @sctp_auth_asoc_set_default_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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r12
	movl	8(%rsi), %edi
	callq	_ntohs
	movabsq	$8589934588, %rcx               ## imm = 0x1FFFFFFFC
	addq	%rax, %rcx
	shrq	%rcx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movl	%ecx, %r13d
	xorl	%ebx, %ebx
	movq	_SCTP_AUTH_HMAC_ID_MAX@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_ntohs
	cmpq	(%r14), %rax
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_AUTH_HMAC_ID_MAX,8,3      ## @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_set_default_hmac ; -- Begin function sctp_auth_asoc_set_default_hmac
	.p2align	2
_sctp_auth_asoc_set_default_hmac:       ; @sctp_auth_asoc_set_default_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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	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_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_ntohs
	mov	x8, #8589934588
	add	x8, x0, x8
	lsr	x9, x8, #1
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.3:
	mov	x21, #0
	ldr	x22, [x19, #8]
	ubfx	x8, x8, #1, #32
	lsl	x23, x8, #2
Lloh0:
	adrp	x24, _SCTP_AUTH_HMAC_ID_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SCTP_AUTH_HMAC_ID_MAX@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #4
	cmp	x23, x21
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x21]
	bl	_ntohs
	ldr	x8, [x24]
	cmp	x0, x8
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x0, lsl #3]
	cbz	x8, LBB0_4
; %bb.7:
	str	w0, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_AUTH_HMAC_ID_MAX,8,3      ; @SCTP_AUTH_HMAC_ID_MAX
.subsections_via_symbols
