	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devcheck                       ## -- Begin function devcheck
	.p2align	4, 0x90
_devcheck:                              ## @devcheck
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	-16(%rbp), %edi
	callq	_S_ISCHR
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_perr
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_perr
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"Can't stat `/'"

L_.str.2:                               ## @.str.2
	.asciz	"Can't stat %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s is not a char device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devcheck                       ; -- Begin function devcheck
	.p2align	2
_devcheck:                              ; @devcheck
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #24
	bl	_stat
	tbnz	x0, #63, LBB0_4
; %bb.1:
	add	x1, sp, #16
	mov	x0, x19
	bl	_stat
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	w0, [sp, #16]
	bl	_S_ISCHR
	cbnz	w0, LBB0_7
; %bb.3:
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_perr
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"Can't stat `/'"

l_.str.2:                               ; @.str.2
	.asciz	"Can't stat %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s is not a char device\n"

.subsections_via_symbols
