	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_file                        ## -- Begin function ex_file
	.p2align	4, 0x90
_ex_file:                               ## @ex_file
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_NEEDFILE
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.2:
	movq	8(%r12), %r14
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	incl	%edx
	movq	%r12, %rdi
	callq	_INT2CHAR
	movq	%r12, %rdi
	callq	_v_strdup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_FR_TMPFILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_set_alt_name
LBB0_6:
	movq	(%r14), %rdi
	callq	_free
	movq	%r15, (%r14)
	movq	_FR_TMPEXIT@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_CLR
	movq	_FR_NAMECHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	*(%rcx)
LBB0_7:
	movl	(%r12), %esi
	movq	_MSTAT_SHOWLAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_msgq_status
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_FR_TMPFILE,4,2                 ## @FR_TMPFILE
	.comm	_FR_TMPEXIT,4,2                 ## @FR_TMPEXIT
	.comm	_FR_NAMECHANGE,4,2              ## @FR_NAMECHANGE
	.comm	_MSTAT_SHOWLAST,4,2             ## @MSTAT_SHOWLAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_file                        ; -- Begin function ex_file
	.p2align	2
_ex_file:                               ; @ex_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_NEEDFILE
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.2:
	ldr	x20, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldp	w8, w1, [x8]
	add	w2, w8, #1
	mov	x0, x19
	bl	_INT2CHAR
	mov	x0, x19
	bl	_v_strdup
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x22, _FR_TMPFILE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FR_TMPFILE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_F_ISSET
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_set_alt_name
LBB0_5:
	ldr	x0, [x20]
	bl	_free
	str	x21, [x20]
Lloh2:
	adrp	x8, _FR_TMPEXIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FR_TMPEXIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_F_CLR
Lloh5:
	adrp	x8, _FR_NAMECHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FR_NAMECHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
LBB0_6:
	ldr	w1, [x19]
Lloh8:
	adrp	x8, _MSTAT_SHOWLAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSTAT_SHOWLAST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_msgq_status
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #1
	b	LBB0_7
LBB0_9:
	bl	_abort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_TMPFILE,4,2                 ; @FR_TMPFILE
	.comm	_FR_TMPEXIT,4,2                 ; @FR_TMPEXIT
	.comm	_FR_NAMECHANGE,4,2              ; @FR_NAMECHANGE
	.comm	_MSTAT_SHOWLAST,4,2             ; @MSTAT_SHOWLAST
.subsections_via_symbols
