	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_process_buffered_records ## -- Begin function dtls1_process_buffered_records
	.p2align	4, 0x90
_dtls1_process_buffered_records:        ## @dtls1_process_buffered_records
	.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	%rdi, %r13
	movq	(%rdi), %rax
	movl	16(%rax), %edi
	callq	_pqueue_peek
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movl	$1, %r15d
	cmpq	(%rax), %rcx
	jne	LBB0_18
## %bb.2:
	movq	%r13, %rdi
	callq	_RECORD_LAYER_get_rrec
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_RECORD_LAYER_get_rbuf
	movq	%rax, %rdi
	callq	_SSL3_BUFFER_get_left
	testq	%rax, %rax
	jg	LBB0_18
## %bb.3:
	movq	(%r13), %rax
	movl	16(%rax), %edi
	callq	_pqueue_peek
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movl	$1, %r12d
	leaq	-44(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rbx
	addq	$24, %rbx
	movl	8(%r13), %edi
	callq	_SSL3_RECORD_get_seq_num
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dtls1_buffer_record
	testq	%rax, %rax
	js	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	16(%rax), %edi
	callq	_pqueue_peek
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_dtls1_get_unprocessed_record
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_dtls1_get_bitmap
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_SSL_get_rbio
	movl	%eax, %edi
	callq	_BIO_dgram_is_sctp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dtls1_record_replay_check
	movl	%eax, %r12d
	testl	%r12d, %r12d
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dtls1_process_record
	testl	%eax, %eax
	jne	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_ossl_statem_in_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%r14)
	movq	%r13, %rdi
	callq	_RECORD_LAYER_reset_packet_length
	jmp	LBB0_14
LBB0_15:
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	%rcx, 24(%rax)
	incq	%rcx
	movq	%rcx, 8(%rax)
	movl	$1, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_12:
	movl	$-1, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS,4,2 ## @SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_process_buffered_records ; -- Begin function dtls1_process_buffered_records
	.p2align	2
_dtls1_process_buffered_records:        ; @dtls1_process_buffered_records
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #16]
	bl	_pqueue_peek
	cbz	x0, LBB0_14
; %bb.1:
	ldr	x8, [x19]
	ldp	x8, x9, [x8]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.2:
	mov	x0, x19
	bl	_RECORD_LAYER_get_rrec
	mov	x20, x0
	mov	x0, x19
	bl	_RECORD_LAYER_get_rbuf
	bl	_SSL3_BUFFER_get_left
	cmp	x0, #0
	b.gt	LBB0_15
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_pqueue_peek
	cbz	x0, LBB0_14
; %bb.4:
	mov	w21, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	add	x22, x8, #24
	ldr	w0, [x19, #8]
	bl	_SSL3_RECORD_get_seq_num
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dtls1_buffer_record
	tbnz	x0, #63, LBB0_18
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_pqueue_peek
	cbz	x0, LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_dtls1_get_unprocessed_record
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_dtls1_get_bitmap
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	mov	x0, x19
	bl	_SSL_get_rbio
	bl	_BIO_dgram_is_sctp
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w21, LBB0_11
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_dtls1_record_replay_check
	mov	x21, x0
	cbz	w21, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_dtls1_process_record
	cbnz	w0, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_ossl_statem_in_error
	cbnz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x20]
	mov	x0, x19
	bl	_RECORD_LAYER_reset_packet_length
	b	LBB0_6
LBB0_14:
	ldr	x8, [x19]
	ldr	x9, [x8]
	str	x9, [x8, #24]
	add	x9, x9, #1
	str	x9, [x8, #8]
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	add	sp, sp, #64
	ret
LBB0_17:
Lloh0:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_18:
	mov	w0, #0
	b	LBB0_16
LBB0_19:
	mov	w0, #-1
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS,4,2 ; @SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
.subsections_via_symbols
