	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sctp_auth_cid
___sctp_auth_cid:                       ## @__sctp_auth_cid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	callq	_ntohs
	addl	$65532, %eax                    ## imm = 0xFFFC
	andl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_7
## %bb.3:
	movq	(%r15), %r8
	movl	%eax, %eax
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r8,%rdx,4), %edi
	movl	%edi, %esi
	andl	$-4, %esi
	cmpl	$128, %esi
	setne	%bl
	cmpl	%r12d, %edi
	sete	%cl
	andb	%bl, %cl
	cmpb	$1, %cl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rdx), %rcx
	cmpq	%rax, %rdx
	movq	%rcx, %rdx
	jb	LBB0_4
LBB0_6:
	cmpl	%r12d, %edi
	sete	%al
	cmpl	$128, %esi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___sctp_auth_cid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sctp_auth_cid
___sctp_auth_cid:                       ; @__sctp_auth_cid
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_7
; %bb.2:
	bl	_ntohs
	mov	w8, #65532
	add	w8, w0, w8
	ands	w8, w8, #0xffff
	b.eq	LBB0_6
; %bb.3:
	mov	x9, #0
	ldr	x10, [x20]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9, lsl #2]
	and	w11, w12, #0xfffffffc
	cmp	w11, #128
	ccmp	w12, w19, #0, ne
	add	x9, x9, #1
	ccmp	x9, x8, #2, ne
	b.lo	LBB0_4
; %bb.5:
	cmp	w12, w19
	mov	w8, #128
	ccmp	w11, w8, #4, eq
	cset	w0, ne
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___sctp_auth_cid
.subsections_via_symbols
