	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_verify_ext_param
_sctp_verify_ext_param:                 ## @sctp_verify_ext_param
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_ntohs
	addl	$-4, %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	movl	%eax, %eax
	leaq	-1(%rax), %rcx
	movl	%eax, %r9d
	andl	$3, %r9d
	cmpq	$3, %rcx
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_19:
	testq	%r9, %r9
	je	LBB0_25
## %bb.20:
	leaq	(%rsi,%rdi,4), %rax
	xorl	%esi, %esi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	$1, %ecx
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rsi
	cmpq	%rsi, %r9
	je	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edx
	leal	-129(%rdx), %edi
	cmpl	$2, %edi
	jb	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$128, %edx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	$1, %r8d
	jmp	LBB0_24
LBB0_1:
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
LBB0_25:
	movq	_sctp_addip_noauth@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	$0, (%rdx)
	jne	LBB0_27
## %bb.26:
	movq	_sctp_addip_enable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	sete	%al
	testl	%r8d, %r8d
	setne	%dl
	testl	%ecx, %ecx
	sete	%cl
	orb	%dl, %cl
	orb	%al, %cl
	movzbl	%cl, %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	andl	$-4, %eax
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ecx
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rdi
	cmpq	%rdi, %rax
	je	LBB0_19
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %edx
	leal	-129(%rdx), %ebx
	cmpl	$2, %ebx
	jae	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r8d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rsi,%rdi,4), %edx
	leal	-129(%rdx), %ebx
	cmpl	$2, %ebx
	jae	LBB0_10
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %edx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r8d
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rsi,%rdi,4), %edx
	leal	-129(%rdx), %ebx
	cmpl	$2, %ebx
	jae	LBB0_13
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r8d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%rsi,%rdi,4), %edx
	leal	-129(%rdx), %ebx
	cmpl	$2, %ebx
	jb	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %edx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r8d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_addip_noauth,8,3          ## @sctp_addip_noauth
	.comm	_sctp_addip_enable,8,3          ## @sctp_addip_enable
	.no_dead_strip	_sctp_verify_ext_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_verify_ext_param
_sctp_verify_ext_param:                 ; @sctp_verify_ext_param
	.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	x19, x0
	ldr	w0, [x0]
	bl	_ntohs
	sub	w10, w0, #4
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	ldr	x11, [x19]
	mov	w12, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #4
	sub	w14, w13, #129
	cmp	w13, #128
	csel	w13, w9, w12, ne
	cmp	w14, #2
	csel	w9, w9, w13, lo
	csel	w8, w12, w8, lo
	subs	x10, x10, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #0
	mov	w8, #0
LBB0_4:
Lloh0:
	adrp	x10, _sctp_addip_noauth@GOTPAGE
Lloh1:
	ldr	x10, [x10, _sctp_addip_noauth@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cbz	x10, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x10, _sctp_addip_enable@GOTPAGE
Lloh4:
	ldr	x10, [x10, _sctp_addip_enable@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x10, #0
	ccmp	w9, #0, #0, ne
	ccmp	w8, #0, #4, eq
	cset	w0, eq
LBB0_7:
	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_addip_noauth,8,3          ; @sctp_addip_noauth
	.comm	_sctp_addip_enable,8,3          ; @sctp_addip_enable
	.no_dead_strip	_sctp_verify_ext_param
.subsections_via_symbols
