	.file	"extr_archive_read_open_filename.c_file_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"Failed to open '%s'"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Unexpedted operation in archive_read_open_filename"
	.section	.rodata.str1.1
.LC3:
	.string	"Can't stat '%S'"
.LC4:
	.string	"Can't stat '%s'"
.LC5:
	.string	"No memory"
	.text
	.p2align 4
	.type	file_open, @function
file_open:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	archive_clear_error@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR FNT_STDIN[rip]
	je	.L20
	cmp	rax, QWORD PTR FNT_MBS[rip]
	je	.L42
	movsx	rsi, DWORD PTR ARCHIVE_ERRNO_MISC[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	archive_set_error@PLT
.L5:
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L43
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L42:
	.cfi_restore_state
	mov	r13, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR O_RDONLY[rip]
	or	esi, DWORD PTR O_BINARY[rip]
	or	esi, DWORD PTR O_CLOEXEC[rip]
	mov	rdi, r13
	call	open@PLT
	mov	r12d, eax
	mov	edi, eax
	call	__archive_ensure_cloexec_flag@PLT
	test	r12d, r12d
	js	.L44
.L2:
	mov	rsi, rsp
	mov	edi, r12d
	call	fstat@PLT
	test	rax, rax
	je	.L6
	mov	rsi, QWORD PTR errno[rip]
	mov	rax, QWORD PTR FNT_WCS[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L45
	mov	rcx, r13
	lea	rdx, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	archive_set_error@PLT
.L8:
	test	r12d, r12d
	je	.L5
	mov	edi, r12d
	call	close@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [rsp]
	call	S_ISREG@PLT
	test	rax, rax
	je	.L9
	mov	edx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	call	archive_read_extract_set_skip_file@PLT
.L10:
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, 65536
	cmp	rax, 65536
	ja	.L12
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L46:
	cmp	rdi, 67108863
	ja	.L14
.L12:
	add	rdi, rdi
	cmp	rdi, rax
	jb	.L46
.L14:
	mov	QWORD PTR 8[rbx], rdi
	call	malloc@PLT
	test	rax, rax
	je	.L17
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR 16[rbx], r12d
	mov	DWORD PTR 24[rbx], eax
	mov	DWORD PTR 20[rbx], 1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	xor	r12d, r12d
	lea	r13, .LC0[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR [rsp]
	call	S_ISBLK@PLT
	test	rax, rax
	jne	.L47
.L11:
	mov	rdi, QWORD PTR 8[rbx]
	call	malloc@PLT
	test	rax, rax
	je	.L17
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR 16[rbx], r12d
	mov	DWORD PTR 24[rbx], eax
.L16:
	mov	eax, DWORD PTR ARCHIVE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	xor	ecx, ecx
	lea	rdx, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	archive_set_error@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rsi, QWORD PTR errno[rip]
	mov	rcx, r13
	mov	rdi, rbp
	xor	eax, eax
	lea	rdx, .LC1[rip]
	call	archive_set_error@PLT
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	mov	edx, DWORD PTR SEEK_CUR[rip]
	xor	esi, esi
	mov	edi, r12d
	call	lseek@PLT
	test	rax, rax
	jne	.L11
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	edi, r12d
	call	lseek@PLT
	test	rax, rax
	jne	.L11
	mov	edx, DWORD PTR SEEK_END[rip]
	xor	esi, esi
	mov	edi, r12d
	call	lseek@PLT
	test	rax, rax
	jle	.L11
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	edi, r12d
	call	lseek@PLT
	test	rax, rax
	je	.L10
	jmp	.L11
.L17:
	movsx	rsi, DWORD PTR ENOMEM[rip]
	lea	rdx, .LC5[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	archive_set_error@PLT
	jmp	.L8
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	file_open, .-file_open
	.comm	errno,8,8
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	SEEK_CUR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CLOEXEC,4,4
	.comm	O_BINARY,4,4
	.comm	FNT_WCS,8,8
	.comm	FNT_STDIN,8,8
	.comm	FNT_MBS,8,8
	.comm	ENOMEM,4,4
	.comm	ENOENT,8,8
	.comm	DIOCGPART,4,4
	.comm	DIOCGMEDIASIZE,4,4
	.comm	DIOCGDINFO,4,4
	.comm	ARCHIVE_OK,4,4
	.comm	ARCHIVE_FATAL,4,4
	.comm	ARCHIVE_ERRNO_MISC,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_archive_read_open_filename.c_file_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Failed to open '%s'\000"
	.align	2
.LC2:
	.ascii	"Unexpedted operation in archive_read_open_filename\000"
	.align	2
.LC3:
	.ascii	"Can't stat '%S'\000"
	.align	2
.LC4:
	.ascii	"Can't stat '%s'\000"
	.align	2
.LC5:
	.ascii	"No memory\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_open, %function
file_open:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L41
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r0
	bl	archive_clear_error
	ldr	r2, .L41+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L19
	ldr	r2, .L41+8
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L3
	ldr	r3, .L41+12
	ldr	r2, .L41+16
	ldr	r1, .L41+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r7, [r4, #24]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r0, r7
	bl	open
	mov	r5, r0
	bl	__archive_ensure_cloexec_flag
	cmp	r5, #0
	blt	.L37
.L2:
	mov	r0, r5
	add	r1, sp, #4
	bl	fstat
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L41+24
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L41+28
	cmp	r1, r2
	moveq	r0, r6
	ldr	r1, [r3]
	movne	r0, r6
	moveq	r3, #0
	movne	r3, r7
	ldreq	r2, .L41+32
	ldrne	r2, .L41+36
	bl	archive_set_error
.L8:
	cmp	r5, #0
	beq	.L5
	mov	r0, r5
	bl	close
	b	.L5
.L3:
	ldr	r3, .L41+40
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L41+44
	bl	archive_set_error
.L5:
	ldr	r3, .L41+48
	ldr	r0, [r3]
.L1:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, [sp, #4]
	bl	S_ISREG
	subs	r7, r0, #0
	bne	.L39
	ldr	r0, [sp, #4]
	bl	S_ISBLK
	cmp	r0, #0
	bne	.L40
.L11:
	ldr	r0, [r4, #4]
	bl	malloc
	cmp	r0, #0
	beq	.L16
	ldr	r3, [sp, #4]
	str	r0, [r4, #20]
	str	r5, [r4, #8]
	str	r3, [r4, #16]
.L15:
	ldr	r3, .L41+52
	ldr	r0, [r3]
	b	.L1
.L19:
	mov	r5, #0
	ldr	r7, .L41+56
	b	.L2
.L39:
	mov	r0, r6
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #16]
	bl	archive_read_extract_set_skip_file
.L10:
	ldr	r3, [r4, #4]
	mov	r0, #65536
	cmp	r3, #65536
	bls	.L13
.L12:
	lsl	r0, r0, #1
	cmn	r0, #-67108863
	cmpls	r0, r3
	bcc	.L12
.L13:
	str	r0, [r4, #4]
	bl	malloc
	cmp	r0, #0
	beq	.L16
	mov	r2, #1
	ldr	r3, [sp, #4]
	str	r0, [r4, #20]
	str	r5, [r4, #8]
	str	r2, [r4, #12]
	str	r3, [r4, #16]
	b	.L15
.L37:
	ldr	r2, .L41+28
	mov	r3, r7
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L41+60
	bl	archive_set_error
	ldr	r3, .L41+48
	ldr	r0, [r3]
	b	.L1
.L40:
	ldr	r3, .L41+64
	mov	r1, r7
	mov	r0, r5
	ldr	r2, [r3]
	bl	lseek
	subs	r1, r0, #0
	bne	.L11
	ldr	r8, .L41+68
	mov	r0, r5
	ldr	r2, [r8]
	bl	lseek
	subs	r7, r0, #0
	bne	.L11
	ldr	r3, .L41+72
	mov	r1, r7
	mov	r0, r5
	ldr	r2, [r3]
	bl	lseek
	cmp	r0, #0
	ble	.L11
	mov	r1, r7
	mov	r0, r5
	ldr	r2, [r8]
	bl	lseek
	cmp	r0, #0
	beq	.L10
	b	.L11
.L16:
	ldr	r3, .L41+76
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L41+80
	bl	archive_set_error
	b	.L8
.L38:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	.LC6
	.word	FNT_STDIN
	.word	FNT_MBS
	.word	O_RDONLY
	.word	O_BINARY
	.word	O_CLOEXEC
	.word	FNT_WCS
	.word	errno
	.word	.LC3
	.word	.LC4
	.word	ARCHIVE_ERRNO_MISC
	.word	.LC2
	.word	ARCHIVE_FATAL
	.word	ARCHIVE_OK
	.word	.LC0
	.word	.LC1
	.word	SEEK_CUR
	.word	SEEK_SET
	.word	SEEK_END
	.word	ENOMEM
	.word	.LC5
	.size	file_open, .-file_open
	.comm	errno,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	SEEK_CUR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CLOEXEC,4,4
	.comm	O_BINARY,4,4
	.comm	FNT_WCS,4,4
	.comm	FNT_STDIN,4,4
	.comm	FNT_MBS,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	DIOCGPART,4,4
	.comm	DIOCGMEDIASIZE,4,4
	.comm	DIOCGDINFO,4,4
	.comm	ARCHIVE_OK,4,4
	.comm	ARCHIVE_FATAL,4,4
	.comm	ARCHIVE_ERRNO_MISC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
