	.file	"extr_ex_mkexrc.c_ex_mkexrc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"137|%s exists, not written; use ! to override"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s"
.LC2:
	.string	"w"
.LC3:
	.string	"abbreviate "
.LC4:
	.string	"map "
.LC5:
	.string	"map! "
.LC6:
	.string	"138|New exrc file: %s"
	.text
	.p2align 4
	.globl	ex_mkexrc
	.type	ex_mkexrc, @function
ex_mkexrc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR _PATH_EXRC[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L5
	cmp	eax, 1
	jne	.L15
	mov	rax, QWORD PTR 8[rsi]
	xor	r8d, r8d
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	lea	edx, 1[rcx]
	mov	rcx, r12
	call	INT2CHAR@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	set_alt_name@PLT
.L5:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR E_C_FORCE[rip]
	call	FL_ISSET@PLT
	test	eax, eax
	je	.L19
.L6:
	mov	edx, DWORD PTR S_IRUSR[rip]
	mov	esi, DWORD PTR O_CREAT[rip]
	mov	rdi, r12
	or	edx, DWORD PTR S_IWUSR[rip]
	or	esi, DWORD PTR O_TRUNC[rip]
	or	edx, DWORD PTR S_IRGRP[rip]
	or	esi, DWORD PTR O_WRONLY[rip]
	or	edx, DWORD PTR S_IROTH[rip]
	call	open@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L17
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	r14, rax
	test	rax, rax
	je	.L20
	mov	ecx, DWORD PTR SEQ_ABBREV[rip]
	lea	rdx, .LC3[rip]
	mov	rsi, rax
	mov	rdi, rbp
	call	seq_save@PLT
	test	rax, rax
	je	.L21
.L11:
	mov	rdi, r14
	mov	ebx, DWORD PTR errno[rip]
	call	fclose@PLT
.L10:
	mov	DWORD PTR errno[rip], ebx
.L17:
	mov	esi, DWORD PTR M_SYSERR[rip]
	lea	rcx, .LC1[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	msgq_str@PLT
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rsi, 4[rsp]
	mov	rdi, r12
	call	stat@PLT
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR M_ERR[rip]
	lea	rcx, .LC0[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	msgq_str@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r14
	call	ferror@PLT
	test	rax, rax
	jne	.L11
	mov	ecx, DWORD PTR SEQ_COMMAND[rip]
	lea	rdx, .LC4[rip]
	mov	rsi, r14
	mov	rdi, rbp
	call	seq_save@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, r14
	call	ferror@PLT
	test	rax, rax
	jne	.L11
	mov	ecx, DWORD PTR SEQ_INPUT[rip]
	lea	rdx, .LC5[rip]
	mov	rsi, r14
	mov	rdi, rbp
	call	seq_save@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, r14
	call	ferror@PLT
	test	rax, rax
	jne	.L11
	mov	rsi, r14
	mov	rdi, rbp
	call	opts_save@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, r14
	call	ferror@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, r14
	call	fclose@PLT
	mov	ebx, DWORD PTR errno[rip]
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR M_INFO[rip]
	lea	rcx, .LC6[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	msgq_str@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	xor	eax, eax
	call	abort@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, r13d
	mov	ebx, DWORD PTR errno[rip]
	call	close@PLT
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ex_mkexrc, .-ex_mkexrc
	.comm	errno,4,4
	.comm	_PATH_EXRC,8,8
	.comm	S_IWUSR,4,4
	.comm	S_IRUSR,4,4
	.comm	S_IROTH,4,4
	.comm	S_IRGRP,4,4
	.comm	SEQ_INPUT,4,4
	.comm	SEQ_COMMAND,4,4
	.comm	SEQ_ABBREV,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,4,4
	.comm	M_SYSERR,4,4
	.comm	M_INFO,4,4
	.comm	M_ERR,4,4
	.comm	E_C_FORCE,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_ex_mkexrc.c_ex_mkexrc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"137|%s exists, not written; use ! to override\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"abbreviate \000"
	.align	2
.LC4:
	.ascii	"map \000"
	.align	2
.LC5:
	.ascii	"map! \000"
	.align	2
.LC6:
	.ascii	"138|New exrc file: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ex_mkexrc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ex_mkexrc, %function
ex_mkexrc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r1]
	ldr	r2, .L22
	sub	sp, sp, #16
	cmp	r3, #0
	mov	r4, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r5, r0
	beq	.L2
	cmp	r3, #1
	beq	.L3
	bl	abort
.L5:
	ldr	r3, .L22+4
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	FL_ISSET
	cmp	r0, #0
	beq	.L17
.L6:
	ldr	r1, .L22+8
	ldr	r3, .L22+12
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, .L22+16
	ldr	r0, .L22+20
	ldr	r1, .L22+24
	ldr	r2, [r2]
	ldr	lr, .L22+28
	orr	r3, r3, ip
	ldr	ip, .L22+32
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	ip, [ip]
	ldr	r2, [lr]
	orr	r1, r0, r1
	orr	r2, r3, r2
	mov	r0, r6
	orr	r1, r1, ip
	bl	open
	subs	r7, r0, #0
	blt	.L18
	ldr	r1, .L22+36
	bl	fdopen
	subs	r4, r0, #0
	beq	.L19
	ldr	r3, .L22+40
	mov	r1, r4
	mov	r0, r5
	ldr	r2, .L22+44
	ldr	r3, [r3]
	bl	seq_save
	cmp	r0, #0
	beq	.L20
.L11:
	ldr	r8, .L22+48
	mov	r0, r4
	ldr	r4, [r8]
	bl	fclose
.L10:
	ldr	r3, .L22+52
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L22+56
	str	r4, [r8]
	mov	r4, #1
	bl	msgq_str
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r6
	add	r1, sp, #8
	bl	stat
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L22+60
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L22+64
	bl	msgq_str
	mov	r4, #1
	b	.L1
.L20:
	mov	r0, r4
	bl	ferror
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L22+68
	mov	r1, r4
	mov	r0, r5
	ldr	r2, .L22+72
	ldr	r3, [r3]
	bl	seq_save
	cmp	r0, #0
	bne	.L11
	mov	r0, r4
	bl	ferror
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L22+76
	mov	r1, r4
	mov	r0, r5
	ldr	r2, .L22+80
	ldr	r3, [r3]
	bl	seq_save
	cmp	r0, #0
	bne	.L11
	mov	r0, r4
	bl	ferror
	cmp	r0, #0
	bne	.L11
	mov	r1, r4
	mov	r0, r5
	bl	opts_save
	cmp	r0, #0
	bne	.L11
	mov	r0, r4
	bl	ferror
	cmp	r0, #0
	bne	.L11
	mov	r0, r4
	bl	fclose
	subs	r4, r0, #0
	beq	.L12
	ldr	r8, .L22+48
	ldr	r4, [r8]
	b	.L10
.L2:
	ldr	r3, .L22+84
	ldr	r6, [r3]
	b	.L5
.L3:
	mov	ip, #0
	mov	r6, ip
	ldr	r2, [r1, #8]
	mov	r3, ip
	ldr	r1, [r2]
	ldr	r2, [r1]
	ldr	r1, [r1, #4]
	add	r2, r2, #1
	str	ip, [sp]
	bl	INT2CHAR
	mov	r1, r6
	mov	r0, r5
	bl	set_alt_name
	b	.L5
.L18:
	ldr	r3, .L22+52
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L22+56
	bl	msgq_str
	mov	r4, #1
	b	.L1
.L19:
	ldr	r8, .L22+48
	mov	r0, r7
	ldr	r4, [r8]
	bl	close
	b	.L10
.L12:
	ldr	r3, .L22+88
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L22+92
	bl	msgq_str
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	E_C_FORCE
	.word	S_IWUSR
	.word	S_IRUSR
	.word	S_IRGRP
	.word	O_CREAT
	.word	O_TRUNC
	.word	S_IROTH
	.word	O_WRONLY
	.word	.LC2
	.word	SEQ_ABBREV
	.word	.LC3
	.word	errno
	.word	M_SYSERR
	.word	.LC1
	.word	M_ERR
	.word	.LC0
	.word	SEQ_COMMAND
	.word	.LC4
	.word	SEQ_INPUT
	.word	.LC5
	.word	_PATH_EXRC
	.word	M_INFO
	.word	.LC6
	.size	ex_mkexrc, .-ex_mkexrc
	.comm	errno,4,4
	.comm	_PATH_EXRC,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUSR,4,4
	.comm	S_IROTH,4,4
	.comm	S_IRGRP,4,4
	.comm	SEQ_INPUT,4,4
	.comm	SEQ_COMMAND,4,4
	.comm	SEQ_ABBREV,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,4,4
	.comm	M_SYSERR,4,4
	.comm	M_INFO,4,4
	.comm	M_ERR,4,4
	.comm	E_C_FORCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
