	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_mkexrc                      ## -- Begin function ex_mkexrc
	.p2align	4, 0x90
_ex_mkexrc:                             ## @ex_mkexrc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	__PATH_EXRC@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	incl	%edx
	movq	%r13, %rdi
	callq	_INT2CHAR
	movq	%r13, %rdi
	callq	_set_alt_name
                                        ## implicit-def: $r14
LBB0_5:
	movl	4(%rbx), %edi
	movq	_E_C_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_ISSET
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_S_IRGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_S_IROTH@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_open
	movl	%eax, %r15d
	movl	$1, %ebx
	leaq	L_.str.1(%rip), %r12
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	testl	%r15d, %r15d
	js	LBB0_24
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	callq	_fdopen
	testq	%rax, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	_SEQ_ABBREV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_seq_save
	testq	%rax, %rax
	jne	LBB0_22
## %bb.12:
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_22
## %bb.13:
	movq	_SEQ_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_seq_save
	testq	%rax, %rax
	jne	LBB0_22
## %bb.14:
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_22
## %bb.15:
	movq	_SEQ_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_seq_save
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_opts_save
	testq	%rax, %rax
	jne	LBB0_22
## %bb.18:
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_19
LBB0_22:
	movq	%r12, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_23
LBB0_10:
	movq	%r12, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_close
LBB0_23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movl	$1, %ebx
	movq	%r14, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_7:
	movl	$1, %ebx
	leaq	L_.str(%rip), %r12
	movq	_M_ERR@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_msgq_str
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %r14
	movq	%rbx, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_23
LBB0_20:
	xorl	%ebx, %ebx
	leaq	L_.str.6(%rip), %r12
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_3:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_EXRC,8,3                 ## @_PATH_EXRC
	.comm	_E_C_FORCE,4,2                  ## @E_C_FORCE
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"137|%s exists, not written; use ! to override"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"w"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"abbreviate "

	.comm	_SEQ_ABBREV,4,2                 ## @SEQ_ABBREV
L_.str.4:                               ## @.str.4
	.asciz	"map "

	.comm	_SEQ_COMMAND,4,2                ## @SEQ_COMMAND
L_.str.5:                               ## @.str.5
	.asciz	"map! "

	.comm	_SEQ_INPUT,4,2                  ## @SEQ_INPUT
	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.6:                               ## @.str.6
	.asciz	"138|New exrc file: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_mkexrc                      ; -- Begin function ex_mkexrc
	.p2align	2
_ex_mkexrc:                             ; @ex_mkexrc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w8, LBB0_25
; %bb.2:
Lloh0:
	adrp	x8, __PATH_EXRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PATH_EXRC@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldp	w8, w1, [x8]
	add	w2, w8, #1
	mov	x0, x19
	bl	_INT2CHAR
	mov	x0, x19
	bl	_set_alt_name
                                        ; implicit-def: $x20
LBB0_4:
	ldr	w0, [x21, #4]
Lloh3:
	adrp	x8, _E_C_FORCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_C_FORCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FL_ISSET
	cbnz	w0, LBB0_6
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_stat
	cbz	w0, LBB0_21
LBB0_6:
Lloh6:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _O_WRONLY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _O_WRONLY@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh14:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh15:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _S_IRGRP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _S_IRGRP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _S_IROTH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _S_IROTH@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_open
	tbnz	w0, #31, LBB0_19
; %bb.7:
	mov	x22, x0
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fdopen
Lloh29:
	adrp	x23, _errno@GOTPAGE
Lloh30:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.8:
	mov	x21, x0
Lloh31:
	adrp	x8, _SEQ_ABBREV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEQ_ABBREV@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
Lloh34:
	adrp	x2, l_.str.3@PAGE
Lloh35:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_seq_save
	cbnz	x0, LBB0_16
; %bb.9:
	mov	x0, x21
	bl	_ferror
	cbnz	x0, LBB0_16
; %bb.10:
Lloh36:
	adrp	x8, _SEQ_COMMAND@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SEQ_COMMAND@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
Lloh39:
	adrp	x2, l_.str.4@PAGE
Lloh40:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_seq_save
	cbnz	x0, LBB0_16
; %bb.11:
	mov	x0, x21
	bl	_ferror
	cbnz	x0, LBB0_16
; %bb.12:
Lloh41:
	adrp	x8, _SEQ_INPUT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SEQ_INPUT@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
Lloh44:
	adrp	x2, l_.str.5@PAGE
Lloh45:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_seq_save
	cbnz	x0, LBB0_16
; %bb.13:
	mov	x0, x21
	bl	_ferror
	cbnz	x0, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	x1, x21
	bl	_opts_save
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_ferror
	cbz	x0, LBB0_22
LBB0_16:
	ldr	w24, [x23]
	mov	x0, x21
	bl	_fclose
	b	LBB0_18
LBB0_17:
	ldr	w24, [x23]
	mov	x0, x22
	bl	_close
LBB0_18:
	str	w24, [x23]
LBB0_19:
	mov	w21, #1
Lloh46:
	adrp	x3, l_.str.1@PAGE
Lloh47:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh48:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_msgq_str
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
	mov	w21, #1
Lloh50:
	adrp	x3, l_.str@PAGE
Lloh51:
	add	x3, x3, l_.str@PAGEOFF
Lloh52:
	adrp	x8, _M_ERR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
	b	LBB0_20
LBB0_22:
	mov	x0, x21
	bl	_fclose
	cbz	x0, LBB0_24
; %bb.23:
	ldr	w24, [x23]
	b	LBB0_18
LBB0_24:
	mov	w21, #0
Lloh54:
	adrp	x3, l_.str.6@PAGE
Lloh55:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh56:
	adrp	x8, _M_INFO@GOTPAGE
Lloh57:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
	b	LBB0_20
LBB0_25:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_EXRC,8,3                 ; @_PATH_EXRC
	.comm	_E_C_FORCE,4,2                  ; @E_C_FORCE
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"137|%s exists, not written; use ! to override"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"w"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"abbreviate "

	.comm	_SEQ_ABBREV,4,2                 ; @SEQ_ABBREV
l_.str.4:                               ; @.str.4
	.asciz	"map "

	.comm	_SEQ_COMMAND,4,2                ; @SEQ_COMMAND
l_.str.5:                               ; @.str.5
	.asciz	"map! "

	.comm	_SEQ_INPUT,4,2                  ; @SEQ_INPUT
	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.6:                               ; @.str.6
	.asciz	"138|New exrc file: %s"

.subsections_via_symbols
