	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_retransmit_message       ## -- Begin function dtls1_retransmit_message
	.p2align	4, 0x90
_dtls1_retransmit_message:              ## @dtls1_retransmit_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	rolw	$8, %bx
	movw	%bx, -50(%rbp)
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movq	%r12, %rsi
	callq	_pqueue_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$1, (%r15)
	movq	(%rax), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_DTLS1_HM_HEADER_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DTLS1_RETRANSMIT_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
	movl	$0, (%r15)
	jmp	LBB0_9
LBB0_3:
	movq	_DTLS1_CCS_HEADER_LENGTH@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r14
	movq	48(%r13), %rax
	movl	(%rax), %edi
	movl	56(%rbx), %esi
	movq	40(%rbx), %rdx
	addq	%r14, %rdx
	callq	_memcpy
	movq	40(%rbx), %rdx
	addq	%rdx, %r14
	movq	%r14, 40(%r13)
	movl	48(%rbx), %esi
	movl	28(%rbx), %r9d
	movl	32(%rbx), %ecx
	movq	%r13, %rdi
	xorl	%r8d, %r8d
	callq	_dtls1_set_message_header_int
	leaq	16(%r13), %r15
	movups	20(%r13), %xmm0
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	movq	%r15, %rdi
	callq	_DTLS_RECORD_LAYER_get_w_epoch
	movl	%eax, %r12d
	movq	8(%r13), %rax
	movl	$1, (%rax)
	movups	12(%rbx), %xmm0
	movups	%xmm0, 20(%r13)
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_DTLS_RECORD_LAYER_set_saved_w_epoch
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.7:
	movq	_SSL3_RT_HANDSHAKE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_SSL3_RT_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dtls1_do_write
	movl	%eax, %r14d
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 20(%r13)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_DTLS_RECORD_LAYER_set_saved_w_epoch
	movq	8(%r13), %rax
	movl	$0, (%rax)
	movl	(%r13), %edi
	callq	_BIO_flush
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DTLS1_RETRANSMIT_MESSAGE,4,2 ## @SSL_F_DTLS1_RETRANSMIT_MESSAGE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_DTLS1_CCS_HEADER_LENGTH,8,3    ## @DTLS1_CCS_HEADER_LENGTH
	.comm	_DTLS1_HM_HEADER_LENGTH,8,3     ## @DTLS1_HM_HEADER_LENGTH
	.comm	_SSL3_RT_CHANGE_CIPHER_SPEC,4,2 ## @SSL3_RT_CHANGE_CIPHER_SPEC
	.comm	_SSL3_RT_HANDSHAKE,4,2          ## @SSL3_RT_HANDSHAKE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_retransmit_message       ; -- Begin function dtls1_retransmit_message
	.p2align	2
_dtls1_retransmit_message:              ; @dtls1_retransmit_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x20, x2
	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]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	rev16	w8, w21
	strh	w8, [sp, #6]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	mov	x1, sp
	bl	_pqueue_find
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #1
	str	w21, [x20]
	ldr	x23, [x0]
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _DTLS1_HM_HEADER_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DTLS1_HM_HEADER_LENGTH@GOTPAGEOFF]
Lloh5:
	adrp	x10, _DTLS1_CCS_HEADER_LENGTH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DTLS1_CCS_HEADER_LENGTH@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x20, [x8]
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	ldr	w1, [x23, #56]
	ldr	x8, [x23, #40]
	add	x2, x8, x20
	bl	_memcpy
	ldr	x2, [x23, #40]
	add	x8, x2, x20
	str	x8, [x19, #40]
	ldr	w1, [x23, #48]
	ldp	w5, w3, [x23, #28]
	mov	x0, x19
	mov	w4, #0
	bl	_dtls1_set_message_header_int
	add	x20, x19, #16
	ldur	d8, [x19, #20]
	ldur	d9, [x19, #28]
	mov	x0, x20
	bl	_DTLS_RECORD_LAYER_get_w_epoch
	mov	x22, x0
	ldr	x8, [x19, #8]
	str	w21, [x8]
	ldur	q0, [x23, #12]
	stur	q0, [x19, #20]
	ldr	w1, [x23, #8]
	mov	x0, x20
	bl	_DTLS_RECORD_LAYER_set_saved_w_epoch
Lloh7:
	adrp	x8, _SSL3_RT_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL3_RT_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh9:
	adrp	x10, _SSL3_RT_HANDSHAKE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SSL3_RT_HANDSHAKE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dtls1_do_write
	mov	x21, x0
	stur	d9, [x19, #28]
	stur	d8, [x19, #20]
	mov	x0, x20
	mov	x1, x22
	bl	_DTLS_RECORD_LAYER_set_saved_w_epoch
	ldr	x8, [x19, #8]
	str	wzr, [x8]
	ldr	w0, [x19]
	bl	_BIO_flush
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SSL_F_DTLS1_RETRANSMIT_MESSAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_F_DTLS1_RETRANSMIT_MESSAGE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w21, #0
	str	wzr, [x20]
LBB0_3:
	ldr	x8, [sp, #8]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DTLS1_RETRANSMIT_MESSAGE,4,2 ; @SSL_F_DTLS1_RETRANSMIT_MESSAGE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_DTLS1_CCS_HEADER_LENGTH,8,3    ; @DTLS1_CCS_HEADER_LENGTH
	.comm	_DTLS1_HM_HEADER_LENGTH,8,3     ; @DTLS1_HM_HEADER_LENGTH
	.comm	_SSL3_RT_CHANGE_CIPHER_SPEC,4,2 ; @SSL3_RT_CHANGE_CIPHER_SPEC
	.comm	_SSL3_RT_HANDSHAKE,4,2          ; @SSL3_RT_HANDSHAKE
.subsections_via_symbols
