	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_ulpq_reasm
_sctp_ulpq_reasm:                       ## @sctp_ulpq_reasm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_SCTP_DATA_NOT_FRAG@GOTPCREL(%rip), %rcx
	movl	(%rsi), %eax
	movq	_SCTP_DATA_FRAG_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	cmpl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_MSG_EOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %r14
	movq	%rbx, %rsi
	callq	_sctp_ulpq_store_reasm
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.3:
	movl	4(%rbx), %ebx
	movq	(%r14), %rdi
	callq	_sctp_tsnmap_get_ctsn
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TSN_lte
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sctp_ulpq_retrieve_partial     ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sctp_ulpq_retrieve_reassembled ## TAILCALL
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DATA_NOT_FRAG,4,2         ## @SCTP_DATA_NOT_FRAG
	.comm	_SCTP_DATA_FRAG_MASK,4,2        ## @SCTP_DATA_FRAG_MASK
	.comm	_MSG_EOR,4,2                    ## @MSG_EOR
	.no_dead_strip	_sctp_ulpq_reasm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_ulpq_reasm
_sctp_ulpq_reasm:                       ; @sctp_ulpq_reasm
	.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
Lloh0:
	adrp	x8, _SCTP_DATA_NOT_FRAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_DATA_NOT_FRAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x1]
Lloh3:
	adrp	x10, _SCTP_DATA_FRAG_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCTP_DATA_FRAG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w8
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _MSG_EOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_EOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	mov	x1, x20
	bl	_sctp_ulpq_store_reasm
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w20, [x20, #4]
	ldr	x0, [x19]
	bl	_sctp_tsnmap_get_ctsn
	mov	x1, x0
	mov	x0, x20
	bl	_TSN_lte
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sctp_ulpq_retrieve_partial
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sctp_ulpq_retrieve_reassembled
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DATA_NOT_FRAG,4,2         ; @SCTP_DATA_NOT_FRAG
	.comm	_SCTP_DATA_FRAG_MASK,4,2        ; @SCTP_DATA_FRAG_MASK
	.comm	_MSG_EOR,4,2                    ; @MSG_EOR
	.no_dead_strip	_sctp_ulpq_reasm
.subsections_via_symbols
