	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_ep_add_chunkid       ## -- Begin function sctp_auth_ep_add_chunkid
	.p2align	4, 0x90
_sctp_auth_ep_add_chunkid:              ## @sctp_auth_ep_add_chunkid
	.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	%esi, %r15d
	movq	(%rdi), %rbx
	movl	%esi, %edi
	movq	%rbx, %rsi
	callq	___sctp_auth_cid
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	callq	_ntohs
	leaq	-4(%rax), %rcx
	movq	_SCTP_NUM_CHUNK_TYPES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movq	8(%rbx), %rcx
	movl	%r15d, -16(%rcx,%rax,4)
	incq	%rax
	movq	%rax, %rdi
	callq	_htons
	movl	%eax, (%rbx)
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_NUM_CHUNK_TYPES,8,3       ## @SCTP_NUM_CHUNK_TYPES
	.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_add_chunkid       ; -- Begin function sctp_auth_ep_add_chunkid
	.p2align	2
_sctp_auth_ep_add_chunkid:              ; @sctp_auth_ep_add_chunkid
	.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
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x1
	mov	x1, x19
	bl	___sctp_auth_cid
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19]
	bl	_ntohs
	sub	x8, x0, #4
Lloh0:
	adrp	x9, _SCTP_NUM_CHUNK_TYPES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_NUM_CHUNK_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	x9, [x19, #8]
	str	w20, [x9, x8, lsl #2]
	add	x0, x0, #1
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_NUM_CHUNK_TYPES,8,3       ; @SCTP_NUM_CHUNK_TYPES
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
