	.file	"extr_ucl_util.c_ucl_parser_add_fd_full.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot stat fd %d: %s"
.LC1:
	.string	"cannot mmap fd %d: %s"
	.text
	.p2align 4
	.globl	ucl_parser_add_fd_full
	.type	ucl_parser_add_fd_full, @function
ucl_parser_add_fd_full:
.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
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, r12d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rsi, 16[rsp]
	call	fstat@PLT
	cmp	eax, -1
	je	.L17
	mov	rsi, QWORD PTR 16[rsp]
	mov	r15d, 1
	test	rsi, rsi
	jne	.L18
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L18:
	.cfi_restore_state
	mov	ecx, DWORD PTR MAP_SHARED[rip]
	xor	r9d, r9d
	xor	edi, edi
	mov	r8d, r12d
	mov	edx, DWORD PTR PROT_READ[rip]
	call	ucl_mmap@PLT
	cmp	QWORD PTR MAP_FAILED[rip], rax
	mov	r10, rax
	je	.L20
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L5
	mov	QWORD PTR 8[rsp], rax
	call	free@PLT
	mov	r10, QWORD PTR 8[rsp]
.L5:
	mov	r12, QWORD PTR 16[rsp]
	mov	rsi, r10
	mov	r9d, r14d
	mov	r8d, ebx
	mov	QWORD PTR 0[rbp], 0
	mov	ecx, r13d
	mov	rdi, rbp
	mov	rdx, r12
	mov	QWORD PTR 8[rsp], r10
	call	ucl_parser_add_chunk_full@PLT
	test	r12, r12
	mov	r10, QWORD PTR 8[rsp]
	mov	r15d, eax
	je	.L1
	mov	rsi, r12
	mov	rdi, r10
	call	ucl_munmap@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR errno[rip]
	xor	r15d, r15d
	call	strerror@PLT
	lea	rdi, 8[rbp]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	ecx, eax
	call	ucl_create_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR errno[rip]
	xor	r15d, r15d
	call	strerror@PLT
	lea	rdi, 8[rbp]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	ecx, eax
	call	ucl_create_err@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ucl_parser_add_fd_full, .-ucl_parser_add_fd_full
	.comm	errno,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_FAILED,8,8
	.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_ucl_util.c_ucl_parser_add_fd_full.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot stat fd %d: %s\000"
	.align	2
.LC1:
	.ascii	"cannot mmap fd %d: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ucl_parser_add_fd_full
	.syntax unified
	.arm
	.fpu softvfp
	.type	ucl_parser_add_fd_full, %function
ucl_parser_add_fd_full:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, r3
	sub	sp, sp, #20
	ldr	r3, .L20
	mov	r4, r1
	mov	r5, r0
	mov	r0, r1
	add	r1, sp, #8
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	fstat
	cmn	r0, #1
	beq	.L16
	ldr	r1, [sp, #8]
	cmp	r1, #0
	moveq	r6, #1
	bne	.L17
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r6, #0
	stm	sp, {r4, r6}
	ldr	r3, .L20+4
	ldr	r2, .L20+8
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	bl	ucl_mmap
	ldr	r3, .L20+12
	mov	r8, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L19
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L5
	bl	free
.L5:
	mov	r2, #0
	ldr	r4, [sp, #8]
	ldr	r3, [sp, #48]
	str	r9, [sp]
	str	r3, [sp, #4]
	mov	r0, r5
	str	r2, [r5]
	mov	r3, r7
	mov	r2, r4
	mov	r1, r8
	bl	ucl_parser_add_chunk_full
	cmp	r4, #0
	mov	r6, r0
	beq	.L1
	mov	r1, r4
	mov	r0, r8
	bl	ucl_munmap
	b	.L1
.L16:
	ldr	r3, .L20+16
	mov	r6, #0
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L20+20
	add	r0, r5, #4
	bl	ucl_create_err
	b	.L1
.L19:
	ldr	r3, .L20+16
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L20+24
	add	r0, r5, #4
	bl	ucl_create_err
	b	.L1
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	MAP_SHARED
	.word	PROT_READ
	.word	MAP_FAILED
	.word	errno
	.word	.LC0
	.word	.LC1
	.size	ucl_parser_add_fd_full, .-ucl_parser_add_fd_full
	.comm	errno,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
