	.file	"extr_ctf_types.c_ctf_enum_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ctf_enum_value
	.type	ctf_enum_value, @function
ctf_enum_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	ctf_type_resolve@PLT
	cmp	DWORD PTR CTF_ERR[rip], eax
	je	.L1
	lea	rdi, 8[rsp]
	mov	esi, eax
	call	ctf_lookup_by_id@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L16
	mov	esi, DWORD PTR [rax]
	mov	rdi, QWORD PTR 8[rsp]
	call	LCTF_INFO_KIND@PLT
	cmp	rax, QWORD PTR CTF_K_ENUM[rip]
	je	.L4
	mov	esi, DWORD PTR ECTF_NOTENUM[rip]
	mov	rdi, r12
	call	ctf_set_errno@PLT
	mov	eax, DWORD PTR CTF_ERR[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR ECTF_NOENUMNAM[rip]
	mov	rdi, r12
	call	ctf_set_errno@PLT
.L16:
	mov	eax, DWORD PTR CTF_ERR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, rbx
	lea	rcx, 32[rsp]
	lea	rdx, 24[rsp]
	call	ctf_get_ctt_size@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 8[rsp]
	mov	r14, QWORD PTR 32[rsp]
	call	LCTF_INFO_VLEN@PLT
	add	r14, rbx
	mov	rbx, rax
	test	rax, rax
	jne	.L7
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	r14, 8
	sub	rbx, 1
	je	.L5
.L7:
	mov	esi, DWORD PTR 4[r14]
	mov	rdi, QWORD PTR 8[rsp]
	call	ctf_strptr@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	test	r13, r13
	je	.L1
	mov	edx, DWORD PTR [r14]
	mov	DWORD PTR 0[r13], edx
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctf_enum_value, .-ctf_enum_value
	.comm	ECTF_NOTENUM,4,4
	.comm	ECTF_NOENUMNAM,4,4
	.comm	CTF_K_ENUM,8,8
	.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_types.c_ctf_enum_value.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ctf_enum_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctf_enum_value, %function
ctf_enum_value:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r3
	sub	sp, sp, #28
	ldr	r3, .L20
	str	r0, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r2
	mov	r7, r0
	bl	ctf_type_resolve
	ldr	r9, .L20+4
	ldr	r3, [r9]
	cmp	r3, r0
	beq	.L1
	mov	r1, r0
	add	r0, sp, #4
	bl	ctf_lookup_by_id
	subs	r4, r0, #0
	beq	.L17
	ldr	r1, [r4]
	ldr	r0, [sp, #4]
	bl	LCTF_INFO_KIND
	ldr	r3, .L20+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	ldr	r3, .L20+12
	mov	r0, r7
	ldr	r1, [r3]
	bl	ctf_set_errno
	ldr	r0, [r9]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r3, .L20+16
	mov	r0, r7
	ldr	r1, [r3]
	bl	ctf_set_errno
.L17:
	ldr	r0, [r9]
	b	.L1
.L4:
	mov	r1, r4
	add	r3, sp, #16
	add	r2, sp, #12
	ldr	r0, [sp, #4]
	bl	ctf_get_ctt_size
	ldr	r3, [sp, #16]
	ldr	r1, [r4]
	ldr	r0, [sp, #4]
	add	r4, r4, r3
	bl	LCTF_INFO_VLEN
	subs	r5, r0, #0
	bne	.L7
	b	.L5
.L6:
	subs	r5, r5, #1
	add	r4, r4, #8
	beq	.L5
.L7:
	ldr	r1, [r4, #4]
	ldr	r0, [sp, #4]
	bl	ctf_strptr
	mov	r1, r6
	bl	strcmp
	cmp	r0, #0
	bne	.L6
	cmp	r8, #0
	ldrne	r3, [r4]
	strne	r3, [r8]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	CTF_ERR
	.word	CTF_K_ENUM
	.word	ECTF_NOTENUM
	.word	ECTF_NOENUMNAM
	.size	ctf_enum_value, .-ctf_enum_value
	.comm	ECTF_NOTENUM,4,4
	.comm	ECTF_NOENUMNAM,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
