	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_source_dirname
_check_source_dirname:                  ## @check_source_dirname
	.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	_source_dirname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	leaq	-16(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movq	(%rbx), %rsi
	callq	_kprintf
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_source_dirname,8,3             ## @source_dirname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lstat for path '%s' failed. %m\n"

L_.str.1:                               ## @.str.1
	.asciz	"'%s' isn't directory.\n"

	.no_dead_strip	_check_source_dirname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_source_dirname
_check_source_dirname:                  ; @check_source_dirname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _source_dirname@GOTPAGE
Lloh1:
	ldr	x19, [x19, _source_dirname@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.1:
	add	x1, sp, #8
	bl	_lstat
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	ldr	x1, [x19]
	bl	_kprintf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_source_dirname,8,3             ; @source_dirname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lstat for path '%s' failed. %m\n"

l_.str.1:                               ; @.str.1
	.asciz	"'%s' isn't directory.\n"

	.no_dead_strip	_check_source_dirname
.subsections_via_symbols
