	.file	"extr_ctf_create.c_ctf_add_enum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ctf_add_enum
	.type	ctf_add_enum, @function
ctf_add_enum:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	je	.L2
	mov	rdi, rdx
	call	strlen@PLT
	lea	rdi, 8[rbx]
	mov	rdx, r12
	mov	rsi, rbx
	mov	ecx, eax
	call	ctf_hash_lookup@PLT
	mov	r13, rax
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR [rax]
	mov	rdi, rbx
	call	ctf_type_kind@PLT
	cmp	rax, QWORD PTR CTF_K_FORWARD[rip]
	je	.L14
.L2:
	mov	rdx, r12
	mov	rcx, rsp
	mov	esi, ebp
	mov	rdi, rbx
	call	ctf_add_generic@PLT
	cmp	DWORD PTR CTF_ERR[rip], eax
	mov	r12d, eax
	je	.L1
	mov	r13, QWORD PTR [rsp]
.L3:
	mov	edi, DWORD PTR CTF_K_ENUM[rip]
	xor	edx, edx
	mov	esi, ebp
	call	CTF_TYPE_INFO@PLT
	mov	DWORD PTR 4[r13], eax
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], edx
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	mov	r12d, DWORD PTR 0[r13]
	mov	rdi, rbx
	mov	esi, r12d
	call	ctf_dtd_lookup@PLT
	mov	QWORD PTR [rsp], rax
	mov	r13, rax
	jmp	.L3
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctf_add_enum, .-ctf_add_enum
	.comm	CTF_K_FORWARD,8,8
	.comm	CTF_K_ENUM,4,4
	.comm	CTF_ERR,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_ctf_create.c_ctf_add_enum.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ctf_add_enum
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctf_add_enum, %function
ctf_add_enum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	subs	r5, r2, #0
	mov	r4, r0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	mov	r0, r5
	bl	strlen
	mov	r2, r5
	mov	r3, r0
	mov	r1, r4
	add	r0, r4, #4
	bl	ctf_hash_lookup
	subs	r6, r0, #0
	beq	.L2
	mov	r0, r4
	ldr	r1, [r6]
	bl	ctf_type_kind
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
.L2:
	mov	r2, r5
	mov	r3, sp
	mov	r1, r7
	mov	r0, r4
	bl	ctf_add_generic
	ldr	r3, .L16+8
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	ldr	r6, [sp]
.L3:
	ldr	r3, .L16+12
	mov	r2, #0
	ldr	r0, [r3]
	mov	r1, r7
	bl	CTF_TYPE_INFO
	ldr	r2, [r4]
	ldr	r3, [sp]
	ldr	r2, [r2]
	str	r0, [r6, #4]
	str	r2, [r3]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r5, [r6]
	mov	r0, r4
	mov	r1, r5
	bl	ctf_dtd_lookup
	mov	r6, r0
	str	r0, [sp]
	b	.L3
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	CTF_K_FORWARD
	.word	CTF_ERR
	.word	CTF_K_ENUM
	.size	ctf_add_enum, .-ctf_add_enum
	.comm	CTF_K_FORWARD,4,4
	.comm	CTF_K_ENUM,4,4
	.comm	CTF_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
