	.file	"extr_lj_ctype.c_lj_ctype_getname.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lj_ctype_getname
	.type	lj_ctype_getname, @function
lj_ctype_getname:
.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
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 8[rdi]
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rsi
	call	ct_hashname@PLT
	mov	r14, QWORD PTR [rbx+rax*8]
	test	r14, r14
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14, QWORD PTR [rbx]
	test	r14, r14
	je	.L2
.L5:
	mov	rsi, r14
	mov	rdi, rbp
	call	ctype_get@PLT
	mov	edi, DWORD PTR 12[rax]
	mov	rbx, rax
	call	gcref@PLT
	mov	rdi, r12
	mov	r15, rax
	call	obj2gco@PLT
	cmp	r15, rax
	jne	.L3
	mov	edi, DWORD PTR 8[rbx]
	call	ctype_type@PLT
	bt	r13d, eax
	jnc	.L3
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	xor	r14d, r14d
	mov	QWORD PTR [rdx], rax
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
	.cfi_endproc
.LFE0:
	.size	lj_ctype_getname, .-lj_ctype_getname
	.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_lj_ctype.c_lj_ctype_getname.c"
	.text
	.align	2
	.global	lj_ctype_getname
	.syntax unified
	.arm
	.fpu softvfp
	.type	lj_ctype_getname, %function
lj_ctype_getname:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r0, r2
	ldr	r4, [r6, #4]
	mov	r7, r2
	mov	r9, r1
	mov	r8, r3
	bl	ct_hashname
	ldr	r10, [r4, r0, lsl #2]
	cmp	r10, #0
	bne	.L5
	b	.L2
.L3:
	ldr	r10, [r4]
	cmp	r10, #0
	beq	.L2
.L5:
	mov	r1, r10
	mov	r0, r6
	bl	ctype_get
	mov	r4, r0
	ldr	r0, [r0, #8]
	bl	gcref
	mov	r5, r0
	mov	r0, r7
	bl	obj2gco
	cmp	r5, r0
	bne	.L3
	ldr	r0, [r4, #4]
	bl	ctype_type
	asr	r0, r8, r0
	tst	r0, #1
	beq	.L3
	mov	r0, r10
	str	r4, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r10, #0
	ldr	r3, [r6]
	mov	r0, r10
	str	r3, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	lj_ctype_getname, .-lj_ctype_getname
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
