	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_haveadisk                      ## -- Begin function haveadisk
	.p2align	4, 0x90
_haveadisk:                             ## @haveadisk
	.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
	xorl	%edi, %edi
	callq	_devstat_getnumdevs
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	callq	_devstat_checkversion
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, -16(%rbp)
	movq	%rax, %rdi
	movl	$24, %esi
	callq	_bzero
	xorl	%ebx, %ebx
	leaq	-16(%rbp), %rsi
	xorl	%edi, %edi
	callq	_devstat_getdevs
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.6:
	movq	-16(%rbp), %rdi
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_13
## %bb.7:
	movq	16(%rdi), %r10
	movq	_DEVSTAT_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DEVSTAT_TYPE_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEVSTAT_TYPE_PASS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	%rbx, %r9
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rbx,4), %eax
	movl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%esi, %edx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	andl	%r8d, %eax
	jne	LBB0_11
## %bb.10:
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %rdi
	callq	_free
	movq	-16(%rbp), %rdi
LBB0_15:
	callq	_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rstatd: can't get number of devices: %s"

	.comm	_devstat_errbuf,4,2             ## @devstat_errbuf
L_.str.1:                               ## @.str.1
	.asciz	"rstatd: %s"

L_.str.2:                               ## @.str.2
	.asciz	"rstatd: can't get device list: %s"

	.comm	_DEVSTAT_TYPE_MASK,4,2          ## @DEVSTAT_TYPE_MASK
	.comm	_DEVSTAT_TYPE_DIRECT,4,2        ## @DEVSTAT_TYPE_DIRECT
	.comm	_DEVSTAT_TYPE_PASS,4,2          ## @DEVSTAT_TYPE_PASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_haveadisk                      ; -- Begin function haveadisk
	.p2align	2
_haveadisk:                             ; @haveadisk
	.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
	mov	x0, #0
	bl	_devstat_getnumdevs
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x0, #0
	bl	_devstat_checkversion
	tbnz	x0, #63, LBB0_12
; %bb.2:
	mov	w0, #24
	bl	_malloc
	str	x0, [sp, #8]
	mov	w1, #24
	bl	_bzero
	add	x1, sp, #8
	mov	x0, #0
	bl	_devstat_getdevs
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.3:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _DEVSTAT_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DEVSTAT_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _DEVSTAT_TYPE_DIRECT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DEVSTAT_TYPE_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _DEVSTAT_TYPE_PASS@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DEVSTAT_TYPE_PASS@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9]
	and	w14, w10, w13
	and	w13, w12, w13
	cmp	w14, w11
	ccmp	w13, #0, #0, eq
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_7:
	mov	w19, #0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
LBB0_8:
	mov	x0, x8
	bl	_free
	ldr	x0, [sp, #8]
LBB0_9:
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	mov	w19, #1
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_8
	b	LBB0_9
LBB0_11:
Lloh9:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh13:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh21:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh25:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh29:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rstatd: can't get number of devices: %s"

	.comm	_devstat_errbuf,4,2             ; @devstat_errbuf
l_.str.1:                               ; @.str.1
	.asciz	"rstatd: %s"

l_.str.2:                               ; @.str.2
	.asciz	"rstatd: can't get device list: %s"

	.comm	_DEVSTAT_TYPE_MASK,4,2          ; @DEVSTAT_TYPE_MASK
	.comm	_DEVSTAT_TYPE_DIRECT,4,2        ; @DEVSTAT_TYPE_DIRECT
	.comm	_DEVSTAT_TYPE_PASS,4,2          ; @DEVSTAT_TYPE_PASS
.subsections_via_symbols
