	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connections_on_notify
_connections_on_notify:                 ## @connections_on_notify
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%edi, %r13d
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INTERNET_MAX_URL_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r14), %rax
	movq	_PSN_APPLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.1:
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_internet_settings@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_RegOpenKeyW
	testq	%rax, %rax
	jne	LBB0_20
## %bb.2:
	movq	_IDC_USE_PROXY_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_IsDlgButtonChecked
	movl	%eax, -68(%rbp)
	movl	-52(%rbp), %edi
	movq	_proxy_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_DWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-68(%rbp), %r8
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	-68(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_IDC_EDIT_PROXY_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_GetDlgItemTextW
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movslq	%eax, %rcx
	leaq	1(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movb	$58, (%r15,%rcx)
	movq	_IDC_EDIT_PROXY_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rcx), %r14
	incq	%r14
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%r13d, %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_GetDlgItemTextW
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	incl	%ebx
	jmp	LBB0_9
LBB0_6:
	movl	-52(%rbp), %edi
	movq	_proxy_server@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RegDeleteValueW
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_8:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$56, (%rcx)
	addl	$3, %ebx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movw	$48, 2(%rcx,%r15)
LBB0_9:
	movl	-52(%rbp), %edi
	movq	_proxy_server@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ebx
	xorl	%edx, %edx
	movq	%r15, %r8
	movl	%ebx, %r9d
	callq	_RegSetValueExW
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_18
## %bb.11:
	movq	%r15, %rdi
	callq	_wine_dbgstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_IDC_USE_PAC_SCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_IsDlgButtonChecked
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_IDC_EDIT_PAC_SCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_GetDlgItemTextW
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movq	_FALSE@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	(%rcx), %edx
LBB0_13:
	movl	-52(%rbp), %edi
	movq	_auto_config_url@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%edx, %r14d
	testl	%edx, %edx
	je	LBB0_15
## %bb.14:
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_RegSetValueExW
	jmp	LBB0_17
LBB0_15:
	callq	_RegDeleteValueW
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_17:
	testq	%rax, %rax
	je	LBB0_23
LBB0_18:
	movl	-52(%rbp), %edi
LBB0_19:
	callq	_RegCloseKey
LBB0_20:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	movq	%rbx, %rdi
	cmoveq	%rax, %rdi
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	callq	_wine_dbgstr_w
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_IDC_USE_WPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_IsDlgButtonChecked
	movl	%eax, %r13d
	movl	-52(%rbp), %edi
	movq	_connections@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-72(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rbx, %r14
	movq	%rax, %rbx
	movl	-52(%rbp), %edi
	callq	_RegCloseKey
	testq	%rbx, %rbx
	jne	LBB0_20
## %bb.24:
	movl	-68(%rbp), %edi
	leaq	-88(%rbp), %r9
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_create_connection_settings
	movl	-72(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_19
## %bb.25:
	movq	_default_connection_settings@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_REG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-88(%rbp), %r8
	xorl	%edx, %edx
	movl	%eax, %r9d
	callq	_RegSetValueExW
	movq	%rax, %rbx
	movq	-88(%rbp), %rdi
	callq	_heap_free
	movl	-72(%rbp), %edi
	callq	_RegCloseKey
	xorl	%eax, %eax
	testq	%rbx, %rbx
	sete	%al
	jmp	LBB0_21
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERNET_MAX_URL_LENGTH,4,2    ## @INTERNET_MAX_URL_LENGTH
	.comm	_PSN_APPLY,8,3                  ## @PSN_APPLY
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_internet_settings,4,2          ## @internet_settings
	.comm	_IDC_USE_PROXY_SERVER,4,2       ## @IDC_USE_PROXY_SERVER
	.comm	_proxy_enable,4,2               ## @proxy_enable
	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ProxyEnable set to %x\n"

	.comm	_IDC_EDIT_PROXY_SERVER,4,2      ## @IDC_EDIT_PROXY_SERVER
	.comm	_IDC_EDIT_PROXY_PORT,4,2        ## @IDC_EDIT_PROXY_PORT
	.comm	_proxy_server,4,2               ## @proxy_server
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_ERROR_FILE_NOT_FOUND,8,3       ## @ERROR_FILE_NOT_FOUND
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"ProxtServer set to %s\n"

	.comm	_IDC_USE_PAC_SCRIPT,4,2         ## @IDC_USE_PAC_SCRIPT
	.comm	_IDC_EDIT_PAC_SCRIPT,4,2        ## @IDC_EDIT_PAC_SCRIPT
	.comm	_auto_config_url,4,2            ## @auto_config_url
L_.str.2:                               ## @.str.2
	.asciz	"AutoConfigURL set to %s\n"

	.comm	_IDC_USE_WPAD,4,2               ## @IDC_USE_WPAD
	.comm	_connections,4,2                ## @connections
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_default_connection_settings,4,2 ## @default_connection_settings
	.comm	_REG_BINARY,4,2                 ## @REG_BINARY
	.no_dead_strip	_connections_on_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connections_on_notify
_connections_on_notify:                 ; @connections_on_notify
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x21, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x12, _INTERNET_MAX_URL_LENGTH@GOTPAGE
Lloh4:
	ldr	x12, [x12, _INTERNET_MAX_URL_LENGTH@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w8, [x12]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x2]
Lloh9:
	adrp	x9, _PSN_APPLY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PSN_APPLY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
Lloh12:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _internet_settings@GOTPAGE
Lloh16:
	ldr	x8, [x8, _internet_settings@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	sub	x2, x29, #88
	bl	_RegOpenKeyW
	cbnz	x0, LBB0_8
; %bb.2:
Lloh18:
	adrp	x8, _IDC_USE_PROXY_SERVER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDC_USE_PROXY_SERVER@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_IsDlgButtonChecked
	stur	w0, [x29, #-84]
	ldur	w0, [x29, #-88]
Lloh21:
	adrp	x8, _proxy_enable@GOTPAGE
Lloh22:
	ldr	x8, [x8, _proxy_enable@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	sub	x4, x29, #84
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	cbnz	x0, LBB0_7
; %bb.3:
	ldur	w1, [x29, #-84]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh29:
	adrp	x8, _IDC_EDIT_PROXY_SERVER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IDC_EDIT_PROXY_SERVER@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_GetDlgItemTextW
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_11
; %bb.4:
	sxtw	x26, w0
	add	x25, x26, #1
	mov	w8, #58
	strb	w8, [x19, x26]
Lloh32:
	adrp	x8, _IDC_EDIT_PROXY_PORT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IDC_EDIT_PROXY_PORT@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
	add	x22, x19, x25
	mov	x0, x19
	bl	_ARRAY_SIZE
	sub	x3, x0, x25
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_GetDlgItemTextW
	cbnz	w0, LBB0_6
; %bb.5:
	add	x8, x26, x19
	mov	w9, #56
	strb	w9, [x22]
	add	w25, w26, #3
	mov	w9, #48
	strh	w9, [x8, #2]
LBB0_6:
Lloh35:
	adrp	x9, _proxy_server@GOTPAGE
Lloh36:
	ldr	x9, [x9, _proxy_server@GOTPAGEOFF]
	ldur	w8, [x29, #-88]
Lloh37:
	ldr	w1, [x9]
Lloh38:
	adrp	x9, _REG_SZ@GOTPAGE
Lloh39:
	ldr	x9, [x9, _REG_SZ@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x9]
	add	w5, w25, w0
	mov	x0, x8
	mov	w2, #0
	mov	x4, x19
	bl	_RegSetValueExW
	cbz	x0, LBB0_12
LBB0_7:
	ldur	w0, [x29, #-88]
	bl	_RegCloseKey
LBB0_8:
Lloh41:
	adrp	x8, _FALSE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
LBB0_9:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.10:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldur	w0, [x29, #-88]
Lloh47:
	adrp	x8, _proxy_server@GOTPAGE
Lloh48:
	ldr	x8, [x8, _proxy_server@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	bl	_RegDeleteValueW
Lloh50:
	adrp	x8, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _ERROR_SUCCESS@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x9, x0, eq
	cbnz	x0, LBB0_7
LBB0_12:
	mov	x0, x19
	bl	_wine_dbgstr_w
	mov	x1, x0
Lloh56:
	adrp	x0, l_.str.1@PAGE
Lloh57:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh58:
	adrp	x8, _IDC_USE_PAC_SCRIPT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IDC_USE_PAC_SCRIPT@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_IsDlgButtonChecked
	mov	x22, x0
Lloh61:
	adrp	x8, _IDC_EDIT_PAC_SCRIPT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _IDC_EDIT_PAC_SCRIPT@GOTPAGEOFF]
Lloh63:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_GetDlgItemTextW
	mov	x5, x0
Lloh64:
	adrp	x25, _FALSE@GOTPAGE
Lloh65:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, #0
	csel	w22, w8, w22, eq
	ldur	w0, [x29, #-88]
Lloh66:
	adrp	x8, _auto_config_url@GOTPAGE
Lloh67:
	ldr	x8, [x8, _auto_config_url@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	cbz	w22, LBB0_14
; %bb.13:
Lloh69:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh70:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh71:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x20
	bl	_RegSetValueExW
	b	LBB0_15
LBB0_14:
	bl	_RegDeleteValueW
Lloh72:
	adrp	x8, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh74:
	ldr	x8, [x8]
Lloh75:
	adrp	x9, _ERROR_SUCCESS@GOTPAGE
Lloh76:
	ldr	x9, [x9, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x9, x0, eq
LBB0_15:
	cbz	x0, LBB0_18
; %bb.16:
	ldur	w0, [x29, #-88]
LBB0_17:
	bl	_RegCloseKey
	ldr	w0, [x25]
	b	LBB0_9
LBB0_18:
	cmp	w22, #0
	csel	x0, xzr, x20, eq
	bl	_wine_dbgstr_w
	mov	x1, x0
Lloh78:
	adrp	x0, l_.str.2@PAGE
Lloh79:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
Lloh80:
	adrp	x8, _IDC_USE_WPAD@GOTPAGE
Lloh81:
	ldr	x8, [x8, _IDC_USE_WPAD@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_IsDlgButtonChecked
	mov	x21, x0
	ldur	w0, [x29, #-88]
Lloh83:
	adrp	x8, _connections@GOTPAGE
Lloh84:
	ldr	x8, [x8, _connections@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
Lloh86:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh88:
	ldr	w5, [x8]
	str	xzr, [sp, #-16]!
	sub	x7, x29, #92
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	add	sp, sp, #16
	mov	x23, x0
	ldur	w0, [x29, #-88]
	bl	_RegCloseKey
	cbz	x23, LBB0_20
; %bb.19:
	ldr	w0, [x25]
	b	LBB0_9
LBB0_20:
	ldur	w0, [x29, #-84]
	sub	x5, x29, #80
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x20
	bl	_create_connection_settings
	mov	x5, x0
	ldur	w0, [x29, #-92]
	cbz	w5, LBB0_17
; %bb.21:
Lloh89:
	adrp	x8, _default_connection_settings@GOTPAGE
Lloh90:
	ldr	x8, [x8, _default_connection_settings@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
Lloh92:
	adrp	x8, _REG_BINARY@GOTPAGE
Lloh93:
	ldr	x8, [x8, _REG_BINARY@GOTPAGEOFF]
Lloh94:
	ldr	w3, [x8]
	ldur	x4, [x29, #-80]
	mov	w2, #0
	bl	_RegSetValueExW
	mov	x19, x0
	ldur	x0, [x29, #-80]
	bl	_heap_free
	ldur	w0, [x29, #-92]
	bl	_RegCloseKey
	cmp	x19, #0
	cset	w0, eq
	b	LBB0_9
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERNET_MAX_URL_LENGTH,4,2    ; @INTERNET_MAX_URL_LENGTH
	.comm	_PSN_APPLY,8,3                  ; @PSN_APPLY
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_internet_settings,4,2          ; @internet_settings
	.comm	_IDC_USE_PROXY_SERVER,4,2       ; @IDC_USE_PROXY_SERVER
	.comm	_proxy_enable,4,2               ; @proxy_enable
	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ProxyEnable set to %x\n"

	.comm	_IDC_EDIT_PROXY_SERVER,4,2      ; @IDC_EDIT_PROXY_SERVER
	.comm	_IDC_EDIT_PROXY_PORT,4,2        ; @IDC_EDIT_PROXY_PORT
	.comm	_proxy_server,4,2               ; @proxy_server
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_ERROR_FILE_NOT_FOUND,8,3       ; @ERROR_FILE_NOT_FOUND
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"ProxtServer set to %s\n"

	.comm	_IDC_USE_PAC_SCRIPT,4,2         ; @IDC_USE_PAC_SCRIPT
	.comm	_IDC_EDIT_PAC_SCRIPT,4,2        ; @IDC_EDIT_PAC_SCRIPT
	.comm	_auto_config_url,4,2            ; @auto_config_url
l_.str.2:                               ; @.str.2
	.asciz	"AutoConfigURL set to %s\n"

	.comm	_IDC_USE_WPAD,4,2               ; @IDC_USE_WPAD
	.comm	_connections,4,2                ; @connections
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_default_connection_settings,4,2 ; @default_connection_settings
	.comm	_REG_BINARY,4,2                 ; @REG_BINARY
	.no_dead_strip	_connections_on_notify
.subsections_via_symbols
