	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datalink_StartDialTimer
_datalink_StartDialTimer:               ## @datalink_StartDialTimer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_timer_Stop
	testl	%r14d, %r14d
	jns	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_random
	movq	_DIAL_TIMEOUT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, %r14d
	incl	%r14d
LBB0_2:
	movq	_SECTICKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r14d, %eax
	testl	%r14d, %r14d
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 16(%rbx)
	movq	_datalink_OpenTimeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	L_.str(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, 32(%rbx)
	movq	%r15, %rdi
	callq	_timer_Start
	movq	(%rbx), %rax
	movq	_DATALINK_OPENING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	callq	_log_Printf
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIAL_TIMEOUT,4,2               ## @DIAL_TIMEOUT
	.comm	_SECTICKS,4,2                   ## @SECTICKS
	.comm	_datalink_OpenTimeout,4,2       ## @datalink_OpenTimeout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dial"

	.comm	_DATALINK_OPENING,8,3           ## @DATALINK_OPENING
	.comm	_LogPHASE,4,2                   ## @LogPHASE
L_.str.1:                               ## @.str.1
	.asciz	"%s: Enter pause (%d) for redialing.\n"

	.no_dead_strip	_datalink_StartDialTimer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datalink_StartDialTimer
_datalink_StartDialTimer:               ; @datalink_StartDialTimer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_timer_Stop
	tbz	w19, #31, LBB0_2
; %bb.1:
	bl	_random
Lloh0:
	adrp	x8, _DIAL_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIAL_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w19, w8, #1
LBB0_2:
Lloh3:
	adrp	x8, _SECTICKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECTICKS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w8, w8, w19
	cmp	w19, #0
	csinc	w8, w8, wzr, ne
	str	w8, [x20, #16]
Lloh6:
	adrp	x8, _datalink_OpenTimeout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _datalink_OpenTimeout@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x20, [x20, #24]
	mov	x0, x21
	bl	_timer_Start
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _DATALINK_OPENING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DATALINK_OPENING@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x20, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_log_Printf
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DIAL_TIMEOUT,4,2               ; @DIAL_TIMEOUT
	.comm	_SECTICKS,4,2                   ; @SECTICKS
	.comm	_datalink_OpenTimeout,4,2       ; @datalink_OpenTimeout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dial"

	.comm	_DATALINK_OPENING,8,3           ; @DATALINK_OPENING
	.comm	_LogPHASE,4,2                   ; @LogPHASE
l_.str.1:                               ; @.str.1
	.asciz	"%s: Enter pause (%d) for redialing.\n"

	.no_dead_strip	_datalink_StartDialTimer
.subsections_via_symbols
