	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_add_routes_dowork        ## -- Begin function check_add_routes_dowork
	.p2align	4, 0x90
_check_add_routes_dowork:               ## @check_add_routes_dowork
	.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
	movl	32(%rdi), %edi
	movq	24(%rbx), %rsi
	callq	_test_routes
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_3:
	leaq	12(%rbx), %rdi
	leaq	8(%rbx), %rsi
	movq	_ETT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_event_timeout_trigger
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_check_add_routes_action        ## TAILCALL
LBB0_5:
	movq	_D_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_msg
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	callq	_tun_standby
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_register_signal
	movl	$10, 16(%rbx)
LBB0_8:
	xorl	%eax, %eax
	callq	_update_time
	cmpl	$1, 4(%rbx)
	je	LBB0_10
## %bb.9:
	leaq	4(%rbx), %rdi
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	callq	_event_timeout_init
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_event_timeout_reset            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETT_DEFAULT,4,2                ## @ETT_DEFAULT
	.comm	_D_ROUTE,4,2                    ## @D_ROUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Route: Waiting for TUN/TAP interface to come up..."

	.comm	_SIGHUP,4,2                     ## @SIGHUP
L_.str.1:                               ## @.str.1
	.asciz	"ip-fail"

	.comm	_now,4,2                        ## @now
	.comm	_M_INFO,4,2                     ## @M_INFO
	.comm	_M_NOPREFIX,4,2                 ## @M_NOPREFIX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_add_routes_dowork        ; -- Begin function check_add_routes_dowork
	.p2align	2
_check_add_routes_dowork:               ; @check_add_routes_dowork
	.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
	ldr	w0, [x0, #32]
	ldr	x1, [x19, #24]
	bl	_test_routes
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_4
LBB0_2:
	add	x0, x19, #12
	add	x1, x19, #8
Lloh0:
	adrp	x8, _ETT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_event_timeout_trigger
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_check_add_routes_action
LBB0_5:
Lloh3:
	adrp	x8, _D_ROUTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_ROUTE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_tun_standby
	cbnz	w0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_register_signal
	mov	w8, #10
	str	w8, [x19, #16]
LBB0_8:
	bl	_update_time
	mov	x0, x19
	ldr	w8, [x0, #4]!
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _now@GOTPAGE
Lloh14:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w1, #1
	bl	_event_timeout_init
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_event_timeout_reset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ETT_DEFAULT,4,2                ; @ETT_DEFAULT
	.comm	_D_ROUTE,4,2                    ; @D_ROUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Route: Waiting for TUN/TAP interface to come up..."

	.comm	_SIGHUP,4,2                     ; @SIGHUP
l_.str.1:                               ; @.str.1
	.asciz	"ip-fail"

	.comm	_now,4,2                        ; @now
	.comm	_M_INFO,4,2                     ; @M_INFO
	.comm	_M_NOPREFIX,4,2                 ; @M_NOPREFIX
.subsections_via_symbols
