	.file	"extr_sec_mgr.c_get_zone_from_domains.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to open HKCU's %s key\n"
.LC1:
	.string	"Failed to open HKLM's %s key\n"
	.text
	.p2align 4
	.type	get_zone_from_domains, @function
get_zone_from_domains:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rsi, 32[rsp]
	call	IUri_GetScheme@PLT
	mov	rdi, rax
	mov	r12, rax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR URL_SCHEME_UNKNOWN[rip]
	mov	r12, QWORD PTR S_FALSE[rip]
	cmp	QWORD PTR 32[rsp], rax
	je	.L1
	mov	rdi, rbp
	lea	rsi, 16[rsp]
	call	IUri_GetHost@PLT
	mov	rdi, rax
	mov	r12, rax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, QWORD PTR 32[rsp]
	cmp	rdi, QWORD PTR URL_SCHEME_UNKNOWN[rip]
	je	.L4
	cmp	rdi, QWORD PTR URL_SCHEME_FILE[rip]
	jne	.L16
.L4:
	mov	rdi, rbp
	lea	rsi, 24[rsp]
	call	IUri_GetSchemeName@PLT
	mov	rdi, rax
	mov	r12, rax
	call	FAILED@PLT
	test	rax, rax
	jne	.L17
	mov	esi, DWORD PTR wszZoneMapDomainsKey[rip]
	mov	edi, DWORD PTR HKEY_CURRENT_USER[rip]
	lea	r13, 12[rsp]
	mov	rdx, r13
	call	RegOpenKeyW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	je	.L18
	mov	edi, DWORD PTR wszZoneMapDomainsKey[rip]
	call	debugstr_w@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	WARN@PLT
.L7:
	cmp	QWORD PTR S_FALSE[rip], r12
	je	.L19
.L8:
	mov	rdi, QWORD PTR 16[rsp]
	call	SysFreeString@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	SysFreeString@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	is_hierarchical_scheme@PLT
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR URLZONE_INVALID[rip]
	mov	QWORD PTR [rbx], rax
	call	SysFreeString@PLT
	mov	r12, QWORD PTR S_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 16[rsp]
	call	SysFreeString@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR 16[rsp]
	call	SysStringLen@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	r8, rbx
	mov	rsi, QWORD PTR 24[rsp]
	mov	ecx, eax
	call	search_for_domain_mapping@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	r12, rax
	call	RegCloseKey@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR wszZoneMapDomainsKey[rip]
	mov	edi, DWORD PTR HKEY_LOCAL_MACHINE[rip]
	mov	rdx, r13
	call	RegOpenKeyW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	je	.L21
	mov	edi, DWORD PTR wszZoneMapDomainsKey[rip]
	call	debugstr_w@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	WARN@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 16[rsp]
	call	SysStringLen@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	r8, rbx
	mov	rsi, QWORD PTR 24[rsp]
	mov	ecx, eax
	call	search_for_domain_mapping@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	r12, rax
	call	RegCloseKey@PLT
	jmp	.L8
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_zone_from_domains, .-get_zone_from_domains
	.comm	wszZoneMapDomainsKey,4,4
	.comm	URL_SCHEME_UNKNOWN,8,8
	.comm	URL_SCHEME_FILE,8,8
	.comm	URLZONE_INVALID,8,8
	.comm	S_OK,8,8
	.comm	S_FALSE,8,8
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	HKEY_CURRENT_USER,4,4
	.comm	ERROR_SUCCESS,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sec_mgr.c_get_zone_from_domains.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to open HKCU's %s key\012\000"
	.align	2
.LC1:
	.ascii	"Failed to open HKLM's %s key\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_zone_from_domains, %function
get_zone_from_domains:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L23
	sub	sp, sp, #36
	mov	r6, r1
	add	r1, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	bl	IUri_GetScheme
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L1
	ldr	r7, .L23+4
	ldr	r2, [sp, #24]
	ldr	r3, [r7]
	cmp	r2, r3
	beq	.L16
	add	r1, sp, #12
	mov	r0, r5
	bl	IUri_GetHost
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r7]
	ldr	r0, [sp, #24]
	cmp	r0, r3
	beq	.L4
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L17
.L4:
	add	r1, sp, #16
	mov	r0, r5
	bl	IUri_GetSchemeName
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L18
	ldr	r3, .L23+12
	ldr	r5, .L23+16
	ldr	r0, [r3]
	ldr	r1, [r5]
	add	r2, sp, #20
	bl	RegOpenKeyW
	ldr	r7, .L23+20
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L19
	ldr	r0, [r5]
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L23+24
	bl	WARN
.L7:
	ldr	r3, .L23+28
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L20
.L8:
	ldr	r0, [sp, #12]
	bl	SysFreeString
	ldr	r0, [sp, #16]
	bl	SysFreeString
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r3, .L23+28
	ldr	r4, [r3]
	b	.L1
.L17:
	bl	is_hierarchical_scheme
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #12]
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L23+32
	ldr	r3, [r3]
	str	r3, [r6]
	bl	SysFreeString
	ldr	r3, .L23+36
	ldr	r4, [r3]
	b	.L1
.L18:
	ldr	r0, [sp, #12]
	bl	SysFreeString
	b	.L1
.L19:
	ldr	r4, [sp, #12]
	ldr	r8, [sp, #20]
	mov	r0, r4
	ldr	r9, [sp, #16]
	bl	SysStringLen
	mov	r2, r4
	mov	r3, r0
	mov	r1, r9
	mov	r0, r8
	str	r6, [sp]
	bl	search_for_domain_mapping
	mov	r4, r0
	ldr	r0, [sp, #20]
	bl	RegCloseKey
	b	.L7
.L20:
	ldr	r3, .L23+40
	ldr	r1, [r5]
	ldr	r0, [r3]
	add	r2, sp, #20
	bl	RegOpenKeyW
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L22
	ldr	r0, [r5]
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L23+44
	bl	WARN
	b	.L8
.L22:
	ldr	r4, [sp, #12]
	ldr	r5, [sp, #20]
	mov	r0, r4
	ldr	r7, [sp, #16]
	bl	SysStringLen
	mov	r2, r4
	mov	r3, r0
	mov	r1, r7
	mov	r0, r5
	str	r6, [sp]
	bl	search_for_domain_mapping
	mov	r4, r0
	ldr	r0, [sp, #20]
	bl	RegCloseKey
	b	.L8
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	URL_SCHEME_UNKNOWN
	.word	URL_SCHEME_FILE
	.word	HKEY_CURRENT_USER
	.word	wszZoneMapDomainsKey
	.word	ERROR_SUCCESS
	.word	.LC0
	.word	S_FALSE
	.word	URLZONE_INVALID
	.word	S_OK
	.word	HKEY_LOCAL_MACHINE
	.word	.LC1
	.size	get_zone_from_domains, .-get_zone_from_domains
	.comm	wszZoneMapDomainsKey,4,4
	.comm	URL_SCHEME_UNKNOWN,4,4
	.comm	URL_SCHEME_FILE,4,4
	.comm	URLZONE_INVALID,4,4
	.comm	S_OK,4,4
	.comm	S_FALSE,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	HKEY_CURRENT_USER,4,4
	.comm	ERROR_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
