	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_proxy_headers
_add_proxy_headers:                     ## @add_proxy_headers
	.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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rcx
	movl	%esi, -564(%rbp)                ## 4-byte Spill
	movq	%rdi, -576(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_CUSTOM_HTTP_HEADER@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.1:
	movq	%rcx, -584(%rbp)                ## 8-byte Spill
	leaq	-560(%rbp), %r15
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax,%r14), %r8
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	testq	%r8, %r8
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_openvpn_snprintf
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_openvpn_snprintf
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$5, %edx
	callq	_strncasecmp
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -568(%rbp)                ## 4-byte Spill
	movq	_D_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_msg
	movl	-564(%rbp), %edi                ## 4-byte Reload
	movq	%r15, %rbx
	movq	%r15, %rsi
	callq	_send_line_crlf
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -568(%rbp)                  ## 4-byte Folded Reload
	movl	$1, %eax
	cmovel	%eax, %r12d
	incq	%r13
	movq	_MAX_CUSTOM_HTTP_HEADER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r14
	cmpq	%rax, %r13
	movq	%rbx, %r15
	jl	LBB0_3
LBB0_9:
	testl	%r12d, %r12d
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	jne	LBB0_11
LBB0_10:
	leaq	L_.str.5(%rip), %rdx
	xorl	%r15d, %r15d
	leaq	-560(%rbp), %r12
	movq	%r12, %rdi
	movl	$512, %esi                      ## imm = 0x200
	xorl	%eax, %eax
	callq	_openvpn_snprintf
	movq	_D_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_msg
	movl	-564(%rbp), %edi                ## 4-byte Reload
	movq	%r12, %rsi
	callq	_send_line_crlf
	testl	%eax, %eax
	je	LBB0_14
LBB0_11:
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rdx
	xorl	%r15d, %r15d
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	xorl	%eax, %eax
	callq	_openvpn_snprintf
	movq	_D_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_msg
	movl	-564(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_send_line_crlf
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movl	$1, %r15d
	jmp	LBB0_14
LBB0_8:
	xorl	%r15d, %r15d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %eax
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CUSTOM_HTTP_HEADER,4,2     ## @MAX_CUSTOM_HTTP_HEADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Host"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"Host:"

	.comm	_D_PROXY,4,2                    ## @D_PROXY
L_.str.4:                               ## @.str.4
	.asciz	"Send to HTTP proxy: '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"Host: %s"

L_.str.6:                               ## @.str.6
	.asciz	"User-Agent: %s"

	.no_dead_strip	_add_proxy_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_proxy_headers
_add_proxy_headers:                     ; @add_proxy_headers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #544
	mov	x3, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x28, _MAX_CUSTOM_HTTP_HEADER@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAX_CUSTOM_HTTP_HEADER@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
Lloh5:
	adrp	x25, _D_PROXY@GOTPAGE
Lloh6:
	ldr	x25, [x25, _D_PROXY@GOTPAGEOFF]
Lloh7:
	adrp	x24, l_.str.4@PAGE
Lloh8:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh9:
	adrp	x26, l_.str.1@PAGE
Lloh10:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x3, [x8, x22]
	cbz	x3, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp]
	add	x0, sp, #16
	mov	w1, #512
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_openvpn_snprintf
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22]
	mov	x1, x26
	bl	_strcasecmp
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #16
	mov	w1, #512
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_openvpn_snprintf
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #5
	bl	_strncasecmp
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
	ldr	w0, [x25]
	add	x2, sp, #16
	mov	x1, x24
	bl	_msg
	add	x1, sp, #16
	mov	x0, x19
	bl	_send_line_crlf
	cbz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w27, #0
	csinc	w21, w21, wzr, ne
	add	x23, x23, #1
	ldrsw	x8, [x28]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_8:
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	cbnz	w21, LBB0_10
LBB0_9:
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #16
	mov	w1, #512
	bl	_openvpn_snprintf
Lloh19:
	adrp	x8, _D_PROXY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D_PROXY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #16
	bl	_msg
	add	x1, sp, #16
	mov	x0, x19
	bl	_send_line_crlf
	cbz	w0, LBB0_13
LBB0_10:
	ldr	x3, [x20]
	cbz	x3, LBB0_12
; %bb.11:
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, sp, #16
	mov	w1, #512
	bl	_openvpn_snprintf
Lloh26:
	adrp	x8, _D_PROXY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_PROXY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #16
	bl	_msg
	add	x1, sp, #16
	mov	x0, x19
	bl	_send_line_crlf
	cbz	w0, LBB0_13
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldur	x8, [x29, #-96]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #544
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CUSTOM_HTTP_HEADER,4,2     ; @MAX_CUSTOM_HTTP_HEADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Host"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"Host:"

	.comm	_D_PROXY,4,2                    ; @D_PROXY
l_.str.4:                               ; @.str.4
	.asciz	"Send to HTTP proxy: '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"Host: %s"

l_.str.6:                               ; @.str.6
	.asciz	"User-Agent: %s"

	.no_dead_strip	_add_proxy_headers
.subsections_via_symbols
