	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtls1_reassemble_fragment
_dtls1_reassemble_fragment:             ## @dtls1_reassemble_fragment
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %r15
	movq	8(%rsi), %rax
	addq	%r15, %rax
	movq	16(%rsi), %rbx
	cmpq	%rbx, %rax
	ja	LBB0_3
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_dtls1_max_handshake_message_len
	cmpq	%rax, %rbx
	jle	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r14, %rdi
	callq	_dtls1_hm_fragment_free
	movl	$-1, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.6:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testq	%r15, %r15
	je	LBB0_23
## %bb.8:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movzwl	24(%r13), %eax
	rolw	$8, %ax
	movw	%ax, -50(%rbp)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_pqueue_find
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rbx), %r14
	movq	24(%r14), %rax
	cmpq	16(%r13), %rax
	jne	LBB0_3
## %bb.13:
	cmpq	$0, 8(%r14)
	je	LBB0_20
LBB0_14:
	movq	8(%r12), %rax
	movq	_SSL3_RT_HANDSHAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r14), %rcx
	addq	8(%r13), %rcx
	leaq	-328(%rbp), %rdx
	movq	%rdx, (%rsp)
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	*(%rax)
	testl	%eax, %eax
	jle	LBB0_26
## %bb.15:
	cmpq	%r15, -328(%rbp)
	jne	LBB0_26
## %bb.16:
	movq	8(%r14), %rdi
	movq	8(%r13), %rsi
	addq	%rsi, %r15
	movq	%r15, %rdx
	callq	_RSMBLY_BITMASK_MARK
	xorl	%edi, %edi
	cmpq	$0, 16(%r13)
	setg	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_26
## %bb.17:
	movq	8(%r14), %rdi
	movq	16(%r13), %rsi
	callq	_RSMBLY_BITMASK_IS_COMPLETE
	testq	%rbx, %rbx
	jne	LBB0_23
## %bb.18:
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_pitem_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.19:
	movq	(%r12), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_pqueue_insert
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_26
LBB0_11:
	movq	16(%r13), %rdi
	movl	$1, %esi
	callq	_dtls1_hm_fragment_new
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	movq	%rax, %r14
	movq	%rax, %rdi
	addq	$16, %rdi
	movq	%r13, %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	24(%r14), %rax
	movq	%rax, 16(%r14)
	movq	$0, 32(%r14)
	cmpq	$0, 8(%r14)
	jne	LBB0_14
LBB0_20:
	movq	%rbx, -336(%rbp)                ## 8-byte Spill
	leaq	-328(%rbp), %rbx
	leaq	-320(%rbp), %r13
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	_SSL3_RT_HANDSHAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	$256, %r15                      ## imm = 0x100
	movl	$256, %r8d                      ## imm = 0x100
	cmovbq	%r15, %r8
	movq	%rbx, (%rsp)
	movq	%r12, %rdi
	xorl	%edx, %edx
	movq	%r13, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%r9d, %r9d
	callq	*(%rax)
	testl	%eax, %eax
	jle	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	subq	-328(%rbp), %r15
	jne	LBB0_21
LBB0_23:
	movq	_DTLS1_HM_FRAGMENT_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_25:
	movq	-336(%rbp), %rbx                ## 8-byte Reload
LBB0_26:
	movl	$-1, %eax
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_4
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DTLS1_HM_FRAGMENT_RETRY,4,2    ## @DTLS1_HM_FRAGMENT_RETRY
	.comm	_SSL3_RT_HANDSHAKE,4,2          ## @SSL3_RT_HANDSHAKE
	.no_dead_strip	_dtls1_reassemble_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtls1_reassemble_fragment
_dtls1_reassemble_fragment:             ; @dtls1_reassemble_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -72
	.cfi_offset w28, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldp	x22, x8, [x1]
	ldr	x20, [x1, #16]
	add	x8, x8, x22
	cmp	x8, x20
	b.hi	LBB0_2
; %bb.1:
	mov	x23, x1
	mov	x19, x0
	bl	_dtls1_max_handshake_message_len
	cmp	x20, x0
	b.le	LBB0_7
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	bl	_dtls1_hm_fragment_free
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.6:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_7:
	cbz	x22, LBB0_22
; %bb.8:
	sub	x0, x29, #80
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldrh	w8, [x23, #24]
	rev	w8, w8
	lsr	w8, w8, #16
	sturh	w8, [x29, #-74]
	ldr	x8, [x19]
	ldr	w0, [x8]
	sub	x1, x29, #80
	bl	_pqueue_find
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.9:
	ldr	x20, [x21]
	ldr	x8, [x20, #24]
	ldr	x9, [x23, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.10:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SSL3_RT_HANDSHAKE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSL3_RT_HANDSHAKE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldr	x9, [x20]
	ldr	x10, [x23, #8]
	add	x3, x9, x10
	add	x6, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	x4, x22
	mov	w5, #0
	blr	x8
	ldr	x8, [sp, #8]
	cmp	w0, #1
	ccmp	x8, x22, #0, ge
	b.ne	LBB0_16
; %bb.12:
	ldr	x0, [x20, #8]
	ldr	x1, [x23, #8]
	add	x2, x1, x22
	bl	_RSMBLY_BITMASK_MARK
	ldr	x8, [x23, #16]
	cmp	x8, #0
	cset	w0, gt
	bl	_ossl_assert
	cbz	w0, LBB0_16
; %bb.13:
	ldr	x0, [x20, #8]
	ldr	x1, [x23, #16]
	bl	_RSMBLY_BITMASK_IS_COMPLETE
	cbnz	x21, LBB0_22
; %bb.14:
	sub	x0, x29, #80
	mov	x1, x20
	bl	_pitem_new
	cbz	x0, LBB0_3
; %bb.15:
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_pqueue_insert
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ossl_assert
	cbnz	w0, LBB0_22
LBB0_16:
	cbnz	x21, LBB0_4
	b	LBB0_3
LBB0_17:
	ldr	x0, [x23, #16]
	mov	w1, #1
	bl	_dtls1_hm_fragment_new
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.18:
	add	x0, x20, #16
	mov	x1, x23
	mov	w2, #32
	bl	_memcpy
	ldr	x8, [x20, #24]
	str	x8, [x20, #16]
	str	xzr, [x20, #32]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_11
LBB0_19:
Lloh9:
	adrp	x23, _SSL3_RT_HANDSHAKE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SSL3_RT_HANDSHAKE@GOTPAGEOFF]
	mov	w24, #256
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x23]
	cmp	x22, #256
	csel	x4, x22, x24, lo
	add	x3, sp, #16
	add	x6, sp, #8
	mov	x0, x19
	mov	x2, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	w5, #0
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp, #8]
	subs	x22, x22, x8
	b.ne	LBB0_20
LBB0_22:
Lloh11:
	adrp	x8, _DTLS1_HM_FRAGMENT_RETRY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DTLS1_HM_FRAGMENT_RETRY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DTLS1_HM_FRAGMENT_RETRY,4,2    ; @DTLS1_HM_FRAGMENT_RETRY
	.comm	_SSL3_RT_HANDSHAKE,4,2          ; @SSL3_RT_HANDSHAKE
	.no_dead_strip	_dtls1_reassemble_fragment
.subsections_via_symbols
