	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mi_cmd_env_dir                 ## -- Begin function mi_cmd_env_dir
	.p2align	4, 0x90
_mi_cmd_env_dir:                        ## @mi_cmd_env_dir
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movl	$0, -44(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dont_repeat
	movq	_uiout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mi_version
	cmpl	$2, %eax
	jge	LBB0_1
## %bb.9:
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.10:
	movl	%r13d, %ebx
	incq	%rbx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	(%r14,%rax,8), %rsi
	movq	%r15, %rdi
	callq	_env_execute_cli_command
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_11
	jmp	LBB0_12
LBB0_1:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r15d
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	leaq	_mi_cmd_env_dir.opts(%rip), %rcx
	leaq	-44(%rbp), %r8
	leaq	-56(%rbp), %r9
	callq	_mi_getopt
	testl	%eax, %eax
	cmovel	%ebx, %r12d
	jns	LBB0_2
## %bb.3:
	movslq	-44(%rbp), %rbx
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	_source_path@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xfree
	xorl	%eax, %eax
	callq	_init_source_path
LBB0_5:
	movl	%ebx, %eax
	notl	%eax
	addl	%r13d, %eax
	js	LBB0_8
## %bb.6:
	movl	%eax, %eax
	subl	%ebx, %r13d
	addq	%rbx, %rax
	leaq	(%r14,%rax,8), %rbx
	movq	_source_path@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_env_mod_path
	decl	%r13d
	addq	$-8, %rbx
	testl	%r13d, %r13d
	jg	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_init_last_source_visited
	movq	_uiout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_source_path@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_ui_out_field_string
	xorl	%eax, %eax
	callq	_forget_cached_source_info
LBB0_12:
	movq	_MI_CMD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @mi_cmd_env_dir.opts
_mi_cmd_env_dir.opts:
	.quad	L_.str
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.space	16

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_uiout,4,2                      ## @uiout
L_.str.1:                               ## @.str.1
	.asciz	"dir"

	.comm	_MI_CMD_DONE,4,2                ## @MI_CMD_DONE
L_.str.2:                               ## @.str.2
	.asciz	"mi_cmd_env_dir"

	.comm	_source_path,4,2                ## @source_path
L_.str.3:                               ## @.str.3
	.asciz	"source-path"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mi_cmd_env_dir                 ; -- Begin function mi_cmd_env_dir
	.p2align	2
_mi_cmd_env_dir:                        ; @mi_cmd_env_dir
	.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	x20, x2
	mov	x19, x1
	str	wzr, [sp, #12]
	bl	_dont_repeat
Lloh0:
	adrp	x23, _uiout@GOTPAGE
Lloh1:
	ldr	x23, [x23, _uiout@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_mi_version
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.2:
	mov	w8, w20
	add	x21, x8, #1
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x1, [x19, w8, uxtw #3]
	mov	x0, x20
	bl	_env_execute_cli_command
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_3
	b	LBB0_12
LBB0_4:
	mov	w8, #0
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh6:
	adrp	x22, _mi_cmd_env_dir.opts@PAGE
Lloh7:
	add	x22, x22, _mi_cmd_env_dir.opts@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	add	x4, sp, #12
	mov	x5, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_mi_getopt
	cmp	w0, #0
	csinc	w8, w24, wzr, ne
	tbz	w0, #31, LBB0_5
; %bb.6:
	ldrsw	x22, [sp, #12]
Lloh8:
	adrp	x21, _source_path@GOTPAGE
Lloh9:
	ldr	x21, [x21, _source_path@GOTPAGEOFF]
	cbz	w24, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	bl	_xfree
	bl	_init_source_path
LBB0_8:
	mvn	w8, w22
	adds	w8, w8, w20
	b.mi	LBB0_11
; %bb.9:
	sub	w20, w20, w22
	add	x8, x22, w8, uxtw
	add	x22, x19, x8, lsl #3
Lloh10:
	adrp	x19, _source_path@GOTPAGE
Lloh11:
	ldr	x19, [x19, _source_path@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22], #-8
	mov	x1, x19
	bl	_env_mod_path
	sub	w20, w20, #1
	cmp	w20, #0
	b.gt	LBB0_10
LBB0_11:
	bl	_init_last_source_visited
	ldr	w0, [x23]
	ldr	w2, [x21]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ui_out_field_string
	bl	_forget_cached_source_info
LBB0_12:
Lloh14:
	adrp	x8, _MI_CMD_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MI_CMD_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @mi_cmd_env_dir.opts
_mi_cmd_env_dir.opts:
	.quad	l_.str
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.space	16

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_uiout,4,2                      ; @uiout
l_.str.1:                               ; @.str.1
	.asciz	"dir"

	.comm	_MI_CMD_DONE,4,2                ; @MI_CMD_DONE
l_.str.2:                               ; @.str.2
	.asciz	"mi_cmd_env_dir"

	.comm	_source_path,4,2                ; @source_path
l_.str.3:                               ; @.str.3
	.asciz	"source-path"

.subsections_via_symbols
