	.file	"extr_sec_mgr.c_generate_security_id.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generate_security_id, @function
generate_security_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR URLZONE_INVALID[rip], rcx
	je	.L14
	mov	r13, rsi
	mov	rsi, rsp
	mov	r14, rdi
	mov	rbp, rdx
	mov	rbx, rcx
	call	IUri_GetScheme@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L17
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	call	is_hierarchical_scheme@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR URL_SCHEME_WILDCARD[rip]
	cmp	QWORD PTR [rsp], rax
	jne	.L19
.L4:
	mov	rdi, r14
	lea	rsi, 8[rsp]
	call	IUri_GetHost@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR URL_SCHEME_WILDCARD[rip]
	cmp	QWORD PTR [rsp], rax
	jne	.L9
	mov	rdi, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L20
.L9:
	mov	rdi, r14
	lea	rsi, 16[rsp]
	call	IUri_GetSchemeName@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L21
	push	0
	.cfi_def_cfa_offset 104
	mov	edi, DWORD PTR CP_ACP[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 112
	mov	rdx, QWORD PTR 24[rsp]
	mov	ecx, -1
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	push	0
	.cfi_def_cfa_offset 120
	mov	edi, DWORD PTR CP_ACP[rip]
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 128
	mov	rdx, QWORD PTR 48[rsp]
	xor	r8d, r8d
	mov	ecx, -1
	xor	esi, esi
	lea	r12, -1[rax]
	call	WideCharToMultiByte@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	lea	r14, -1[rax]
	lea	rax, [r12+r14]
	lea	r15, 12[rax]
	cmp	r15, QWORD PTR 0[rbp]
	ja	.L22
	push	0
	.cfi_def_cfa_offset 104
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r8, r13
	lea	r9, 4[rax]
	push	0
	.cfi_def_cfa_offset 112
	mov	rdx, QWORD PTR 32[rsp]
	mov	ecx, -1
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	SysFreeString@PLT
	lea	rax, 0[r13+r14*4]
	mov	r9, r12
	xor	esi, esi
	mov	DWORD PTR [rax], 58
	lea	r13, 4[rax]
	mov	ecx, -1
	mov	edi, DWORD PTR CP_ACP[rip]
	push	0
	.cfi_def_cfa_offset 120
	mov	r8, r13
	push	0
	.cfi_def_cfa_offset 128
	mov	rdx, QWORD PTR 40[rsp]
	call	WideCharToMultiByte@PLT
	mov	rdi, QWORD PTR 40[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 96
	call	SysFreeString@PLT
	mov	QWORD PTR 0[r13+r12*4], rbx
.L7:
	mov	QWORD PTR 0[rbp], r15
	mov	r12d, DWORD PTR S_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	call	SysFreeString@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR E_INVALIDARG[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r14
	lea	rsi, 16[rsp]
	call	IUri_GetDisplayUri@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	push	0
	.cfi_def_cfa_offset 104
	mov	edi, DWORD PTR CP_ACP[rip]
	xor	esi, esi
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 112
	mov	rdx, QWORD PTR 32[rsp]
	xor	r8d, r8d
	mov	ecx, -1
	call	WideCharToMultiByte@PLT
	pop	rsi
	.cfi_def_cfa_offset 104
	pop	rdi
	.cfi_def_cfa_offset 96
	lea	r15, 7[rax]
	cmp	r15, QWORD PTR 0[rbp]
	ja	.L15
	push	0
	.cfi_def_cfa_offset 104
	lea	r12, -1[rax]
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r8, r13
	push	0
	.cfi_def_cfa_offset 112
	mov	rdx, QWORD PTR 32[rsp]
	mov	ecx, -1
	mov	r9, r12
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	SysFreeString@PLT
	mov	QWORD PTR 0[r13+r12*4], rbx
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 8[rsp]
	call	SysFreeString@PLT
.L15:
	mov	rdi, QWORD PTR 16[rsp]
	call	SysFreeString@PLT
	mov	r12d, DWORD PTR E_NOT_SUFFICIENT_BUFFER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 8[rsp]
	call	SysFreeString@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generate_security_id, .-generate_security_id
	.comm	URL_SCHEME_WILDCARD,8,8
	.comm	URLZONE_INVALID,8,8
	.comm	S_OK,4,4
	.comm	E_NOT_SUFFICIENT_BUFFER,4,4
	.comm	E_INVALIDARG,4,4
	.comm	CP_ACP,4,4
	.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_generate_security_id.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_security_id, %function
generate_security_id:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	ldr	r3, .L23
	sub	sp, sp, #36
	ldr	r3, [r3]
	cmp	r3, r5
	ldr	r3, .L23+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L14
	mov	r6, r1
	add	r1, sp, #16
	mov	r7, r2
	mov	r8, r0
	bl	IUri_GetScheme
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	beq	.L17
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r0, [sp, #16]
	bl	is_hierarchical_scheme
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L23+8
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L19
.L4:
	add	r1, sp, #20
	mov	r0, r8
	bl	IUri_GetHost
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L23+8
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
	ldr	r0, [sp, #20]
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L20
.L9:
	mov	r0, r8
	add	r1, sp, #24
	bl	IUri_GetSchemeName
	mov	r4, r0
	bl	FAILED
	subs	r8, r0, #0
	bne	.L21
	ldr	fp, .L23+12
	mvn	r3, #0
	mov	r1, r8
	ldr	r2, [sp, #20]
	ldr	r0, [fp]
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	str	r8, [sp, #4]
	str	r8, [sp]
	bl	WideCharToMultiByte
	mvn	r3, #0
	mov	r4, r0
	ldr	r2, [sp, #24]
	mov	r1, r8
	ldr	r0, [fp]
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	str	r8, [sp, #4]
	str	r8, [sp]
	add	r4, r4, r3
	bl	WideCharToMultiByte
	sub	r9, r0, #1
	ldr	r2, [r7]
	add	r3, r4, r9
	add	r10, r3, #8
	cmp	r10, r2
	bhi	.L22
	add	r3, r3, #4
	mov	r1, r8
	ldr	r2, [sp, #24]
	str	r3, [sp, #4]
	str	r6, [sp]
	mvn	r3, #0
	ldr	r0, [fp]
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	bl	WideCharToMultiByte
	ldr	r0, [sp, #24]
	bl	SysFreeString
	mov	r2, #58
	add	r3, r6, r9, lsl #2
	str	r2, [r6, r9, lsl #2]
	add	r6, r3, #4
	mov	r1, r8
	mvn	r3, #0
	ldr	r2, [sp, #20]
	stmib	sp, {r4, r8}
	ldr	r0, [fp]
	str	r8, [sp, #12]
	str	r6, [sp]
	bl	WideCharToMultiByte
	ldr	r0, [sp, #20]
	bl	SysFreeString
	str	r5, [r6, r4, lsl #2]
.L7:
	ldr	r3, .L23+16
	str	r10, [r7]
	ldr	r4, [r3]
	b	.L1
.L20:
	bl	SysFreeString
.L14:
	ldr	r3, .L23+20
	ldr	r4, [r3]
	b	.L1
.L19:
	mov	r0, r8
	add	r1, sp, #24
	bl	IUri_GetDisplayUri
	mov	r4, r0
	bl	FAILED
	subs	r8, r0, #0
	bne	.L1
	ldr	r4, .L23+12
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	str	r8, [sp, #4]
	str	r8, [sp]
	mvn	r3, #0
	mov	r1, r8
	ldr	r0, [r4]
	ldr	r2, [sp, #24]
	bl	WideCharToMultiByte
	ldr	r3, [r7]
	add	r10, r0, #3
	cmp	r10, r3
	bhi	.L15
	sub	r9, r0, #1
	str	r9, [sp, #4]
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	str	r6, [sp]
	mov	r1, r8
	mvn	r3, #0
	ldr	r2, [sp, #24]
	ldr	r0, [r4]
	bl	WideCharToMultiByte
	ldr	r0, [sp, #24]
	bl	SysFreeString
	str	r5, [r6, r9, lsl #2]
	b	.L7
.L22:
	ldr	r0, [sp, #20]
	bl	SysFreeString
.L15:
	ldr	r0, [sp, #24]
	bl	SysFreeString
	ldr	r3, .L23+24
	ldr	r4, [r3]
	b	.L1
.L21:
	ldr	r0, [sp, #20]
	bl	SysFreeString
	b	.L1
.L18:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	URLZONE_INVALID
	.word	.LC0
	.word	URL_SCHEME_WILDCARD
	.word	CP_ACP
	.word	S_OK
	.word	E_INVALIDARG
	.word	E_NOT_SUFFICIENT_BUFFER
	.size	generate_security_id, .-generate_security_id
	.comm	URL_SCHEME_WILDCARD,4,4
	.comm	URLZONE_INVALID,4,4
	.comm	S_OK,4,4
	.comm	E_NOT_SUFFICIENT_BUFFER,4,4
	.comm	E_INVALIDARG,4,4
	.comm	CP_ACP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
