	.file	"extr_main.c_get_cps_str_from_qualifier.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_cps_str_from_qualifier, @function
get_cps_str_from_qualifier:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r9d, r9d
	xor	r12d, r12d
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR 4[rdi]
	mov	ecx, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rax, 12[rsp]
	mov	r8d, DWORD PTR CRYPT_DECODE_ALLOC_FLAG[rip]
	mov	esi, DWORD PTR X509_NAME_VALUE[rip]
	push	rax
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR X509_ASN_ENCODING[rip]
	lea	rax, 24[rsp]
	push	rax
	.cfi_def_cfa_offset 64
	call	CryptDecodeObjectEx@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR 16[rsp]
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, DWORD PTR 4[rsi]
	call	CertRDNValueToStrW@PLT
	mov	r12d, eax
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	lea	edx, 0[0+r12*4]
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rsi, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	rdx, rax
	mov	edi, DWORD PTR 4[rsi]
	call	CertRDNValueToStrW@PLT
.L3:
	mov	rdi, QWORD PTR 16[rsp]
	call	LocalFree@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_cps_str_from_qualifier, .-get_cps_str_from_qualifier
	.comm	X509_NAME_VALUE,4,4
	.comm	X509_ASN_ENCODING,4,4
	.comm	CRYPT_DECODE_ALLOC_FLAG,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_main.c_get_cps_str_from_qualifier.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cps_str_from_qualifier, %function
get_cps_str_from_qualifier:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, #0
	ldr	r3, .L12
	sub	sp, sp, #36
	ldr	ip, [r3]
	ldr	r4, .L12+4
	ldr	r1, .L12+8
	ldr	r3, [r0]
	ldr	r2, [r0, #4]
	str	ip, [sp]
	str	r5, [sp, #4]
	add	ip, sp, #20
	ldr	r0, [r4]
	ldr	r1, [r1]
	add	lr, sp, #24
	str	ip, [sp, #8]
	ldr	ip, .L12+12
	str	lr, [sp, #12]
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bl	CryptDecodeObjectEx
	subs	r4, r0, #0
	beq	.L1
	ldr	r1, [sp, #20]
	mov	r3, r5
	mov	r2, r5
	ldr	r0, [r1, #4]
	bl	CertRDNValueToStrW
	str	r0, [sp, #24]
	bl	GetProcessHeap
	ldr	r2, [sp, #24]
	mov	r1, r5
	lsl	r2, r2, #2
	bl	HeapAlloc
	subs	r4, r0, #0
	beq	.L3
	ldr	r1, [sp, #20]
	mov	r2, r4
	ldr	r3, [sp, #24]
	ldr	r0, [r1, #4]
	bl	CertRDNValueToStrW
.L3:
	ldr	r0, [sp, #20]
	bl	LocalFree
.L1:
	ldr	r3, .L12+12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	CRYPT_DECODE_ALLOC_FLAG
	.word	X509_ASN_ENCODING
	.word	X509_NAME_VALUE
	.word	.LC0
	.size	get_cps_str_from_qualifier, .-get_cps_str_from_qualifier
	.comm	X509_NAME_VALUE,4,4
	.comm	X509_ASN_ENCODING,4,4
	.comm	CRYPT_DECODE_ALLOC_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
