	.file	"extr_name.c_hx509_name_expand.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"RDN not of supported type"
.LC1:
	.string	"unsupported type"
.LC2:
	.string	"${"
.LC3:
	.string	"%.*s"
.LC4:
	.string	"out of memory"
.LC5:
	.string	"missing }"
.LC6:
	.string	"variable %.*s missing"
.LC7:
	.string	"%s"
	.text
	.p2align 4
	.globl	hx509_name_expand
	.type	hx509_name_expand, @function
hx509_name_expand:
.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, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 16[rsp], rsi
	test	rdx, rdx
	je	.L2
	mov	rax, QWORD PTR choice_Name_rdnSequence[rip]
	mov	r14d, edi
	cmp	QWORD PTR [rsi], rax
	jne	.L3
	cmp	QWORD PTR 8[rsi], 0
	je	.L2
	mov	rax, QWORD PTR 16[rsp]
	mov	r13, rdx
	mov	QWORD PTR 32[rsp], 0
	lea	r15, .LC7[rip]
	mov	rbp, QWORD PTR 16[rax]
.L4:
	mov	rax, QWORD PTR 32[rsp]
	sal	rax, 4
	mov	QWORD PTR 40[rsp], rax
	add	rax, rbp
	cmp	QWORD PTR [rax], 0
	je	.L16
	mov	QWORD PTR 8[rsp], 0
.L15:
	mov	rdx, QWORD PTR 8[rsp]
	sal	rdx, 4
	add	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR choice_DirectoryString_utf8String[rip]
	mov	QWORD PTR 24[rsp], rdx
	cmp	QWORD PTR [rdx], rax
	jne	.L36
	mov	rax, QWORD PTR 24[rsp]
	lea	rsi, .LC2[rip]
	mov	rbx, QWORD PTR 8[rax]
	mov	rdi, rbx
	call	strstr@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	rdx, rax
	mov	rcx, rbx
	lea	rsi, .LC3[rip]
	xor	edi, edi
	sub	rdx, rbx
	xor	eax, eax
	call	rk_strpoolprintf@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L31
	mov	rax, r13
	mov	r13, rbp
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, 125
	mov	rdi, r12
	call	strchr@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L37
	add	r12, 2
	mov	rsi, rbp
	mov	edi, r14d
	sub	rax, r12
	mov	rdx, r12
	mov	ecx, eax
	mov	QWORD PTR [rsp], rax
	call	hx509_env_lfind@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L38
	xor	eax, eax
	mov	rsi, r15
	mov	rdi, r13
	call	rk_strpoolprintf@PLT
	test	rax, rax
	je	.L31
	lea	r13, 1[rbx]
	lea	rsi, .LC2[rip]
	mov	QWORD PTR [rsp], rax
	mov	rdi, r13
	call	strstr@PLT
	mov	r8, QWORD PTR [rsp]
	test	rax, rax
	mov	r12, rax
	je	.L12
	mov	rdx, rax
	mov	rcx, r13
	lea	rsi, .LC3[rip]
	mov	rdi, r8
	sub	rdx, r13
	xor	eax, eax
	call	rk_strpoolprintf@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L8
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rbx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 8[rbx]
	call	free@PLT
	mov	rdi, rbp
	call	rk_strpoolcollect@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR 16[rsp]
	mov	rbp, QWORD PTR 16[rax]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 40[rsp]
	add	QWORD PTR 8[rsp], 1
	mov	rcx, QWORD PTR 8[rsp]
	add	rax, rbp
	cmp	QWORD PTR [rax], rcx
	ja	.L15
.L16:
	mov	rcx, QWORD PTR 16[rsp]
	add	QWORD PTR 32[rsp], 1
	mov	rax, QWORD PTR 32[rsp]
	cmp	QWORD PTR 8[rcx], rax
	ja	.L4
.L2:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L12:
	.cfi_restore_state
	mov	rbx, r13
	mov	rsi, r15
	mov	rdi, r8
	xor	eax, eax
	mov	rdx, rbx
	mov	r13, rbp
	call	rk_strpoolprintf@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L14
