	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_handle_timeout           ## -- Begin function dtls1_handle_timeout
	.p2align	4, 0x90
_dtls1_handle_timeout:                  ## @dtls1_handle_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_dtls1_is_timer_expired
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rcx), %esi
	movq	%rbx, %rdi
	callq	*%rax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_dtls1_double_timeout
LBB0_5:
	movq	%rbx, %rdi
	callq	_dtls1_check_timeout_num
	testq	%rax, %rax
	js	LBB0_6
## %bb.8:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	_DTLS1_TMO_READ_COUNT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	movl	$1, %ecx
	cmovll	%edx, %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_dtls1_start_timer
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dtls1_retransmit_buffered_messages ## TAILCALL
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTLS1_TMO_READ_COUNT,4,2       ## @DTLS1_TMO_READ_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_handle_timeout           ; -- Begin function dtls1_handle_timeout
	.p2align	2
_dtls1_handle_timeout:                  ; @dtls1_handle_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_dtls1_is_timer_expired
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x9, [x19]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x9, #4]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	str	w0, [x8, #4]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_dtls1_double_timeout
LBB0_4:
	mov	x0, x19
	bl	_dtls1_check_timeout_num
	tbnz	x0, #63, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w10, w9, #1
Lloh0:
	adrp	x11, _DTLS1_TMO_READ_COUNT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DTLS1_TMO_READ_COUNT@GOTPAGEOFF]
	str	w10, [x8]
Lloh2:
	ldr	w10, [x11]
	cmp	w9, w10
	mov	w10, #1
	csinc	w9, w10, w9, ge
	str	w9, [x8]
	mov	x0, x19
	bl	_dtls1_start_timer
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dtls1_retransmit_buffered_messages
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DTLS1_TMO_READ_COUNT,4,2       ; @DTLS1_TMO_READ_COUNT
.subsections_via_symbols
