	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_checkactivedir                 ## -- Begin function checkactivedir
	.p2align	4, 0x90
_checkactivedir:                        ## @checkactivedir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_curinode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	_di_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIP
	movq	_IFMT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IFDIR@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_curinum@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warnx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curinode,4,2                   ## @curinode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no current inode\n"

	.comm	_di_mode,4,2                    ## @di_mode
	.comm	_IFMT,4,2                       ## @IFMT
	.comm	_IFDIR,4,2                      ## @IFDIR
L_.str.1:                               ## @.str.1
	.asciz	"inode %ju not a directory"

	.comm	_curinum,8,3                    ## @curinum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_checkactivedir                 ; -- Begin function checkactivedir
	.p2align	2
_checkactivedir:                        ; @checkactivedir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _curinode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curinode@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _di_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _di_mode@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DIP
Lloh6:
	adrp	x8, _IFMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFMT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _IFDIR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFDIR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _curinum@GOTPAGE
Lloh15:
	ldr	x8, [x8, _curinum@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_warnx
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_curinode,4,2                   ; @curinode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no current inode\n"

	.comm	_di_mode,4,2                    ; @di_mode
	.comm	_IFMT,4,2                       ; @IFMT
	.comm	_IFDIR,4,2                      ; @IFDIR
l_.str.1:                               ; @.str.1
	.asciz	"inode %ju not a directory"

	.comm	_curinum,8,3                    ; @curinum
.subsections_via_symbols
