	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_find_cmsg
_sctp_find_cmsg:                        ## @sctp_find_cmsg
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, -84(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_SCTP_BUF_LEN
	testl	%eax, %eax
	jle	LBB0_28
## %bb.1:
	movl	%eax, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-144(%rbp), %edi
	callq	_CMSG_ALIGN
	addl	%eax, %r14d
	cmpl	%r14d, %r12d
	jle	LBB0_29
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	subl	%r14d, %ebx
	movl	$24, %edi
	callq	_CMSG_ALIGN
	cmpl	%eax, %ebx
	jl	LBB0_29
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	$24, %edx
	leaq	-144(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_m_copydata
	movslq	-144(%rbp), %r15
	movl	$24, %edi
	callq	_CMSG_ALIGN
	cmpq	%r15, %rax
	jg	LBB0_29
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	-144(%rbp), %r13
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jb	LBB0_29
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, %r13d
	jg	LBB0_29
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %ebx
	movl	$24, %edi
	callq	_CMSG_ALIGN
	movq	%rax, %r12
	movl	$24, %edi
	callq	_CMSG_ALIGN
	movq	%rax, %r15
	movq	-136(%rbp), %rax
	movq	_IPPROTO_SCTP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	subl	%r12d, %r13d
	addl	%r14d, %r15d
	movl	-128(%rbp), %eax
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	je	LBB0_30
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SCTP_SNDRCV@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	movl	%ebx, %r12d
	jae	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %eax
	je	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %eax
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_29
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$20, %r13d
	jl	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$20, %edx
	leaq	-120(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_m_copydata
	movl	-104(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 28(%rcx)
	movl	-108(%rbp), %eax
	movl	%eax, 8(%rcx)
	movl	-112(%rbp), %eax
	movl	%eax, 24(%rcx)
	movl	-116(%rbp), %eax
	movl	%eax, 20(%rcx)
	movl	-120(%rbp), %eax
	movl	%eax, 16(%rcx)
	jmp	LBB0_27
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$32, -72(%rbp)                  ## 8-byte Folded Reload
	jb	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	-128(%rbp), %eax
	cmpl	$130, %eax
	jne	LBB0_14
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$4, %r13d
	jl	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$4, %edx
	leaq	-80(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_m_copydata
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	movl	-80(%rbp), %eax
	movl	%eax, 4(%rcx)
	jmp	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$8, %r13d
	jl	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$8, %edx
	leaq	-96(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_m_copydata
	movl	-96(%rbp), %eax
	xorl	%ecx, %ecx
	movq	_SCTP_PR_SCTP_NONE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-92(%rbp), %ecx
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 12(%rdx)
	orl	%eax, 8(%rdx)
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_28:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_29:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jb	LBB0_29
## %bb.31:
	cmpl	%eax, %r13d
	jl	LBB0_29
## %bb.32:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_m_copydata
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_IPPROTO_SCTP,8,3               ## @IPPROTO_SCTP
	.comm	_SCTP_SNDRCV,4,2                ## @SCTP_SNDRCV
	.comm	_SCTP_PR_SCTP_NONE,4,2          ## @SCTP_PR_SCTP_NONE
	.no_dead_strip	_sctp_find_cmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_find_cmsg
_sctp_find_cmsg:                        ; @sctp_find_cmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x2
	bl	_SCTP_BUF_LEN
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x23, x0
	mov	w25, #0
	mov	w24, #0
Lloh0:
	adrp	x27, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x27, [x27, _INT_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #56]
	bl	_CMSG_ALIGN
	add	w24, w24, w0
	cmp	w23, w24
	b.le	LBB0_22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w23, w24
	mov	w0, #24
	bl	_CMSG_ALIGN
	cmp	w19, w0
	b.lt	LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #56
	mov	x0, x21
	mov	x1, x24
	mov	w2, #24
	bl	_m_copydata
	ldrsw	x26, [sp, #56]
	mov	w0, #24
	bl	_CMSG_ALIGN
	cmp	x0, x26
	b.gt	LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x28, [sp, #56]
	ldr	x8, [x27]
	cmp	x8, x28
	ccmp	w28, w19, #0, hs
	b.gt	LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #24
	bl	_CMSG_ALIGN
	mov	x26, x0
	mov	w0, #24
	bl	_CMSG_ALIGN
	ldr	x8, [sp, #64]
Lloh2:
	adrp	x9, _IPPROTO_SCTP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPPROTO_SCTP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w19, w28, w26
	add	w26, w24, w0
	ldr	w8, [sp, #72]
	cmp	w8, w22
	b.eq	LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x9, _SCTP_SNDRCV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCTP_SNDRCV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sub	w10, w8, #128
	cmp	w9, w22
	ccmp	w10, #3, #2, eq
	b.hs	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w25, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #130
	b.eq	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #129
	b.eq	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #128
	b.ne	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #20
	b.lt	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, x26
	mov	w2, #20
	bl	_m_copydata
	ldp	w9, w8, [sp, #44]
	ldr	w10, [sp, #40]
	str	w9, [x20, #8]
	stp	w10, w8, [x20, #24]
	ldr	d0, [sp, #32]
	str	d0, [x20, #16]
	mov	w25, #1
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, #32
	b.lo	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [sp, #72]
	cmp	w8, #130
	b.ne	LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #4
	b.lt	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x26
	mov	w2, #4
	bl	_m_copydata
	mov	w25, #1
	ldr	w8, [sp, #16]
	stp	w25, w8, [x20]
	b	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #8
	b.lt	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x26
	mov	w2, #8
	bl	_m_copydata
Lloh8:
	adrp	x8, _SCTP_PR_SCTP_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCTP_PR_SCTP_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w10, [sp, #24]
	cmp	w9, w8
	csel	w8, wzr, w10, eq
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	stp	w9, w8, [x20, #8]
	mov	w25, #1
	b	LBB0_2
LBB0_21:
	mov	w25, #0
LBB0_22:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_23:
	ldr	x8, [x27]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	ccmp	w19, w9, #8, hs
	b.lt	LBB0_22
; %bb.24:
	mov	x0, x21
	mov	x1, x26
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	bl	_m_copydata
	mov	w25, #1
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_IPPROTO_SCTP,8,3               ; @IPPROTO_SCTP
	.comm	_SCTP_SNDRCV,4,2                ; @SCTP_SNDRCV
	.comm	_SCTP_PR_SCTP_NONE,4,2          ; @SCTP_PR_SCTP_NONE
	.no_dead_strip	_sctp_find_cmsg
.subsections_via_symbols
