	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_get_frag_point            ## -- Begin function sctp_get_frag_point
	.p2align	4, 0x90
_sctp_get_frag_point:                   ## @sctp_get_frag_point
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	_SCTP_PCB_FLAGS_BOUND_V6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_SCTP_MIN_V4_OVERHEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SCTP_MIN_OVERHEAD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_SCTP_DATA_CHUNK_OVERHEAD
	movl	(%r14), %ebx
	movl	(%r15), %ecx
	movl	8(%r15), %esi
	cmpl	%ebx, %ecx
	cmovll	%ecx, %ebx
	addl	%r12d, %eax
	subl	%eax, %ebx
	movq	_SCTP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sctp_auth_is_required_chunk
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%r15), %edi
	callq	_sctp_get_auth_chunk_len
	subl	%eax, %ebx
LBB0_5:
	leal	3(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-4, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_PCB_FLAGS_BOUND_V6,4,2    ## @SCTP_PCB_FLAGS_BOUND_V6
	.comm	_SCTP_MIN_OVERHEAD,4,2          ## @SCTP_MIN_OVERHEAD
	.comm	_SCTP_MIN_V4_OVERHEAD,4,2       ## @SCTP_MIN_V4_OVERHEAD
	.comm	_SCTP_DATA,4,2                  ## @SCTP_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_get_frag_point            ; -- Begin function sctp_get_frag_point
	.p2align	2
_sctp_get_frag_point:                   ; @sctp_get_frag_point
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _SCTP_PCB_FLAGS_BOUND_V6@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_BOUND_V6@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SCTP_MIN_V4_OVERHEAD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SCTP_MIN_V4_OVERHEAD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _SCTP_MIN_OVERHEAD@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SCTP_MIN_OVERHEAD@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
	bl	_SCTP_DATA_CHUNK_OVERHEAD
	ldr	w8, [x19]
	ldr	w9, [x20]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	add	w9, w21, w0
	sub	w20, w8, w9
Lloh7:
	adrp	x8, _SCTP_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCTP_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_sctp_auth_is_required_chunk
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_sctp_get_auth_chunk_len
	sub	w20, w20, w0
LBB0_2:
	negs	w8, w20
	and	w8, w8, #0x3
	and	w9, w20, #0x3
	csneg	w8, w9, w8, mi
	sub	w0, w20, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_PCB_FLAGS_BOUND_V6,4,2    ; @SCTP_PCB_FLAGS_BOUND_V6
	.comm	_SCTP_MIN_OVERHEAD,4,2          ; @SCTP_MIN_OVERHEAD
	.comm	_SCTP_MIN_V4_OVERHEAD,4,2       ; @SCTP_MIN_V4_OVERHEAD
	.comm	_SCTP_DATA,4,2                  ; @SCTP_DATA
.subsections_via_symbols
