	.file	"extr_file.c_mrb_file_s_readlink.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"z"
	.text
	.p2align 4
	.type	mrb_file_s_readlink, @function
mrb_file_s_readlink:
.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	r13, rdi
	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
	mov	ebx, 100
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	mrb_gc_arena_save@PLT
	mov	rdx, rsp
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	r15d, eax
	call	mrb_get_args@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, -1
	call	mrb_locale_from_utf8@PLT
	mov	esi, 100
	mov	rdi, r13
	mov	r14, rax
	call	mrb_malloc@PLT
	mov	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	eax, -1
	je	.L13
	add	rbx, rbx
	mov	rsi, rbp
	mov	rdi, r13
	mov	rdx, rbx
	call	mrb_realloc@PLT
	mov	rbp, rax
.L2:
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r14
	call	readlink@PLT
	mov	r12d, eax
	cmp	eax, ebx
	je	.L14
	mov	rdi, r14
	call	mrb_locale_free@PLT
	cmp	r12d, -1
	je	.L7
.L6:
	mov	esi, -1
	mov	rdi, rbp
	call	mrb_utf8_from_locale@PLT
	mov	edx, r12d
	mov	rdi, r13
	mov	rsi, rax
	mov	r14, rax
	call	mrb_str_new@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	mrb_locale_free@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	mrb_free@PLT
	mov	esi, r15d
	mov	rdi, r13
	call	mrb_gc_arena_restore@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	rdi, r14
	call	mrb_locale_free@PLT
.L7:
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12d, -1
	call	mrb_free@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r13
	call	mrb_sys_fail@PLT
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mrb_file_s_readlink, .-mrb_file_s_readlink
	.comm	E_NOTIMP_ERROR,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_file.c_mrb_file_s_readlink.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"z\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_file_s_readlink, %function
mrb_file_s_readlink:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	bl	mrb_gc_arena_save
	mov	r2, sp
	ldr	r1, .L16+4
	mov	r9, r0
	mov	r0, r7
	bl	mrb_get_args
	mvn	r1, #0
	ldr	r0, [sp]
	bl	mrb_locale_from_utf8
	mov	r1, #100
	mov	r8, r0
	mov	r0, r7
	bl	mrb_malloc
	mov	r4, #100
	mov	r5, r0
	b	.L2
.L14:
	cmn	r4, #1
	beq	.L13
	lsl	r4, r4, #1
	mov	r1, r5
	mov	r2, r4
	mov	r0, r7
	bl	mrb_realloc
	mov	r5, r0
.L2:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r8
	bl	readlink
	cmp	r4, r0
	mov	r6, r0
	beq	.L14
	mov	r0, r8
	bl	mrb_locale_free
	cmn	r6, #1
	beq	.L7
.L6:
	mvn	r1, #0
	mov	r0, r5
	bl	mrb_utf8_from_locale
	mov	r2, r6
	mov	r1, r0
	mov	r4, r0
	mov	r0, r7
	bl	mrb_str_new
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	mrb_locale_free
	mov	r1, r5
	mov	r0, r7
	bl	mrb_free
	mov	r1, r9
	mov	r0, r7
	bl	mrb_gc_arena_restore
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	mov	r0, r8
	bl	mrb_locale_free
.L7:
	mov	r1, r5
	mov	r0, r7
	bl	mrb_free
	mov	r0, r7
	ldr	r1, [sp]
	bl	mrb_sys_fail
	mvn	r6, #0
	b	.L6
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.size	mrb_file_s_readlink, .-mrb_file_s_readlink
	.comm	E_NOTIMP_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
