	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_buffer_message           ## -- Begin function dtls1_buffer_message
	.p2align	4, 0x90
_dtls1_buffer_message:                  ## @dtls1_buffer_message
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	48(%r15), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_dtls1_hm_fragment_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %rbx
	movl	56(%rax), %edi
	movq	48(%r15), %rdx
	movq	56(%r15), %rax
	movl	(%rax), %esi
	callq	_memcpy
	movq	16(%r15), %rax
	movl	4(%rax), %eax
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	movq	8(%r15), %rdx
	movq	_DTLS1_BAD_VER@GOTPCREL(%rip), %rsi
	movl	$3, %ecx
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.5:
	movq	_DTLS1_CCS_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	addl	%eax, %ecx
	xorl	%edi, %edi
	cmpl	48(%r15), %ecx
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_7:
	movq	_DTLS1_HM_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	xorl	%edi, %edi
	cmpl	48(%r15), %eax
LBB0_8:
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	16(%r15), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	12(%rax), %edx
	movl	%edx, 12(%rbx)
	movl	8(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	movl	%ecx, 4(%rbx)
	movl	%r12d, 8(%rbx)
	movups	28(%r15), %xmm0
	movups	%xmm0, 20(%rbx)
	leaq	24(%r15), %rdi
	callq	_DTLS_RECORD_LAYER_get_w_epoch
	movl	%eax, 16(%rbx)
	leaq	-48(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_dtls1_get_queue_priority
	movb	%ah, -42(%rbp)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_dtls1_get_queue_priority
	movb	%al, -41(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pitem_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	16(%r15), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_pqueue_insert
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_dtls1_hm_fragment_free
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DTLS1_BAD_VER,8,3              ## @DTLS1_BAD_VER
	.comm	_DTLS1_CCS_HEADER_LENGTH,4,2    ## @DTLS1_CCS_HEADER_LENGTH
	.comm	_DTLS1_HM_HEADER_LENGTH,4,2     ## @DTLS1_HM_HEADER_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_buffer_message           ; -- Begin function dtls1_buffer_message
	.p2align	2
_dtls1_buffer_message:                  ; @dtls1_buffer_message
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_ossl_assert
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x0, [x19, #48]
	mov	w1, #0
	bl	_dtls1_hm_fragment_new
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #56]
	ldp	x2, x8, [x19, #48]
	ldr	w1, [x8]
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	cbz	w21, LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _DTLS1_BAD_VER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DTLS1_BAD_VER@GOTPAGEOFF]
	ldr	x10, [x19, #8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _DTLS1_CCS_HEADER_LENGTH@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DTLS1_CCS_HEADER_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x10, x9
	mov	w9, #3
	csel	w9, w9, w11, eq
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x9, _DTLS1_HM_HEADER_LENGTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DTLS1_HM_HEADER_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
LBB0_5:
	ldr	w10, [x19, #48]
	add	w8, w9, w8
	cmp	w8, w10
	cset	w0, eq
	bl	_ossl_assert
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	str	w9, [x20]
	ldr	w10, [x8, #12]
	str	w10, [x20, #12]
	ldr	w8, [x8, #8]
	str	w8, [x20, #48]
	str	xzr, [x20, #40]
	stp	w9, w21, [x20, #4]
	ldur	q0, [x19, #28]
	stur	q0, [x20, #20]
	add	x0, x19, #24
	bl	_DTLS_RECORD_LAYER_get_w_epoch
	str	w0, [x20, #16]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldp	w1, w0, [x20, #8]
	bl	_dtls1_get_queue_priority
	lsr	w8, w0, #8
	strb	w8, [sp, #6]
	ldp	w1, w0, [x20, #8]
	bl	_dtls1_get_queue_priority
	strb	w0, [sp, #7]
	mov	x0, sp
	mov	x1, x20
	bl	_pitem_new
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_pqueue_insert
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_dtls1_hm_fragment_free
	mov	w0, #0
LBB0_9:
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DTLS1_BAD_VER,8,3              ; @DTLS1_BAD_VER
	.comm	_DTLS1_CCS_HEADER_LENGTH,4,2    ; @DTLS1_CCS_HEADER_LENGTH
	.comm	_DTLS1_HM_HEADER_LENGTH,4,2     ; @DTLS1_HM_HEADER_LENGTH
.subsections_via_symbols