.L31:
	mov	edx, DWORD PTR ENOMEM[rip]
	mov	edi, r14d
	xor	esi, esi
	xor	eax, eax
	lea	rcx, .LC4[rip]
	call	hx509_set_error_string@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L3:
	.cfi_restore_state
	lea	rcx, .LC0[rip]
.L34:
	mov	edx, DWORD PTR EINVAL[rip]
	mov	edi, r14d
	xor	esi, esi
	xor	eax, eax
	call	hx509_set_error_string@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L37:
	.cfi_restore_state
	mov	edx, DWORD PTR EINVAL[rip]
	mov	edi, r14d
	xor	esi, esi
	xor	eax, eax
	lea	rcx, .LC5[rip]
	call	hx509_set_error_string@PLT
	mov	rdi, r13
	call	rk_strpoolfree@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L38:
	.cfi_restore_state
	mov	r8d, DWORD PTR [rsp]
	mov	edx, DWORD PTR EINVAL[rip]
	mov	r9, r12
	mov	edi, r14d
	lea	rcx, .LC6[rip]
	xor	esi, esi
	xor	eax, eax
	call	hx509_set_error_string@PLT
	mov	rdi, r13
	call	rk_strpoolfree@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L36:
	.cfi_restore_state
	lea	rcx, .LC1[rip]
	jmp	.L34
	.cfi_endproc
.LFE0:
	.size	hx509_name_expand, .-hx509_name_expand
	.comm	choice_Name_rdnSequence,8,8
	.comm	choice_DirectoryString_utf8String,8,8
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_name.c_hx509_name_expand.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RDN not of supported type\000"
	.align	2
.LC1:
	.ascii	"unsupported type\000"
	.align	2
.LC2:
	.ascii	"${\000"
	.align	2
.LC3:
	.ascii	"%.*s\000"
	.align	2
.LC4:
	.ascii	"out of memory\000"
	.align	2
.LC5:
	.ascii	"missing }\000"
	.align	2
.LC6:
	.ascii	"variable %.*s missing\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.text
	.align	2
	.global	hx509_name_expand
	.syntax unified
	.arm
	.fpu softvfp
	.type	hx509_name_expand, %function
