	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_SetRedial             ## -- Begin function datalink_SetRedial
	.p2align	4, 0x90
_datalink_SetRedial:                    ## @datalink_SetRedial
	.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, %r15
	movl	(%rdi), %eax
	movl	4(%rdi), %r13d
	leal	1(%r13), %ecx
	movl	$-1, %r14d
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	leal	2(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_28
LBB0_2:
	movslq	%r13d, %rax
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movq	%r12, %rdi
	callq	_atoi
	testl	%eax, %eax
	js	LBB0_29
## %bb.7:
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_3:
	movb	6(%r12), %al
	cmpb	$46, %al
	je	LBB0_5
## %bb.4:
	testb	%al, %al
	jne	LBB0_6
LBB0_5:
	movq	16(%r15), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	callq	_randinit
	movq	8(%r15), %rax
	movslq	4(%r15), %r13
	movq	(%rax,%r13,8), %r12
LBB0_8:
	movq	%r12, %rdi
	movl	$43, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	callq	_atoi
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	16(%r15), %r14
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	movl	$45, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	%rax, %r12
	incq	%r12
	movq	%r12, %rdi
	callq	_atoi
	movq	%r12, %rbx
	testl	%eax, %eax
	jns	LBB0_17
## %bb.14:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_15
LBB0_29:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log_Printf
	jmp	LBB0_28
LBB0_16:
	movq	16(%r15), %r14
	movl	$0, 4(%r14)
	movl	$10, %eax
	movq	%r12, %rbx
	jmp	LBB0_17
LBB0_12:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_log_Printf
	jmp	LBB0_28
LBB0_11:
	movl	$10, %eax
LBB0_17:
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	%rax, %rbx
	incq	%rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rbx, %rdi
	callq	_atoi
	testl	%eax, %eax
	jns	LBB0_23
## %bb.21:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	callq	_log_Printf
	movl	$-1, %r14d
	jmp	LBB0_28
LBB0_22:
	movq	_DIAL_NEXT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	movl	%eax, 12(%r14)
	jmp	LBB0_24
LBB0_19:
	movl	$-1, 12(%r14)
	xorl	%eax, %eax
	callq	_randinit
	movl	4(%r15), %r13d
LBB0_24:
	leal	2(%r13), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, (%r15)
	jne	LBB0_28
## %bb.25:
	movq	8(%r15), %rax
	movslq	%r13d, %rcx
	movq	8(%rax,%rcx,8), %rdi
	callq	_atoi
	testl	%eax, %eax
	js	LBB0_27
## %bb.26:
	movq	16(%r15), %rcx
	movl	%eax, 16(%rcx)
	jmp	LBB0_28
LBB0_27:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_log_Printf
	movl	$1, %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"random"

	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid redial timeout\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid timeout increment\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid maximum timeout increments\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid next redial timeout\n"

	.comm	_DIAL_NEXT_TIMEOUT,4,2          ## @DIAL_NEXT_TIMEOUT
L_.str.5:                               ## @.str.5
	.asciz	"Invalid retry value\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_SetRedial             ; -- Begin function datalink_SetRedial
	.p2align	2
_datalink_SetRedial:                    ; @datalink_SetRedial
	.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
	ldp	w8, w21, [x0]
	add	w9, w21, #1
	add	w10, w21, #2
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_28
; %bb.1:
	mov	x19, x0
	sxtw	x8, w21
	ldr	x9, [x0, #8]
	ldr	x20, [x9, x8, lsl #3]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #6
	bl	_strncasecmp
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_atoi
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	x8, [x19, #16]
	str	w0, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_6
LBB0_4:
	ldrb	w8, [x20, #6]
	cmp	w8, #46
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [x19, #16]
	mov	w9, #-1
	str	w9, [x8]
	bl	_randinit
	ldr	x8, [x19, #8]
	ldrsw	x21, [x19, #4]
	ldr	x20, [x8, x21, lsl #3]
LBB0_6:
	mov	x0, x20
	mov	w1, #43
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.7:
	add	x20, x0, #1
	mov	x0, x20
	bl	_atoi
	tbnz	w0, #31, LBB0_19
; %bb.8:
	ldr	x22, [x19, #16]
	str	w0, [x22, #4]
	mov	x0, x20
	mov	w1, #45
	bl	_strchr
	cbz	x0, LBB0_13
; %bb.9:
	add	x20, x0, #1
	mov	x0, x20
	bl	_atoi
	tbz	w0, #31, LBB0_14
; %bb.10:
Lloh2:
	adrp	x8, _LogWARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_11:
Lloh7:
	adrp	x8, _LogWARN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_12:
	ldr	x22, [x19, #16]
	str	wzr, [x22, #4]
LBB0_13:
	mov	w0, #10
LBB0_14:
	str	w0, [x22, #8]
	mov	x0, x20
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.15:
	add	x20, x0, #1
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_20
; %bb.16:
	mov	x0, x20
	bl	_atoi
	tbnz	w0, #31, LBB0_26
; %bb.17:
	str	w0, [x22, #12]
	b	LBB0_21
LBB0_18:
Lloh14:
	adrp	x8, _DIAL_NEXT_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DIAL_NEXT_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x22, #12]
	b	LBB0_21
LBB0_19:
Lloh17:
	adrp	x8, _LogWARN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_27
LBB0_20:
	mov	w8, #-1
	str	w8, [x22, #12]
	bl	_randinit
	ldr	w21, [x19, #4]
LBB0_21:
	ldr	w8, [x19]
	add	w9, w21, #2
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.22:
	ldr	x8, [x19, #8]
	add	w9, w21, #1
	ldr	x0, [x8, w9, sxtw #3]
	bl	_atoi
	tbnz	w0, #31, LBB0_25
; %bb.23:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #16]
	str	w8, [x9, #16]
	b	LBB0_29
LBB0_24:
	mov	w0, #0
	b	LBB0_29
LBB0_25:
Lloh22:
	adrp	x8, _LogWARN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_log_Printf
	mov	w0, #1
	b	LBB0_29
LBB0_26:
Lloh27:
	adrp	x8, _LogWARN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_27:
	bl	_log_Printf
LBB0_28:
	mov	w0, #-1
LBB0_29:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"random"

	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid redial timeout\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid timeout increment\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid maximum timeout increments\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid next redial timeout\n"

	.comm	_DIAL_NEXT_TIMEOUT,4,2          ; @DIAL_NEXT_TIMEOUT
l_.str.5:                               ; @.str.5
	.asciz	"Invalid retry value\n"

.subsections_via_symbols
