	.file	"extr_archive_write_open_filename.c_open_filename.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No memory"
.LC1:
	.string	"Can't convert '%s' to WCS"
.LC2:
	.string	"Can't convert '%S' to MBS"
	.text
	.p2align 4
	.type	open_filename, @function
open_filename:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	mov	esi, 8
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	test	rax, rax
	je	.L12
	mov	rbp, rax
	lea	rdi, 4[rax]
	mov	rsi, r12
	test	ebx, ebx
	jne	.L13
	call	archive_mstring_copy_wcs@PLT
	test	eax, eax
	jns	.L6
.L16:
	mov	rsi, QWORD PTR ENOMEM[rip]
	cmp	QWORD PTR errno[rip], rsi
	je	.L14
	movsx	rsi, DWORD PTR ARCHIVE_ERRNO_MISC[rip]
	mov	rcx, r12
	test	ebx, ebx
	jne	.L15
	lea	rdx, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	archive_set_error@PLT
.L9:
	mov	eax, DWORD PTR ARCHIVE_FAILED[rip]
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	call	archive_mstring_copy_mbs@PLT
	test	eax, eax
	js	.L16
.L6:
	mov	DWORD PTR 0[rbp], -1
	mov	r8d, DWORD PTR file_close[rip]
	mov	rsi, rbp
	mov	rdi, r13
	mov	ecx, DWORD PTR file_write[rip]
	mov	edx, DWORD PTR file_open[rip]
	add	rsp, 8
	.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
	jmp	archive_write_open@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rsi, QWORD PTR ENOMEM[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	archive_set_error@PLT
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
.L1:
	add	rsp, 8
	.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
.L15:
	.cfi_restore_state
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	archive_set_error@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	archive_set_error@PLT
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	open_filename, .-open_filename
	.comm	file_write,4,4
	.comm	file_open,4,4
	.comm	file_close,4,4
	.comm	errno,8,8
	.comm	ENOMEM,8,8
	.comm	ARCHIVE_FATAL,4,4
	.comm	ARCHIVE_FAILED,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_write_open_filename.c_open_filename.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No memory\000"
	.align	2
.LC1:
	.ascii	"Can't convert '%s' to WCS\000"
	.align	2
.LC2:
	.ascii	"Can't convert '%S' to MBS\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_filename, %function
open_filename:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r0
	mov	r5, r1
	mov	r0, #1
	mov	r1, #8
	sub	sp, sp, #12
	mov	r6, r2
	bl	calloc
	subs	r4, r0, #0
	beq	.L12
	cmp	r5, #0
	mov	r1, r6
	add	r0, r4, #4
	bne	.L13
	bl	archive_mstring_copy_wcs
	cmp	r0, #0
	bge	.L6
.L15:
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	cmp	r1, r3
	beq	.L14
	ldr	r3, .L16+8
	cmp	r5, #0
	ldr	r1, [r3]
	mov	r0, r7
	mov	r3, r6
	ldrne	r2, .L16+12
	ldreq	r2, .L16+16
	bl	archive_set_error
	ldr	r3, .L16+20
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	bl	archive_mstring_copy_mbs
	cmp	r0, #0
	blt	.L15
.L6:
	mvn	r1, #0
	ldr	r2, .L16+24
	ldr	r3, .L16+28
	ldr	ip, [r2]
	ldr	r2, .L16+32
	str	r1, [r4]
	str	ip, [sp]
	mov	r0, r7
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	archive_write_open
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r0, r7
	ldr	r2, .L16+36
	bl	archive_set_error
	ldr	r3, .L16+40
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	ldr	r3, .L16
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L16+36
	bl	archive_set_error
	ldr	r3, .L16+40
	ldr	r0, [r3]
	b	.L1
.L17:
	.align	2
.L16:
	.word	ENOMEM
	.word	errno
	.word	ARCHIVE_ERRNO_MISC
	.word	.LC1
	.word	.LC2
	.word	ARCHIVE_FAILED
	.word	file_close
	.word	file_write
	.word	file_open
	.word	.LC0
	.word	ARCHIVE_FATAL
	.size	open_filename, .-open_filename
	.comm	file_write,4,4
	.comm	file_open,4,4
	.comm	file_close,4,4
	.comm	errno,4,4
	.comm	ENOMEM,4,4
	.comm	ARCHIVE_FATAL,4,4
	.comm	ARCHIVE_FAILED,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