hx509_name_expand:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r9, r2, #0
	sub	sp, sp, #36
	str	r1, [sp, #16]
	beq	.L2
	ldr	r3, .L39
	ldr	r2, [r1]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r2, [r1, #4]
	cmp	r2, #0
	beq	.L2
	mov	r3, #0
	mov	r7, r0
	str	r3, [sp, #24]
	ldr	r3, [sp, #16]
	ldr	r10, .L39+4
	ldr	r5, [r3, #8]
	ldr	r8, .L39+8
.L4:
	ldr	r1, [sp, #24]
	ldr	r3, [r5, r1, lsl #3]
	lsl	r0, r1, #3
	cmp	r3, #0
	movne	r2, #0
	str	r0, [sp, #28]
	add	r3, r5, r1, lsl #3
	strne	r2, [sp, #12]
	beq	.L16
.L15:
	ldr	fp, [r3, #4]
	ldr	r1, [sp, #12]
	ldr	r3, .L39+12
	ldr	r2, [fp, r1, lsl #3]
	ldr	r3, [r3]
	add	r1, fp, r1, lsl #3
	cmp	r2, r3
	str	r1, [sp, #20]
	bne	.L36
	ldr	r3, [sp, #20]
	mov	r1, r10
	ldr	r6, [r3, #4]
	mov	r0, r6
	bl	strstr
	subs	r4, r0, #0
	beq	.L7
	mov	r3, r6
	mov	r0, #0
	ldr	r1, .L39+16
	sub	r2, r4, r6
	bl	rk_strpoolprintf
	subs	r5, r0, #0
	beq	.L34
.L8:
	mov	r0, r4
	mov	r1, #125
	bl	strchr
	add	fp, r4, #2
	cmp	r0, #0
	sub	r4, r0, fp
	add	r6, r0, #1
	beq	.L37
	mov	r2, fp
	mov	r3, r4
	mov	r1, r9
	mov	r0, r7
	bl	hx509_env_lfind
	subs	r2, r0, #0
	beq	.L38
	mov	r0, r5
	mov	r1, r8
	bl	rk_strpoolprintf
	subs	r5, r0, #0
	beq	.L34
	mov	r1, r10
	mov	r0, r6
	bl	strstr
	subs	r4, r0, #0
	sub	r2, r4, r6
	beq	.L12
	mov	r0, r5
	mov	r3, r6
	ldr	r1, .L39+16
	bl	rk_strpoolprintf
	subs	r5, r0, #0
	bne	.L8
	b	.L13
.L14:
	ldr	r6, [sp, #20]
	ldr	r0, [r6, #4]
	bl	free
	mov	r0, r5
	bl	rk_strpoolcollect
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L31
	ldr	r3, [sp, #16]
	ldr	r5, [r3, #8]
.L7:
	ldr	r2, [sp, #28]
	ldr	r1, [sp, #12]
	ldr	r3, [r5, r2]
	add	r1, r1, #1
	cmp	r3, r1
	str	r1, [sp, #12]
	add	r3, r5, r2
	bhi	.L15
	ldr	r3, [sp, #16]
	ldr	r2, [r3, #4]
.L16:
	ldr	r3, [sp, #24]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #24]
	bhi	.L4
.L2:
	mov	r0, #0
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r5
	mov	r2, r6
	mov	r1, r8
	bl	rk_strpoolprintf
	subs	r5, r0, #0
	bne	.L14
.L13:
	ldr	r4, .L39+20
	mov	r0, r7
	mov	r1, #0
	ldr	r2, [r4]
	ldr	r3, .L39+24
	bl	hx509_set_error_string
	ldr	r0, [r4]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r4, .L39+28
	mov	r1, #0
	ldr	r3, .L39+32
	ldr	r2, [r4]
	bl	hx509_set_error_string
	ldr	r0, [r4]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r4, .L39+20
	mov	r1, r5
	mov	r0, r7
	ldr	r2, [r4]
	ldr	r3, .L39+24
	bl	hx509_set_error_string
	ldr	r0, [r4]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	ldr	r4, .L39+28
	mov	r1, r0
	ldr	r2, [r4]
	ldr	r3, .L39+36
	mov	r0, r7
	bl	hx509_set_error_string
	mov	r0, r5
	bl	rk_strpoolfree
	ldr	r0, [r4]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L38:
	stm	sp, {r4, fp}
	ldr	r6, .L39+28
	mov	r1, r2
	ldr	r3, .L39+40
	ldr	r2, [r6]
	mov	r0, r7
	bl	hx509_set_error_string
	mov	r0, r5
	bl	rk_strpoolfree
	ldr	r0, [r6]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	ldr	r4, .L39+28
	mov	r0, r7
	mov	r1, #0
	ldr	r2, [r4]
	ldr	r3, .L39+44
	bl	hx509_set_error_string
	ldr	r0, [r4]
	b	.L1
.L31:
	ldr	r5, .L39+20
	mov	r1, r4
	mov	r0, r7
	ldr	r2, [r5]
	ldr	r3, .L39+24
	bl	hx509_set_error_string
	ldr	r0, [r5]
	b	.L1
.L40:
	.align	2
.L39:
	.word	choice_Name_rdnSequence
	.word	.LC2
	.word	.LC7
	.word	choice_DirectoryString_utf8String
	.word	.LC3
	.word	ENOMEM
	.word	.LC4
	.word	EINVAL
	.word	.LC0
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.size	hx509_name_expand, .-hx509_name_expand
	.comm	choice_Name_rdnSequence,4,4
	.comm	choice_DirectoryString_utf8String,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
