	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_route                       ## -- Begin function do_route
	.p2align	4, 0x90
_do_route:                              ## @do_route
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r15
	movq	%rdi, %r12
	cmpl	$0, 16(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_ROUTE_OPTION_FLAGS
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	%r13, %r14
	movq	%r13, %r8
	movq	16(%rbp), %r9
	callq	_add_routes
	movq	%rbx, %rdi
	callq	_route_did_redirect_default_gateway
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_setenv_int
LBB0_4:
	movq	_OPENVPN_PLUGIN_ROUTE_UP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_plugin_defined
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	_plugin_call
	movq	_OPENVPN_PLUGIN_FUNC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_msg
LBB0_7:
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_argv_new
	movl	%eax, -48(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	callq	_setenv_str
	movq	8(%r12), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_argv_parse_cmd
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_openvpn_run_script
	movq	%rbx, %rdi
	callq	_argv_reset
LBB0_9:
	addq	$24, %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	"redirect_gateway"

	.comm	_OPENVPN_PLUGIN_ROUTE_UP,4,2    ## @OPENVPN_PLUGIN_ROUTE_UP
	.comm	_OPENVPN_PLUGIN_FUNC_SUCCESS,8,3 ## @OPENVPN_PLUGIN_FUNC_SUCCESS
	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: route-up plugin call failed"

L_.str.2:                               ## @.str.2
	.asciz	"script_type"

L_.str.3:                               ## @.str.3
	.asciz	"route-up"

L_.str.4:                               ## @.str.4
	.asciz	"--route-up"

	.comm	_D_SHOW_NET,4,2                 ## @D_SHOW_NET
	.comm	_M_INFO,4,2                     ## @M_INFO
	.comm	_M_NOPREFIX,4,2                 ## @M_NOPREFIX
	.comm	_management,8,3                 ## @management
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_route                       ; -- Begin function do_route
	.p2align	2
_do_route:                              ; @do_route
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x21, x4
	mov	x20, x0
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x22, x6
	mov	x24, x3
	mov	x25, x2
	mov	x23, x1
	cbnz	x1, LBB0_3
; %bb.2:
	cbz	x25, LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_ROUTE_OPTION_FLAGS
	mov	x3, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	mov	x4, x19
	mov	x5, x22
	bl	_add_routes
	mov	x0, x23
	bl	_route_did_redirect_default_gateway
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_setenv_int
LBB0_4:
Lloh2:
	adrp	x22, _OPENVPN_PLUGIN_ROUTE_UP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPENVPN_PLUGIN_ROUTE_UP@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_plugin_defined
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_plugin_call
Lloh4:
	adrp	x8, _OPENVPN_PLUGIN_FUNC_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OPENVPN_PLUGIN_FUNC_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _M_WARN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
LBB0_7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_argv_new
	str	w0, [sp, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_setenv_str
	ldr	x1, [x20, #8]
	add	x0, sp, #8
	bl	_argv_parse_cmd
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #0
	bl	_openvpn_run_script
	add	x0, sp, #8
	bl	_argv_reset
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redirect_gateway"

	.comm	_OPENVPN_PLUGIN_ROUTE_UP,4,2    ; @OPENVPN_PLUGIN_ROUTE_UP
	.comm	_OPENVPN_PLUGIN_FUNC_SUCCESS,8,3 ; @OPENVPN_PLUGIN_FUNC_SUCCESS
	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: route-up plugin call failed"

l_.str.2:                               ; @.str.2
	.asciz	"script_type"

l_.str.3:                               ; @.str.3
	.asciz	"route-up"

l_.str.4:                               ; @.str.4
	.asciz	"--route-up"

	.comm	_D_SHOW_NET,4,2                 ; @D_SHOW_NET
	.comm	_M_INFO,4,2                     ; @M_INFO
	.comm	_M_NOPREFIX,4,2                 ; @M_NOPREFIX
	.comm	_management,8,3                 ; @management
.subsections_via_symbols
