	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function offline_drive
_offline_drive:                         ## @offline_drive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.2:
	movq	8(%rsi), %rdi
	movq	_MPI_RAID_ACTION_PHYSDISK_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	popq	%rbp
	jmp	_drive_set_state                ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmovgq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"offline: %s"

L_.str.1:                               ## @.str.1
	.asciz	"extra arguments"

L_.str.2:                               ## @.str.2
	.asciz	"drive required"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MPI_RAID_ACTION_PHYSDISK_OFFLINE,4,2 ## @MPI_RAID_ACTION_PHYSDISK_OFFLINE
	.comm	_MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED,4,2 ## @MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED
L_.str.3:                               ## @.str.3
	.asciz	"OFFLINE"

	.no_dead_strip	_offline_drive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function offline_drive
_offline_drive:                         ; @offline_drive
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x8, _MPI_RAID_ACTION_PHYSDISK_OFFLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_RAID_ACTION_PHYSDISK_OFFLINE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_drive_set_state
LBB0_2:
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x1, x9, x8, gt
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"offline: %s"

l_.str.1:                               ; @.str.1
	.asciz	"extra arguments"

l_.str.2:                               ; @.str.2
	.asciz	"drive required"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MPI_RAID_ACTION_PHYSDISK_OFFLINE,4,2 ; @MPI_RAID_ACTION_PHYSDISK_OFFLINE
	.comm	_MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED,4,2 ; @MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED
l_.str.3:                               ; @.str.3
	.asciz	"OFFLINE"

	.no_dead_strip	_offline_drive
.subsections_via_symbols
