	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_option_timeout                 ## -- Begin function option_timeout
	.p2align	4, 0x90
_option_timeout:                        ## @option_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	%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	_options@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_OPT_TIMEOUT@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movl	%edi, %r14d
	movq	%rbx, %rdi
	callq	_atoi
	movq	_TIMEOUT_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TIMEOUT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, %eax
	jl	LBB0_3
## %bb.2:
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.8:
	movq	_timeoutpacket@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_strdup
	movq	(%r12), %rcx
	movq	(%r13), %rdx
	shlq	$4, %rdx
	movl	%eax, (%rcx,%rdx)
	movl	(%r14), %edi
	movq	_timeoutnetwork@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_maxtimeouts@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_settimeouts
	movq	_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_OPTIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_tftp_log
	jmp	LBB0_10
LBB0_3:
	movq	_acting_as_client@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.5:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rsi
LBB0_6:
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_tftp_log
	movq	_EBADOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_send_error
	movl	$1, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_7
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_options,8,3                    ## @options
	.comm	_OPT_TIMEOUT,8,3                ## @OPT_TIMEOUT
	.comm	_TIMEOUT_MIN,4,2                ## @TIMEOUT_MIN
	.comm	_TIMEOUT_MAX,4,2                ## @TIMEOUT_MAX
	.comm	_acting_as_client,8,3           ## @acting_as_client
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received bad value for timeout. Should be between %d and %d, received %d"

	.comm	_EBADOP,4,2                     ## @EBADOP
	.comm	_timeoutpacket,4,2              ## @timeoutpacket
	.comm	_timeoutnetwork,4,2             ## @timeoutnetwork
	.comm	_maxtimeouts,4,2                ## @maxtimeouts
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_OPTIONS,4,2              ## @DEBUG_OPTIONS
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Setting timeout to '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_option_timeout                 ; -- Begin function option_timeout
	.p2align	2
_option_timeout:                        ; @option_timeout
	.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
Lloh0:
	adrp	x21, _options@GOTPAGE
Lloh1:
	ldr	x21, [x21, _options@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _OPT_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPT_TIMEOUT@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #4
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
Lloh4:
	adrp	x8, _TIMEOUT_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIMEOUT_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _TIMEOUT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TIMEOUT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
	cmp	w0, w2
	ccmp	w0, w9, #0, ge
	b.le	LBB0_4
; %bb.2:
Lloh10:
	adrp	x20, _acting_as_client@GOTPAGE
Lloh11:
	ldr	x20, [x20, _acting_as_client@GOTPAGEOFF]
Lloh12:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh14:
	adrp	x11, _LOG_WARNING@GOTPAGE
Lloh15:
	ldr	x11, [x11, _LOG_WARNING@GOTPAGEOFF]
	cmp	x10, #0
	csel	x8, x11, x8, eq
	ldr	w8, [x8]
	stp	x9, x0, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_tftp_log
Lloh18:
	adrp	x8, _EBADOP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBADOP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_error
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	mov	w0, #1
	b	LBB0_7
LBB0_4:
Lloh21:
	adrp	x19, _timeoutpacket@GOTPAGE
Lloh22:
	ldr	x19, [x19, _timeoutpacket@GOTPAGEOFF]
	str	w0, [x19]
	mov	x0, x20
	bl	_strdup
	ldr	x8, [x21]
	ldr	x9, [x22]
	lsl	x9, x9, #4
	str	w0, [x8, x9]
	ldr	w0, [x19]
Lloh23:
	adrp	x8, _timeoutnetwork@GOTPAGE
Lloh24:
	ldr	x8, [x8, _timeoutnetwork@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _maxtimeouts@GOTPAGE
Lloh27:
	ldr	x8, [x8, _maxtimeouts@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	bl	_settimeouts
Lloh29:
	adrp	x8, _debug@GOTPAGE
Lloh30:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _DEBUG_OPTIONS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DEBUG_OPTIONS@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh35:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x22]
	lsl	x9, x9, #4
	ldr	w2, [x8, x9]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_tftp_log
LBB0_6:
	mov	w0, #0
LBB0_7:
	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_8:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_options,8,3                    ; @options
	.comm	_OPT_TIMEOUT,8,3                ; @OPT_TIMEOUT
	.comm	_TIMEOUT_MIN,4,2                ; @TIMEOUT_MIN
	.comm	_TIMEOUT_MAX,4,2                ; @TIMEOUT_MAX
	.comm	_acting_as_client,8,3           ; @acting_as_client
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received bad value for timeout. Should be between %d and %d, received %d"

	.comm	_EBADOP,4,2                     ; @EBADOP
	.comm	_timeoutpacket,4,2              ; @timeoutpacket
	.comm	_timeoutnetwork,4,2             ; @timeoutnetwork
	.comm	_maxtimeouts,4,2                ; @maxtimeouts
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_OPTIONS,4,2              ; @DEBUG_OPTIONS
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Setting timeout to '%s'"

.subsections_via_symbols
