	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtls1_retrieve_buffered_fragment
_dtls1_retrieve_buffered_fragment:      ## @dtls1_retrieve_buffered_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movl	8(%rax), %edi
	callq	_pqueue_peek
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	movq	(%rbx), %rcx
	movq	16(%r15), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %edi
	callq	_pqueue_pop
	movq	%rbx, %rdi
	callq	_dtls1_hm_fragment_free
	movq	%r13, %rdi
	callq	_pitem_free
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	callq	_pqueue_peek
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_11
LBB0_4:
	cmpq	$0, 32(%rbx)
	jne	LBB0_11
## %bb.5:
	cmpq	%rcx, %rdx
	jne	LBB0_11
## %bb.6:
	movq	8(%rbx), %r12
	movl	8(%rax), %edi
	callq	_pqueue_pop
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dtls1_preprocess_fragment
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	movq	_DTLS1_HM_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	addq	(%rax), %rdi
	addq	16(%rbx), %rdi
	movl	24(%rbx), %esi
	callq	_memcpy
LBB0_9:
	movq	%rbx, %rdi
	callq	_dtls1_hm_fragment_free
	movq	%r13, %rdi
	callq	_pitem_free
	movq	%r12, (%r14)
	movl	$1, %r12d
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_dtls1_hm_fragment_free
	movq	%r13, %rdi
	callq	_pitem_free
	movq	$0, (%r15)
	movl	$-1, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTLS1_HM_HEADER_LENGTH,4,2     ## @DTLS1_HM_HEADER_LENGTH
	.no_dead_strip	_dtls1_retrieve_buffered_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtls1_retrieve_buffered_fragment
_dtls1_retrieve_buffered_fragment:      ; @dtls1_retrieve_buffered_fragment
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #8]
	bl	_pqueue_peek
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20]
	ldr	x9, [x22]
	ldr	x8, [x21, #16]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x8, #8]
	bl	_pqueue_pop
	mov	x0, x22
	bl	_dtls1_hm_fragment_free
	mov	x0, x20
	bl	_pitem_free
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #8]
	bl	_pqueue_peek
	mov	x20, x0
	cbnz	x0, LBB0_2
	b	LBB0_11
LBB0_4:
	ldr	x11, [x22, #32]
	cmp	x11, #0
	ccmp	x10, x9, #0, eq
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	x23, [x22, #8]
	ldr	w0, [x8, #8]
	bl	_pqueue_pop
	mov	x0, x21
	mov	x1, x22
	bl	_dtls1_preprocess_fragment
	cbz	w0, LBB0_10
; %bb.7:
	ldr	x2, [x22, #8]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _DTLS1_HM_HEADER_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DTLS1_HM_HEADER_LENGTH@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldrsw	x9, [x9]
	ldr	x10, [x22, #16]
	add	x8, x8, x9
	add	x0, x8, x10
	ldr	w1, [x22, #24]
	bl	_memcpy
LBB0_9:
	mov	x0, x22
	bl	_dtls1_hm_fragment_free
	mov	x0, x20
	bl	_pitem_free
	str	x23, [x19]
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	x0, x22
	bl	_dtls1_hm_fragment_free
	mov	x0, x20
	bl	_pitem_free
	str	xzr, [x21]
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DTLS1_HM_HEADER_LENGTH,4,2     ; @DTLS1_HM_HEADER_LENGTH
	.no_dead_strip	_dtls1_retrieve_buffered_fragment
.subsections_via_symbols
