	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getacdir                       ## -- Begin function getacdir
	.p2align	4, 0x90
_getacdir:                              ## @getacdir
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_inacdir@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_ptrmoved@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	$0, (%rax)
	movq	_fp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$2, %r12d
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
LBB0_4:
	movq	_DIR_CONTROL_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_getstrfromtype_locked
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %rcx
	movslq	%r15d, %rdx
	movl	$-3, %eax
	cmpq	%rdx, %rcx
	jae	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_strlcpy
	movl	%r12d, %eax
	jmp	LBB0_10
LBB0_5:
	movl	$-2, %eax
	jmp	LBB0_10
LBB0_7:
	movl	$-1, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inacdir,8,3                    ## @inacdir
	.comm	_ptrmoved,8,3                   ## @ptrmoved
	.comm	_fp,8,3                         ## @fp
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_DIR_CONTROL_ENTRY,4,2          ## @DIR_CONTROL_ENTRY
	.comm	_mutex,4,2                      ## @mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getacdir                       ; -- Begin function getacdir
	.p2align	2
_getacdir:                              ; @getacdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _inacdir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inacdir@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _ptrmoved@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ptrmoved@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, #0
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_5
LBB0_2:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _fp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fp@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
LBB0_4:
	mov	w21, #2
LBB0_5:
Lloh11:
	adrp	x8, _DIR_CONTROL_ENTRY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIR_CONTROL_ENTRY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_getstrfromtype_locked
	tbnz	x0, #63, LBB0_9
; %bb.6:
	ldr	x22, [sp, #8]
	cbz	x22, LBB0_10
; %bb.7:
	mov	x0, x22
	bl	_strlen
	cmp	x0, w19, sxtw
	b.hs	LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_strlcpy
	b	LBB0_12
LBB0_9:
	mov	w21, #-2
	b	LBB0_12
LBB0_10:
	mov	w21, #-1
	b	LBB0_12
LBB0_11:
	mov	w21, #-3
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_inacdir,8,3                    ; @inacdir
	.comm	_ptrmoved,8,3                   ; @ptrmoved
	.comm	_fp,8,3                         ; @fp
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_DIR_CONTROL_ENTRY,4,2          ; @DIR_CONTROL_ENTRY
	.comm	_mutex,4,2                      ; @mutex
.subsections_via_symbols
