	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_check
_cmd_check:                             ## @cmd_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	cmpl	$2, %edi
	jne	LBB0_15
## %bb.1:
	movq	8(%r14), %rdi
	callq	_driveunit
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_drivepath
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_MLXD_CHECKASYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-20(%rbp), %rdx
	movl	%eax, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_14
## %bb.7:
	movl	-20(%rbp), %eax
	cmpl	$262, %eax                      ## imm = 0x106
	je	LBB0_12
## %bb.8:
	cmpl	$261, %eax                      ## imm = 0x105
	je	LBB0_11
## %bb.9:
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.10:
	movq	8(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_15:
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cmd_help                       ## TAILCALL
LBB0_2:
	movq	8(%r14), %rsi
	leaq	L_.str(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
LBB0_5:
	movl	%ebx, %edi
	callq	_drivepath
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warn
LBB0_14:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
LBB0_11:
	movq	8(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s' is not a valid drive"

L_.str.1:                               ## @.str.1
	.asciz	"can't open %s"

	.comm	_MLXD_CHECKASYNC,4,2            ## @MLXD_CHECKASYNC
L_.str.2:                               ## @.str.2
	.asciz	"one or more of the SCSI disks on which the drive '%s' depends is DEAD"

L_.str.3:                               ## @.str.3
	.asciz	"drive %s is invalid, or not a drive which can be checked"

L_.str.4:                               ## @.str.4
	.asciz	"drive rebuild or consistency check is already in progress on this controller"

L_.str.5:                               ## @.str.5
	.asciz	"ioctl MLXD_CHECKASYNC"

	.no_dead_strip	_cmd_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_check
_cmd_check:                             ; @cmd_check
	.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	x19, x1
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_driveunit
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.2:
	mov	x20, x0
	bl	_drivepath
	mov	w1, #0
	bl	_open
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _MLXD_CHECKASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXD_CHECKASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	tbz	x0, #63, LBB0_12
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #262
	b.eq	LBB0_13
; %bb.5:
	cmp	w8, #261
	b.eq	LBB0_14
; %bb.6:
	cmp	w8, #2
	b.ne	LBB0_15
; %bb.7:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	b	LBB0_12
LBB0_8:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_cmd_help
LBB0_9:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_drivepath
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_warn
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	b	LBB0_12
LBB0_14:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
	b	LBB0_12
LBB0_15:
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s' is not a valid drive"

l_.str.1:                               ; @.str.1
	.asciz	"can't open %s"

	.comm	_MLXD_CHECKASYNC,4,2            ; @MLXD_CHECKASYNC
l_.str.2:                               ; @.str.2
	.asciz	"one or more of the SCSI disks on which the drive '%s' depends is DEAD"

l_.str.3:                               ; @.str.3
	.asciz	"drive %s is invalid, or not a drive which can be checked"

l_.str.4:                               ; @.str.4
	.asciz	"drive rebuild or consistency check is already in progress on this controller"

l_.str.5:                               ; @.str.5
	.asciz	"ioctl MLXD_CHECKASYNC"

	.no_dead_strip	_cmd_check
.subsections_via_symbols
